Commit cc3801b0 by Paolo Bonzini Committed by Paolo Bonzini

Makefile.in (INCLUDES_FOR_TARGET): New.

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
parent 56b6687b
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> 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_compute_frame_layout): Simplify * config/i386/i386.c (ix86_compute_frame_layout): Simplify
......
...@@ -671,9 +671,9 @@ endif ...@@ -671,9 +671,9 @@ endif
# Options to use when compiling libgcc2.a. # Options to use when compiling libgcc2.a.
# #
LIBGCC2_DEBUG_CFLAGS = -g LIBGCC2_DEBUG_CFLAGS = -g
LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) \ LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(INCLUDES_FOR_TARGET) $(GCC_CFLAGS) \
$(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) \ $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) \
-DIN_LIBGCC2 \ $(GTHREAD_FLAGS) -DIN_LIBGCC2 \
-fbuilding-libgcc -fno-stack-protector \ -fbuilding-libgcc -fno-stack-protector \
$(INHIBIT_LIBC_CFLAGS) $(INHIBIT_LIBC_CFLAGS)
...@@ -685,8 +685,8 @@ LIBGCC2_INCLUDES = ...@@ -685,8 +685,8 @@ LIBGCC2_INCLUDES =
TARGET_LIBGCC2_CFLAGS = TARGET_LIBGCC2_CFLAGS =
# Options to use when compiling crtbegin/end. # Options to use when compiling crtbegin/end.
CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \ CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES_FOR_TARGET) $(MULTILIB_CFLAGS) \
-finhibit-size-directive -fno-inline -fno-exceptions \ -g0 -finhibit-size-directive -fno-inline -fno-exceptions \
-fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \ -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \
-fno-stack-protector \ -fno-stack-protector \
$(INHIBIT_LIBC_CFLAGS) $(INHIBIT_LIBC_CFLAGS)
...@@ -1090,6 +1090,9 @@ INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \ ...@@ -1090,6 +1090,9 @@ INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
$(CPPINC) $(GMPINC) $(DECNUMINC) \ $(CPPINC) $(GMPINC) $(DECNUMINC) \
$(PPLINC) $(CLOOGINC) $(PPLINC) $(CLOOGINC)
INCLUDES_FOR_TARGET = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
-I$(srcdir)/../include $(DECNUMINC) -I$(srcdir)/../libgcc
.c.o: .c.o:
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment