aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/switch-c.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2010-10-26 12:48:29 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2010-10-26 14:48:29 +0200
commit878f708abab2dbb86733df58e80a34c10b5d885b (patch)
tree04b4fabf31c9b8095d2ae48547d47d1a5ebaa82b /gcc/ada/switch-c.adb
parentce09f8b3f240994d4f9ecc2e95e8e0bbd78eb3f5 (diff)
downloadgcc-878f708abab2dbb86733df58e80a34c10b5d885b.zip
gcc-878f708abab2dbb86733df58e80a34c10b5d885b.tar.gz
gcc-878f708abab2dbb86733df58e80a34c10b5d885b.tar.bz2
sem_ch3.adb, [...]: Minor reformatting.
2010-10-26 Robert Dewar <dewar@adacore.com> * sem_ch3.adb, sem_ch4.adb, sem_disp.adb, switch-c.adb: Minor reformatting. * gnat_ugn.texi: Document -gnateP switch. From-SVN: r165953
Diffstat (limited to 'gcc/ada/switch-c.adb')
-rw-r--r--gcc/ada/switch-c.adb12
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ada/switch-c.adb b/gcc/ada/switch-c.adb
index 4e63e31..a1919e9 100644
--- a/gcc/ada/switch-c.adb
+++ b/gcc/ada/switch-c.adb
@@ -567,7 +567,13 @@ package body Switch.C is
Set_GNAT_Mode_Warnings;
Set_GNAT_Style_Check_Options;
- -- Other special modes set by -gnatg
+ -- Suppress categorization errors. The run-time has several
+ -- instances of violations of the categorization errors (e.g.
+ -- Pure units withing Preelaborate units. These violations are
+ -- harmless in the cases where we intend them, and we suppress
+ -- the warnings with Warnings (Off). In cases where we do not
+ -- intend the violation, warnings are errors in -gnatg mode
+ -- anyway, so we will still get an error.
Treat_Categorization_Errors_As_Warnings := True;
@@ -929,8 +935,8 @@ package body Switch.C is
when 'X' =>
Ptr := Ptr + 1;
- Extensions_Allowed := True;
- Ada_Version := Ada_Version_Type'Last;
+ Extensions_Allowed := True;
+ Ada_Version := Ada_Version_Type'Last;
Ada_Version_Explicit := Ada_Version_Type'Last;
-- Processing for y switch