diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2013-04-12 15:08:07 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2013-04-12 15:08:07 +0200 |
commit | d9f8616ee4bef21743006fb09e6f0ee4359d941c (patch) | |
tree | 7ce9964e9eb9986fbc6f92a5d2701cbbdcf61732 /gcc/ada/sem_elab.adb | |
parent | 2eb87017420b4608b8540c46f329cf9c264e1c39 (diff) | |
download | gcc-d9f8616ee4bef21743006fb09e6f0ee4359d941c.zip gcc-d9f8616ee4bef21743006fb09e6f0ee4359d941c.tar.gz gcc-d9f8616ee4bef21743006fb09e6f0ee4359d941c.tar.bz2 |
[multiple changes]
2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
* sem_prag.adb (Analyze_Pragma, (Check_Mode_Restriction_In_Function):
Correct error message format.
2013-04-12 Robert Dewar <dewar@adacore.com>
* sem_attr.adb: Minor reformatting.
2013-04-12 Ed Schonberg <schonberg@adacore.com>
* sem_elab.adb (Within_Elaborate_All): Do not examine a context
item that has not been analyzed, because the unit may have errors,
or the context item may come from a proper unit inserted at the
point of a stub and not analyzed yet.
2013-04-12 Thomas Quinot <quinot@adacore.com>
* gnat1drv.adb, repinfo.adb, repinfo.ads (Repinfo.List_Array_Info,
List_Record_Info): Also include scalar storage order information in
output.
2013-04-12 Yannick Moy <moy@adacore.com>
* sem_ch6.adb (Process_Contract_Cases): Update code to apply to
Contract_Cases instead of Contract_Case pragma.
From-SVN: r197906
Diffstat (limited to 'gcc/ada/sem_elab.adb')
-rw-r--r-- | gcc/ada/sem_elab.adb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ada/sem_elab.adb b/gcc/ada/sem_elab.adb index 74cbdf1..881fdb1 100644 --- a/gcc/ada/sem_elab.adb +++ b/gcc/ada/sem_elab.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1997-2012, Free Software Foundation, Inc. -- +-- Copyright (C) 1997-2013, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -3340,8 +3340,13 @@ package body Sem_Elab is and then Pragma_Name (Item) = Name_Elaborate_All then -- Return if some previous error on the pragma itself + -- The pragma may be unanalyzed, because of a previous error, + -- or if it is the context of a subunit, inherited by its + -- parent. - if Error_Posted (Item) then + if Error_Posted (Item) + or else not Analyzed (Item) + then return; end if; |