From: Paolo Bonzini Date: Sat, 6 Aug 2011 15:14:06 +0000 (+0000) Subject: Makefile.in (INCLUDES_FOR_TARGET): New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc3801b0e64026be57b2987d23d3f7c0c97bff2d;p=gcc.git Makefile.in (INCLUDES_FOR_TARGET): New. 2011-08-06 Paolo Bonzini Mikael Morin * Makefile.in (INCLUDES_FOR_TARGET): New. (LIBGCC2_CFLAGS): Use it. (CRTSTUFF_CFLAGS): Use it instead of INCLUDES. Co-Authored-By: Mikael Morin From-SVN: r177522 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b32bbefe90..6c3143fed90 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-08-06 Paolo Bonzini + Mikael Morin + + * Makefile.in (INCLUDES_FOR_TARGET): New. + (LIBGCC2_CFLAGS): Use it. + (CRTSTUFF_CFLAGS): Use it instead of INCLUDES. + 2011-08-06 Uros Bizjak * config/i386/i386.c (ix86_compute_frame_layout): Simplify diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 101e35e6bac..ed96672aa94 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -671,9 +671,9 @@ endif # Options to use when compiling libgcc2.a. # LIBGCC2_DEBUG_CFLAGS = -g -LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) \ - $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) \ - -DIN_LIBGCC2 \ +LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(INCLUDES_FOR_TARGET) $(GCC_CFLAGS) \ + $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) \ + $(GTHREAD_FLAGS) -DIN_LIBGCC2 \ -fbuilding-libgcc -fno-stack-protector \ $(INHIBIT_LIBC_CFLAGS) @@ -685,8 +685,8 @@ LIBGCC2_INCLUDES = TARGET_LIBGCC2_CFLAGS = # Options to use when compiling crtbegin/end. -CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \ - -finhibit-size-directive -fno-inline -fno-exceptions \ +CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES_FOR_TARGET) $(MULTILIB_CFLAGS) \ + -g0 -finhibit-size-directive -fno-inline -fno-exceptions \ -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \ -fno-stack-protector \ $(INHIBIT_LIBC_CFLAGS) @@ -1090,6 +1090,9 @@ INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \ $(CPPINC) $(GMPINC) $(DECNUMINC) \ $(PPLINC) $(CLOOGINC) +INCLUDES_FOR_TARGET = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \ + -I$(srcdir)/../include $(DECNUMINC) -I$(srcdir)/../libgcc + .c.o: $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION)