diff mbox

PR ada/50048: "cc1: note: obsolete option -I- used, please use -iquote instead" during bootstrap

Message ID 87y5yy48ko.fsf@ludovic-brenta.org
State New
Headers show

Commit Message

Ludovic Brenta Aug. 12, 2011, 9:35 p.m. UTC
Andrew Pinski writes:
> This is wrong as -iquote takes an operand.  So it is eating up -I. for
> the -iquote.  You have to replace all of the -I after -I- with
> -iquote.

OK, here is an amended patch.  I don't dare call it "trivial" anymore :)
(Note that even the "wrong" patch solved the problem reported on Debian,
though).

2011-08-11  Ludovic Brenta  <ludovic@ludovic-brenta.org>

	PR ada/50048
	* gcc-interface/Makefile.in (INCLUDES): replace -I- with
	-iquote.
diff mbox

Patch

Index: b/src/gcc/ada/gcc-interface/Makefile.in
===================================================================
--- a/src/gcc/ada/gcc-interface/Makefile.in
+++ b/src/gcc/ada/gcc-interface/Makefile.in
@@ -247,8 +247,8 @@ 
 # 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$(srcdir)/config \
-	-I$(srcdir)/../include
+INCLUDES = -iquote . -iquote .. -iquote $(srcdir)/ada -iquote$(srcdir) \
+	-iquote $(srcdir)/config -iquote $(srcdir)/../include
 
 ADA_INCLUDES = -I- -I. -I$(srcdir)/ada