OSDN Git Service

PR ada/56271
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Feb 2013 18:24:15 +0000 (18:24 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Feb 2013 18:24:15 +0000 (18:24 +0000)
Backport from mainline
2012-05-15  Olivier Hainque  <hainque@adacore.com>

* gcc-interface/Make-lang.in (COMMON_FLAGS_TO_PASS): Use WARN_CFLAGS
instead of trying to mimic it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@196178 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/gcc-interface/Make-lang.in

index 34ddde5..c5133b8 100644 (file)
@@ -1,3 +1,12 @@
+2013-02-20  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/56271
+       Backport from mainline
+       2012-05-15  Olivier Hainque  <hainque@adacore.com>
+
+       * gcc-interface/Make-lang.in (COMMON_FLAGS_TO_PASS): Use WARN_CFLAGS
+       instead of trying to mimic it.
+
 2013-02-14  Rainer Emrich  <rainer@emrich-ebersheim.de>
 
        Back-port from mainline.
index 289f0b7..ec95398 100644 (file)
@@ -68,7 +68,7 @@ ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
 THREAD_KIND=native
 TRACE=no
 # We do not want the WARN_CFLAGS of the compiler in Ada as it is for C/C++.
-COMMON_FLAGS_TO_PASS = $(filter-out -pedantic -W%, $(FLAGS_TO_PASS))
+COMMON_FLAGS_TO_PASS = $(filter-out $(WARN_CFLAGS), $(FLAGS_TO_PASS))
 ADA_FLAGS_TO_PASS = \
        "ADA_FOR_BUILD=$(ADA_FOR_BUILD)"        \
        "ADA_INCLUDE_DIR=$(ADA_INCLUDE_DIR)"    \