aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/switch-c.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-06-23 12:27:31 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2009-06-23 12:27:31 +0200
commit14e339993e97e2f8b35b6279dd1402cdcf4b8742 (patch)
treef0311b1e502afa7ff259258722c48b933768c5bf /gcc/ada/switch-c.adb
parentb6d83244a33d27cfbe781ea4ce693cd9280f1860 (diff)
downloadgcc-14e339993e97e2f8b35b6279dd1402cdcf4b8742.zip
gcc-14e339993e97e2f8b35b6279dd1402cdcf4b8742.tar.gz
gcc-14e339993e97e2f8b35b6279dd1402cdcf4b8742.tar.bz2
[multiple changes]
2009-06-23 Ed Schonberg <schonberg@adacore.com> * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use Available_View only when designated type of an anonymous access type is limited view. 2009-06-23 Robert Dewar <dewar@adacore.com> * sem_ch10.adb: Minor reformatting * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of turning off inlining if ASIS mode active). * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode This belongs in gnat1drv.adb after switches are scanned. From-SVN: r148846
Diffstat (limited to 'gcc/ada/switch-c.adb')
-rw-r--r--gcc/ada/switch-c.adb41
1 files changed, 2 insertions, 39 deletions
diff --git a/gcc/ada/switch-c.adb b/gcc/ada/switch-c.adb
index 28ed6c5..c860af4 100644
--- a/gcc/ada/switch-c.adb
+++ b/gcc/ada/switch-c.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2001-2008, Free Software Foundation, Inc. --
+-- Copyright (C) 2001-2009, 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- --
@@ -228,11 +228,6 @@ package body Switch.C is
Ptr := Ptr + 1;
Operating_Mode := Check_Semantics;
- if Tree_Output then
- ASIS_Mode := True;
- Inspector_Mode := False;
- end if;
-
-- Processing for d switch
when 'd' =>
@@ -257,25 +252,6 @@ package body Switch.C is
if Dot then
Set_Dotted_Debug_Flag (C);
Store_Compilation_Switch ("-gnatd." & C);
-
- -- ??? Change this when we use a non debug flag to
- -- enable inspector mode.
-
- if C = 'I' then
- if ASIS_Mode then
- -- Do not enable inspector mode in ASIS mode,
- -- since the two switches are incompatible.
-
- Inspector_Mode := False;
-
- else
- -- In inspector mode, we need back-end rep info
- -- annotations and disable front-end inlining.
-
- Back_Annotate_Rep_Info := True;
- Front_End_Inlining := False;
- end if;
- end if;
else
Set_Debug_Flag (C);
Store_Compilation_Switch ("-gnatd" & C);
@@ -652,14 +628,7 @@ package body Switch.C is
when 'N' =>
Ptr := Ptr + 1;
Inline_Active := True;
-
- -- Do not enable front-end inlining in inspector mode, to
- -- generate trees that can be converted to SCIL. We still
- -- enable back-end inlining which is fine.
-
- if not Inspector_Mode then
- Front_End_Inlining := True;
- end if;
+ Front_End_Inlining := True;
-- Processing for o switch
@@ -769,12 +738,6 @@ package body Switch.C is
when 't' =>
Ptr := Ptr + 1;
Tree_Output := True;
-
- if Operating_Mode = Check_Semantics then
- ASIS_Mode := True;
- Inspector_Mode := False;
- end if;
-
Back_Annotate_Rep_Info := True;
-- Processing for T switch