diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-12 22:41:57 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-12 22:41:57 +0000 |
commit | 95e40d0c29b5bc7500a2eabb3501fb2ec157d2de (patch) | |
tree | 63660533540813c80404d5a1a36119e8489cf53b /gnattools | |
parent | a16332421175e21fe8be653e2fc01cb25d2702fc (diff) | |
download | gcc-95e40d0c29b5bc7500a2eabb3501fb2ec157d2de.tar.gz |
gnattools/
* Makefile.in (LOOSE_WARN): Delete.
(GCC_WARN_CFLAGS): Set to -W -Wall.
(TOOLS_FLAGS_TO_PASS_1): Delete.
(TOOLS_FLAGS_TO_PASS_1re): Rename into...
(TOOLS_FLAGS_TO_PASS_RE): ...this.
(gnattools-native): Use TOOLS_FLAGS_TO_PASS_NATIVE.
(regnattools): Use TOOLS_FLAGS_TO_PASS_RE.
libada/
* Makefile.in (LOOSE_WARN): Delete.
(GCC_WARN_CFLAGS): Likewise.
(WARN_CFLAGS): Likewise.
(GNATLIBFLAGS): Add -nostdinc.
(GNATLIBCFLAGS_FOR_C): Add -W -Wall.
(LIBADA_FLAGS_TO_PASS): Remove WARN_CFLAGS.
* configure.ac (warn_cflags): Delete.
* configure: Regenerate.
gcc/ada/
* sem_util.adb (Denotes_Same_Prefix): Fix fatal warning.
* gcc-interface/Make-lang.in (WARN_ADAFLAGS): New.
(ALL_ADAFLAGS): Include WARN_ADAFLAGS.
(ADA_FLAGS_TO_PASS): Likewise.
(COMMON_FLAGS_TO_PASS): New.
(ADA_TOOLS_FLAGS_TO_PASS): Use COMMON_FLAGS_TO_PASS. In the regular
native case, also use FLAGS_TO_PASS and ADA_FLAGS_TO_PASS.
(gnatlib): Use COMMON_FLAGS_TO_PASS.
(ada.install-common): Likewise.
(install-gnatlib): Likewise.
(install-gnatlib-obj): Likewise.
(gnattools): Use ADA_TOOLS_FLAGS_TO_PASS for gnattools1 as well.
(gnat-cross): Delete.
(gnatboot): Likewise.
(gnatboot2): Likewise.
(gnatboot3): Likewise.
(gnatstage1): Likewise.
(gnatstage2): Likewise.
* gcc-interface/Makefile.in (SOME_ADAFLAGS): Likewise.
(MOST_ADAFLAGS): Likewise.
(LOOSE_CFLAGS): Likewise.
(gnat-cross): Likewise.
(GNATLIBFLAGS): Add -W -Wall.
(GNATLIBCFLAGS_FOR_C): Likewise.
* gcc-interface/lang.opt: Remove C-specific warnings. Add doc lines.
* gcc-interface/misc.c (gnat_handle_option): Remove obsolete cases.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179878 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gnattools')
-rw-r--r-- | gnattools/ChangeLog | 10 | ||||
-rw-r--r-- | gnattools/Makefile.in | 34 |
2 files changed, 19 insertions, 25 deletions
diff --git a/gnattools/ChangeLog b/gnattools/ChangeLog index 9bcd6213230..e9a7a8be14e 100644 --- a/gnattools/ChangeLog +++ b/gnattools/ChangeLog @@ -1,3 +1,13 @@ +2011-10-12 Eric Botcazou <ebotcazou@adacore.com> + + * Makefile.in (LOOSE_WARN): Delete. + (GCC_WARN_CFLAGS): Set to -W -Wall. + (TOOLS_FLAGS_TO_PASS_1): Delete. + (TOOLS_FLAGS_TO_PASS_1re): Rename into... + (TOOLS_FLAGS_TO_PASS_RE): ...this. + (gnattools-native): Use TOOLS_FLAGS_TO_PASS_NATIVE. + (regnattools): Use TOOLS_FLAGS_TO_PASS_RE. + 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> PR target/39150 diff --git a/gnattools/Makefile.in b/gnattools/Makefile.in index 3718b30593f..794d374e75e 100644 --- a/gnattools/Makefile.in +++ b/gnattools/Makefile.in @@ -44,8 +44,7 @@ PWD_COMMAND = $${PWDCMD-pwd} # The tedious process of getting CFLAGS right. CFLAGS=-g -LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -GCC_WARN_CFLAGS = $(LOOSE_WARN) +GCC_WARN_CFLAGS = -W -Wall WARN_CFLAGS = @warn_cflags@ ADA_CFLAGS=@ADA_CFLAGS@ @@ -64,8 +63,8 @@ INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir)/ada -I$(fsrcdir)/config \ -I$(fsrcdir)/../include -I$(fsrcdir) ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada -# Variables for gnattools1, native -TOOLS_FLAGS_TO_PASS_1= \ +# Variables for gnattools, native +TOOLS_FLAGS_TO_PASS_NATIVE= \ "CC=../../xgcc -B../../" \ "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \ "LDFLAGS=$(LDFLAGS)" \ @@ -76,11 +75,13 @@ TOOLS_FLAGS_TO_PASS_1= \ "exeext=$(exeext)" \ "fsrcdir=$(fsrcdir)" \ "srcdir=$(fsrcdir)" \ + "GNATMAKE=../../gnatmake" \ + "GNATLINK=../../gnatlink" \ "GNATBIND=../../gnatbind" \ "TOOLSCASE=native" # Variables for regnattools -TOOLS_FLAGS_TO_PASS_1re= \ +TOOLS_FLAGS_TO_PASS_RE= \ "CC=../../xgcc -B../../" \ "CFLAGS=$(CFLAGS)" \ "ADAFLAGS=$(ADAFLAGS)" \ @@ -93,24 +94,7 @@ TOOLS_FLAGS_TO_PASS_1re= \ "GNATMAKE=../../gnatmake" \ "GNATLINK=../../gnatlink" \ "GNATBIND=../../gnatbind" \ - "TOOLSCASE=cross" \ - "INCLUDES=" - -# Variables for gnattools2, native -TOOLS_FLAGS_TO_PASS_NATIVE= \ - "CC=../../xgcc -B../../" \ - "CFLAGS=$(CFLAGS)" \ - "ADAFLAGS=$(ADAFLAGS)" \ - "ADA_CFLAGS=$(ADA_CFLAGS)" \ - "INCLUDES=$(INCLUDES_FOR_SUBDIR)" \ - "ADA_INCLUDES=-I../rts $(ADA_INCLUDES_FOR_SUBDIR)" \ - "exeext=$(exeext)" \ - "fsrcdir=$(fsrcdir)" \ - "srcdir=$(fsrcdir)" \ - "GNATMAKE=../../gnatmake" \ - "GNATLINK=../../gnatlink" \ - "GNATBIND=../../gnatbind" \ - "TOOLSCASE=native" + "TOOLSCASE=cross" # Variables for gnattools, cross TOOLS_FLAGS_TO_PASS_CROSS= \ @@ -177,7 +161,7 @@ $(GCC_DIR)/stamp-tools: gnattools-native: $(GCC_DIR)/stamp-tools $(GCC_DIR)/stamp-gnatlib-rts # gnattools1 $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \ - $(TOOLS_FLAGS_TO_PASS_1) \ + $(TOOLS_FLAGS_TO_PASS_NATIVE) \ ../../gnatmake$(exeext) ../../gnatlink$(exeext) # gnattools2 $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \ @@ -189,7 +173,7 @@ gnattools-native: $(GCC_DIR)/stamp-tools $(GCC_DIR)/stamp-gnatlib-rts regnattools: $(GCC_DIR)/stamp-gnatlib-rts # gnattools1-re $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \ - $(TOOLS_FLAGS_TO_PASS_1re) \ + $(TOOLS_FLAGS_TO_PASS_RE) INCLUDES="" \ gnatmake-re gnatlink-re # gnattools2 $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \ |