summaryrefslogtreecommitdiffstats
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-26 08:55:43 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-26 08:55:43 +0000
commit5dd0025133c3190983cf761792ca751a95affa2a (patch)
tree2ba96ffba3c3470089ec22f415de86bf5b32226d /gcc/ada/gcc-interface/utils.c
parentcf1fbbbe574eacea1acada68a1048416c62eff78 (diff)
downloadppe42-gcc-5dd0025133c3190983cf761792ca751a95affa2a.tar.gz
ppe42-gcc-5dd0025133c3190983cf761792ca751a95affa2a.zip
* gcc-interface/gigi.h (make_aligning_type): Adjust prototype.
* gcc-interface/utils.c (make_aligning_type): Take GNAT_NODE parameter for the position of the associated TYPE_DECL. * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust call to above. * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 0906c0c319d..eb63257ec36 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -653,11 +653,12 @@ gnat_pushdecl (tree decl, Node_Id gnat_node)
/* Create a record type that contains a SIZE bytes long field of TYPE with a
starting bit position so that it is aligned to ALIGN bits, and leaving at
least ROOM bytes free before the field. BASE_ALIGN is the alignment the
- record is guaranteed to get. */
+ record is guaranteed to get. GNAT_NODE is used for the position of the
+ associated TYPE_DECL. */
tree
make_aligning_type (tree type, unsigned int align, tree size,
- unsigned int base_align, int room)
+ unsigned int base_align, int room, Node_Id gnat_node)
{
/* We will be crafting a record type with one field at a position set to be
the next multiple of ALIGN past record'address + room bytes. We use a
@@ -739,7 +740,7 @@ make_aligning_type (tree type, unsigned int align, tree size,
/* Declare it now since it will never be declared otherwise. This is
necessary to ensure that its subtrees are properly marked. */
- create_type_decl (name, record_type, NULL, true, false, Empty);
+ create_type_decl (name, record_type, NULL, true, false, gnat_node);
return record_type;
}
OpenPOWER on IntegriCloud