This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] relax bootstrap constraints


This is a follow up of a previous change which added -gnatws to stage1
Ada flags so that it is easier to bootstrap gnat with itself, and still
introduce new code that would generate incorrect/bogus warnings with older
versions of GNAT (e.g. new pragma generating a warning with older compilers).

In this change, we use -gnatwn which cancels previousely set -gnatwe,
so that e.g. new style check rules can be enforced without introducing
bootstrap issues. For example, we recently improved the way indentation
of comment are checked, but could not take advantage of this change (in
-gnaty/-gnatg) without using -gnatwn.

Tested on i686-pc-linux-gnu, committed on trunk.

2008-06-09  Arnaud Charlet  <charlet@adacore.com>

	* Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
	checks non fatal.

Index: Make-lang.in
===================================================================
--- Make-lang.in	(revision 136391)
+++ Make-lang.in	(working copy)
@@ -50,7 +50,7 @@ BOOT_ADAFLAGS= $(COMMON_ADAFLAGS)
 ifeq ($(CROSS),)
 # If not in cross context we are probably doing a bootstrap
 # so disable warnings during stage1
-ADAFLAGS= $(COMMON_ADAFLAGS) -gnatws
+ADAFLAGS= $(COMMON_ADAFLAGS) -gnatwns
 else
 ADAFLAGS= $(COMMON_ADAFLAGS)
 endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]