* gcc-interface/trans.c (add_decl_expr): At toplevel, mark the
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Dec 2009 12:05:08 +0000 (12:05 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Dec 2009 12:05:08 +0000 (12:05 +0000)
commitc22477bd9b1ceafa4f51598158e0e89e29910b69
tree77ca378a29ef39f0e2515a631ccdb5718d557816
parent2ebd06c54fbd6165e6df7397e90e9e3112feb15c
* gcc-interface/trans.c (add_decl_expr): At toplevel, mark the
TYPE_ADA_SIZE field of records and unions.

* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Set the
source location of the node onto the comparison expression if it
is not cached.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154978 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/size_attribute1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/size_attribute1_pkg1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/size_attribute1_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/size_attribute1_pkg2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/size_attribute1_pkg2.ads [new file with mode: 0644]