diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-26 10:42:29 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-26 10:42:29 +0000 |
commit | 83f8f0a61fc2a3e1251c1e13591445e84f6492a7 (patch) | |
tree | c18c110446e28ac9daaa52f59a3c7a207d5e4632 /gcc/ada/checks.adb | |
parent | e7e688ddb985f3538b2b821dfc2a7387faff071f (diff) | |
download | ppe42-gcc-83f8f0a61fc2a3e1251c1e13591445e84f6492a7.tar.gz ppe42-gcc-83f8f0a61fc2a3e1251c1e13591445e84f6492a7.zip |
2007-09-26 Robert Dewar <dewar@adacore.com>
* checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
overlays.
* sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
(Analyze_Record_Representation_Clause): Suppress junk warning for
missing component clause.
(Analyze_Attribute_Definition_Clause, case Address): Apply the special
tests for controlled type overlay to composites with controlled
components.
(Analyze_Record_Representation_Clause): Add reference for component name
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128785 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/checks.adb')
-rw-r--r-- | gcc/ada/checks.adb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ada/checks.adb b/gcc/ada/checks.adb index 30a3f26e890..33696b0003c 100644 --- a/gcc/ada/checks.adb +++ b/gcc/ada/checks.adb @@ -543,6 +543,7 @@ package body Checks is Error_Msg_FE ("\?program execution may be erroneous (RM 13.3(27))", Aexp, E); + Set_Address_Warning_Posted (AC); end if; end Compile_Time_Bad_Alignment; @@ -626,6 +627,7 @@ package body Checks is Error_Msg_FE ("\?program execution may be erroneous", Aexp, E); Size_Warning_Output := True; + Set_Address_Warning_Posted (AC); end if; end if; end; |