diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2018-05-31 10:45:57 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2018-05-31 10:45:57 +0000 |
commit | 42e4b796dccc43e0a30cd26186037f3fda7639fd (patch) | |
tree | 8b5c16ea50b86b6a95926011662787278726e603 /gcc/ada/gcc-interface/decl.c | |
parent | 59f7c7167a75bdb3992f2c7fb3b358124aea8404 (diff) | |
download | gcc-42e4b796dccc43e0a30cd26186037f3fda7639fd.zip gcc-42e4b796dccc43e0a30cd26186037f3fda7639fd.tar.gz gcc-42e4b796dccc43e0a30cd26186037f3fda7639fd.tar.bz2 |
[Ada] Post warning on object size clause for subtype
This ensures that a warning for an object size clause present on a subtype
is posted on the clause and not on a size clause present on the type.
2018-05-31 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* einfo.ads (Object_Size_Clause): Declare.
* einfo.adb (Object_Size_Clause): New function.
* gcc-interface/utils.c (maybe_pad_type): Test Has_Size_Clause before
retrieving Size_Clause and post the warning on the object size clause
if Has_Object_Size_Clause is true.
gcc/testsuite/
* gnat.dg/size_clause1.adb: New testcase.
From-SVN: r260998
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
0 files changed, 0 insertions, 0 deletions