summaryrefslogtreecommitdiff
path: root/gcc/ada/par.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-10 14:34:26 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-10 14:34:26 +0000
commit14ade791121ae888d626b3dd558f9b6ffb4db622 (patch)
treeb877860313e1304b6652f4cf97e7a337ac6efded /gcc/ada/par.adb
parent91c6b0de93921ca4c8b3b9d098aeab6142f374b7 (diff)
downloadgcc-14ade791121ae888d626b3dd558f9b6ffb4db622.tar.gz
2010-09-10 Robert Dewar <dewar@adacore.com>
* frontend.adb: Minor reformatting. 2010-09-10 Robert Dewar <dewar@adacore.com> * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition * par-ch5.adb (P_Condition): Move from body to spec * par.adb (Ch5.P_Condition): Move from body to spec 2010-09-10 Ed Schonberg <schonberg@adacore.com> * exp_cg.adb (Write_Call_Info): If a type that has been registered in the call table is private, use its full view to generate information on its operations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164181 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/par.adb')
-rw-r--r--gcc/ada/par.adb7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/par.adb b/gcc/ada/par.adb
index bf3dc1e6b51..28c2ca789ee 100644
--- a/gcc/ada/par.adb
+++ b/gcc/ada/par.adb
@@ -709,6 +709,9 @@ function Par (Configuration_Pragmas : Boolean) return List_Id is
-------------
package Ch5 is
+ function P_Condition return Node_Id;
+ -- Scan out and return a condition
+
function P_Statement_Name (Name_Node : Node_Id) return Node_Id;
-- Given a node representing a name (which is a call), converts it
-- to the syntactically corresponding procedure call statement.
@@ -1255,6 +1258,7 @@ function Par (Configuration_Pragmas : Boolean) return List_Id is
-- Start of processing for Par
begin
+ Compiler_State := Parsing;
-- Deal with configuration pragmas case first
@@ -1266,10 +1270,12 @@ begin
begin
loop
if Token = Tok_EOF then
+ Compiler_State := Analyzing;
return Pragmas;
elsif Token /= Tok_Pragma then
Error_Msg_SC ("only pragmas allowed in configuration file");
+ Compiler_State := Analyzing;
return Error_List;
else
@@ -1479,6 +1485,7 @@ begin
Restore_Opt_Config_Switches (Save_Config_Switches);
Set_Comes_From_Source_Default (False);
+ Compiler_State := Analyzing;
return Empty_List;
end if;
end Par;