diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-01-21 17:33:09 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-01-21 17:33:09 +0100 |
commit | 71affc54b59a7026571ee5d8dad000bd6e0c760c (patch) | |
tree | f6613c9cb7abf86dd60c46c21622ad75ef34fe4b /gcc/ada/par.adb | |
parent | ef1c051102dd6c40fc8dbaf9ab8d87b06b47b8d0 (diff) | |
download | gcc-71affc54b59a7026571ee5d8dad000bd6e0c760c.zip gcc-71affc54b59a7026571ee5d8dad000bd6e0c760c.tar.gz gcc-71affc54b59a7026571ee5d8dad000bd6e0c760c.tar.bz2 |
[multiple changes]
2014-01-21 Robert Dewar <dewar@adacore.com>
* par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
* par-ch5.adb (P_Condition): New version with expression prescanned.
* par.adb (P_Condition): New version with expression prescanned.
2014-01-21 Robert Dewar <dewar@adacore.com>
* gnat_rm.texi: Document that Allow_Integer_Address is ignored
if Address is not a private type.
* sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
Ignore pragma if System.Address is not a private type.
2014-01-21 Arnaud Charlet <charlet@adacore.com>
* namet.ads (Name_Len): Initialize to 0 to avoid accessing an
uninitialized value.
From-SVN: r206892
Diffstat (limited to 'gcc/ada/par.adb')
-rw-r--r-- | gcc/ada/par.adb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ada/par.adb b/gcc/ada/par.adb index ac21375..6788692 100644 --- a/gcc/ada/par.adb +++ b/gcc/ada/par.adb @@ -737,7 +737,13 @@ function Par (Configuration_Pragmas : Boolean) return List_Id is package Ch5 is function P_Condition return Node_Id; - -- Scan out and return a condition + -- Scan out and return a condition. Note that an error is given if + -- the condition is followed by a right parenthesis. + + function P_Condition (Cond : Node_Id) return Node_Id; + -- Similar to the above, but the caller has already scanned out the + -- conditional expression and passes it as an argument. This form of + -- the call does not check for a following right parenthesis. function P_Loop_Parameter_Specification return Node_Id; -- Used in loop constructs and quantified expressions. |