re PR ada/50048 ("cc1: note: obsolete option -I- used, please use -iquote instead...
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 6 Dec 2015 18:44:56 +0000 (18:44 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 6 Dec 2015 18:44:56 +0000 (18:44 +0000)
gnattools/
PR ada/50048
* Makefile.in (ftop_srcdir): New variable.
(INCLUDES_FOR_SUBDIR): Use -iquote and $(ftop_srcdir).
gcc/ada/
PR ada/50048
* gcc-interface/Makefile.in (INCLUDES): Use -iquote.

From-SVN: r231341

gcc/ada/ChangeLog
gcc/ada/gcc-interface/Makefile.in
gnattools/ChangeLog
gnattools/Makefile.in

index ebd9f3cb4c117e6ebeac6eaafa1a4b319e9db35c..b56de568726d78d987864220405111bb267274f5 100644 (file)
@@ -1,3 +1,8 @@
+2015-12-06  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/50048
+       * gcc-interface/Makefile.in (INCLUDES): Use -iquote.
+
 2015-12-06  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR ada/56274
index c5e6b3013e2142b4732d45df2bdf6212624ad565..8d91b667087cc2ca306c47bcae668d06fea89a46 100644 (file)
@@ -257,7 +257,8 @@ TOOLS_LIBS += @NO_PIE_FLAG@
 # Both . and srcdir are used, in that order,
 # so that tm.h and config.h will be found in the compilation
 # subdirectory rather than in the source directory.
-INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(ftop_srcdir)/include $(GMPINC)
+INCLUDES = -iquote . -iquote .. -iquote $(srcdir)/ada -iquote $(srcdir) \
+          -I $(ftop_srcdir)/include $(GMPINC)
 
 ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
 
index 4daff874eb1a01faa69621232f56f3618bcd6d17..bdcd968f308c62a5cf7b8f55bebb886f26d6dbdf 100644 (file)
@@ -1,3 +1,9 @@
+2015-12-06  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/50048
+       * Makefile.in (ftop_srcdir): New variable.
+       (INCLUDES_FOR_SUBDIR): Use -iquote and $(ftop_srcdir).
+
 2015-06-08  John Marino  <gnugcc@marino.st>
 
        * configure.ac (*-*-dragonfly*): New configuration.
index 423cc6e950cc36c22a505107d55f8766c9481769..0c889eeec7b7c73dae797c5179bb69cb9c108bad 100644 (file)
@@ -57,12 +57,16 @@ ADAFLAGS= -gnatpg -gnata
 # For finding the GCC build dir, which is used far too much
 GCC_DIR=../gcc
 
+# Full path to top source directory
+ftop_srcdir := $(shell cd $(srcdir)/..;${PWD_COMMAND})
+
 # Absolute srcdir for gcc (why do we want absolute?  I dunno)
 fsrcdir := $(shell cd $(srcdir)/../gcc/; ${PWD_COMMAND})
 
 # Useful "subroutines" for the excess includes
-INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir)/ada -I$(fsrcdir)/config \
-       -I$(fsrcdir)/../include -I$(fsrcdir)
+INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \
+                     -iquote $(fsrcdir)/ada -iquote $(fsrcdir)/config \
+                     -iquote $(fsrcdir) -I$(ftop_srcdir)/include
 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
 
 CXX_LFLAGS = \