Makefile.in (INCLUDES_FOR_TARGET): New.
authorPaolo Bonzini <bonzini@gnu.org>
Sat, 6 Aug 2011 15:14:06 +0000 (15:14 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Sat, 6 Aug 2011 15:14:06 +0000 (15:14 +0000)
2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
            Mikael Morin   <mikael.morin@sfr.fr>

* Makefile.in (INCLUDES_FOR_TARGET): New.
(LIBGCC2_CFLAGS): Use it.
(CRTSTUFF_CFLAGS): Use it instead of INCLUDES.

Co-Authored-By: Mikael Morin <mikael.morin@sfr.fr>
From-SVN: r177522

gcc/ChangeLog
gcc/Makefile.in

index 2b32bbefe90036d71193ee7249c77f4a9435870e..6c3143fed90ddfa87a626457bde64ae1a7ba27a7 100644 (file)
@@ -1,3 +1,10 @@
+2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
+            Mikael Morin   <mikael.morin@sfr.fr>
+
+       * Makefile.in (INCLUDES_FOR_TARGET): New.
+       (LIBGCC2_CFLAGS): Use it.
+       (CRTSTUFF_CFLAGS): Use it instead of INCLUDES. 
+
 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.c (ix86_compute_frame_layout): Simplify
index 101e35e6bacf4e2d22eecca61c59afd32c0f1efa..ed96672aa94311237736a5cebe7936ce13ae485f 100644 (file)
@@ -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)