diff mbox

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

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

Commit Message

Ludovic Brenta Aug. 11, 2011, 6:59 p.m. UTC
OK to apply as trivial?


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

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

Comments

Andrew Pinski Aug. 11, 2011, 7:02 p.m. UTC | #1
On Thu, Aug 11, 2011 at 11:59 AM, Ludovic Brenta
<ludovic@ludovic-brenta.org> wrote:
> OK to apply as trivial?
>
>
> 2011-08-11  Ludovic Brenta  <ludovic@ludovic-brenta.org>
>
>        PR ada/50048
>        * gcc-interface/Makefile.in (INCLUDES): replace -I- with
>        -iquote.
>
> --- a/src/gcc/ada/gcc-interface/Makefile.in
> +++ b/src/gcc/ada/gcc-interface/Makefile.in
> @@ -247,7 +247,7 @@
>  # 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 \
> +INCLUDES = -iquote -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/config \
>        -I$(srcdir)/../include

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.

Thanks,
Andrew Pinski
diff mbox

Patch

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