]> git.ipfire.org Git - thirdparty/gcc.git/commit
exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for assert fail
authorRobert Dewar <dewar@adacore.com>
Thu, 13 Dec 2007 10:26:56 +0000 (11:26 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 13 Dec 2007 10:26:56 +0000 (11:26 +0100)
commit36fcf362ce30d24b353f5ece90fb8d760af8626c
tree6fafce247886d6e5a58f5c2bc6f8f0bd92df7c43
parentc8b92217c730612a4e07b1c351fa21ce7e102d21
exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for assert fail

2007-12-06  Robert Dewar  <dewar@adacore.com>
    Ed Schonberg  <schonberg@adacore.com>

* exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
assert fail

* ug_words: Add entries for -gnatw.a -gnatw.A

* sem_res.adb (Set_String_Literal_Subtype): If the context of the
literal is a subtype with non-static constraints, use the base type of
the context as the base of the string subtype, to prevent type
mismatches in gigi.
(Resolve_Actuals): If the actual is an entity name, generate a
reference before the actual is resolved and expanded, to prevent
spurious warnings on formals of enclosing protected operations.
(Analyze_Overloaded_Selected_Component): If type of prefix if
class-wide, use visible components of base type.
(Resolve_Selected_Component): Ditto.
(Resolve_Short_Circuit): Detect case of pragma Assert argument
evaluating to False, and issue warning message.

* usage.adb: Add lines for -gnatw.a and -gnatw.A

From-SVN: r130838
gcc/ada/exp_prag.adb
gcc/ada/sem_res.adb
gcc/ada/ug_words
gcc/ada/usage.adb