re PR bootstrap/21268 (Bootstrap, configuration problem and insn-conditions.c)
2005-08-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/21268 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the beginning. Remove $(INCLUDES) from all the rules, if following $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS). From-SVN: r103601
This commit is contained in:
parent
b654d8ce2a
commit
3a6ebcdcee
@ -1,3 +1,10 @@
|
||||
2005-08-18 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
PR bootstrap/21268
|
||||
* Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
|
||||
beginning. Remove $(INCLUDES) from all the rules, if following
|
||||
$(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
|
||||
|
||||
2005-08-29 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/23484
|
||||
|
@ -785,8 +785,10 @@ INTERNAL_CFLAGS = -DIN_GCC @CROSS@
|
||||
ALL_CFLAGS = $(X_CFLAGS) $(T_CFLAGS) \
|
||||
$(CFLAGS) $(INTERNAL_CFLAGS) $(COVERAGE_FLAGS) $(WARN_CFLAGS) $(XCFLAGS) @DEFS@
|
||||
|
||||
# Likewise.
|
||||
ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
|
||||
# Likewise. Put INCLUDES at the beginning: this way, if some autoconf macro
|
||||
# puts -I options in CPPFLAGS, our include files in the srcdir will always
|
||||
# win against random include files in /usr/include.
|
||||
ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
|
||||
|
||||
# Build and host support libraries.
|
||||
LIBIBERTY = ../libiberty/libiberty.a
|
||||
@ -834,7 +836,7 @@ INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
|
||||
$(CPPINC) $(GMPINC)
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION)
|
||||
|
||||
#
|
||||
# Support for additional languages (other than C).
|
||||
@ -1518,7 +1520,7 @@ collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS)
|
||||
|
||||
collect2.o : collect2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h \
|
||||
$(OBSTACK_H) $(DEMANGLE_H) collect2.h version.h
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
-DTARGET_MACHINE=\"$(target_noncanonical)\" \
|
||||
-c $(srcdir)/collect2.c $(OUTPUT_OPTION)
|
||||
|
||||
@ -1543,7 +1545,7 @@ c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(TREE_H) $(C_PRAGMA_H) $(FLAGS_H) toplev.h langhooks.h \
|
||||
tree-inline.h $(DIAGNOSTIC_H) intl.h debug.h $(C_COMMON_H) \
|
||||
opts.h options.h $(MKDEPS_H) c-incpath.h cppdefault.h
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
$< $(OUTPUT_OPTION) @TARGET_SYSTEM_ROOT_DEFINE@
|
||||
|
||||
c-cppbuiltin.o : c-cppbuiltin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
@ -1571,7 +1573,7 @@ c-dump.o : c-dump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
|
||||
c-pch.o : c-pch.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(CPPLIB_H) $(TREE_H) \
|
||||
$(C_COMMON_H) output.h toplev.h $(C_PRAGMA_H) $(GGC_H) debug.h \
|
||||
langhooks.h $(FLAGS_H) hosthooks.h version.h $(TARGET_H)
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
-DHOST_MACHINE=\"$(host)\" -DTARGET_MACHINE=\"$(target)\" \
|
||||
$< $(OUTPUT_OPTION)
|
||||
|
||||
@ -1595,14 +1597,14 @@ gcc.o: gcc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h multilib.h \
|
||||
configargs.h $(OBSTACK_H)
|
||||
(SHLIB_LINK='$(SHLIB_LINK)' \
|
||||
SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
$(DRIVER_DEFINES) \
|
||||
-c $(srcdir)/gcc.c $(OUTPUT_OPTION))
|
||||
|
||||
gccspec.o: gccspec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(GCC_H)
|
||||
(SHLIB_LINK='$(SHLIB_LINK)' \
|
||||
SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
$(DRIVER_DEFINES) \
|
||||
-c $(srcdir)/gccspec.c $(OUTPUT_OPTION))
|
||||
|
||||
@ -1667,7 +1669,7 @@ options.o: options.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) opts.h intl.h
|
||||
dumpvers: dumpvers.c
|
||||
|
||||
version.o: version.c version.h $(DATESTAMP) $(BASEVER) $(DEVPHASE)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
-DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
|
||||
-DDEVPHASE=$(DEVPHASE_s) -c $(srcdir)/version.c $(OUTPUT_OPTION)
|
||||
|
||||
@ -1695,7 +1697,7 @@ stringpool.o: stringpool.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
|
||||
prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) prefix.h \
|
||||
Makefile $(BASEVER)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
-DPREFIX=\"$(prefix)\" -DBASEVER=$(BASEVER_s) \
|
||||
-c $(srcdir)/prefix.c $(OUTPUT_OPTION)
|
||||
|
||||
@ -2016,7 +2018,7 @@ toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
|
||||
langhooks.h insn-flags.h $(CFGLAYOUT_H) real.h $(CFGLOOP_H) hosthooks.h \
|
||||
$(CGRAPH_H) $(COVERAGE_H) alloc-pool.h $(GGC_H) $(INTEGRATE_H) \
|
||||
$(CPPLIB_H) opts.h params.def tree-mudflap.h
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
-DTARGET_NAME=\"$(target_noncanonical)\" \
|
||||
-c $(srcdir)/toplev.c $(OUTPUT_OPTION)
|
||||
|
||||
@ -2480,7 +2482,7 @@ $(out_object_file): $(out_file) $(CONFIG_H) coretypes.h $(TM_H) $(TREE_H) $(GGC_
|
||||
output.h $(INSN_ATTR_H) $(SYSTEM_H) toplev.h $(TARGET_H) libfuncs.h \
|
||||
$(TARGET_DEF_H) function.h $(SCHED_INT_H) $(TM_P_H) $(EXPR_H) $(OPTABS_H) \
|
||||
langhooks.h
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
$(out_file) $(OUTPUT_OPTION)
|
||||
|
||||
# Build auxiliary files that support ecoff format.
|
||||
@ -2500,7 +2502,7 @@ mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) coretypes.h \
|
||||
libbackend.o : $(OBJS-common:.o=.c) $(out_file) \
|
||||
insn-config.h insn-flags.h insn-codes.h insn-constants.h \
|
||||
insn-attr.h $(DATESTAMP) $(BASEVER) $(DEVPHASE)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
-DTARGET_NAME=\"$(target_noncanonical)\" \
|
||||
-DLOCALEDIR=\"$(localedir)\" \
|
||||
-c $(filter %.c,$^) -o $@ \
|
||||
@ -2586,7 +2588,7 @@ insn-emit.o : insn-emit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(RTL_H) $(EXPR_H) real.h output.h insn-config.h $(OPTABS_H) reload.h \
|
||||
$(RECOG_H) toplev.h function.h $(FLAGS_H) hard-reg-set.h $(RESOURCE_H) \
|
||||
$(TM_P_H) $(BASIC_BLOCK_H)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-emit.c \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) -c insn-emit.c \
|
||||
$(OUTPUT_OPTION)
|
||||
|
||||
insn-emit.c: s-emit ; @true
|
||||
@ -2598,7 +2600,7 @@ s-emit : $(MD_DEPS) build/genemit$(build_exeext)
|
||||
insn-recog.o : insn-recog.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(RTL_H) insn-config.h $(RECOG_H) real.h output.h $(FLAGS_H) function.h \
|
||||
hard-reg-set.h $(RESOURCE_H) $(TM_P_H) toplev.h reload.h
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) -c insn-recog.c \
|
||||
$(OUTPUT_OPTION)
|
||||
|
||||
insn-recog.c: s-recog ; @true
|
||||
@ -2609,7 +2611,7 @@ s-recog : $(MD_DEPS) build/genrecog$(build_exeext)
|
||||
|
||||
insn-opinit.o : insn-opinit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(RTL_H) insn-config.h $(FLAGS_H) $(RECOG_H) $(EXPR_H) $(OPTABS_H) reload.h
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-opinit.c \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) -c insn-opinit.c \
|
||||
$(OUTPUT_OPTION)
|
||||
|
||||
insn-opinit.c: s-opinit ; @true
|
||||
@ -2620,7 +2622,7 @@ s-opinit : $(MD_DEPS) build/genopinit$(build_exeext)
|
||||
|
||||
insn-extract.o : insn-extract.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(RTL_H) toplev.h insn-config.h $(RECOG_H)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-extract.c \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) -c insn-extract.c \
|
||||
$(OUTPUT_OPTION)
|
||||
|
||||
insn-extract.c: s-extract ; @true
|
||||
@ -2632,7 +2634,7 @@ s-extract : $(MD_DEPS) build/genextract$(build_exeext)
|
||||
insn-peep.o : insn-peep.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(RTL_H) $(REGS_H) output.h real.h insn-config.h $(RECOG_H) except.h \
|
||||
function.h $(TM_P_H)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-peep.c \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) -c insn-peep.c \
|
||||
$(OUTPUT_OPTION)
|
||||
|
||||
insn-peep.c: s-peep ; @true
|
||||
@ -2644,7 +2646,7 @@ s-peep : $(MD_DEPS) build/genpeep$(build_exeext)
|
||||
insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(RTL_H) $(REGS_H) real.h output.h $(INSN_ATTR_H) insn-config.h toplev.h \
|
||||
$(RECOG_H) $(TM_P_H) $(FLAGS_H)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-attrtab.c \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) -c insn-attrtab.c \
|
||||
$(OUTPUT_OPTION)
|
||||
|
||||
insn-attr.h: s-attr ; @true
|
||||
@ -2663,7 +2665,7 @@ insn-output.o : insn-output.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(RTL_H) $(GGC_H) $(REGS_H) real.h conditions.h hard-reg-set.h \
|
||||
insn-config.h $(INSN_ATTR_H) $(EXPR_H) output.h $(RECOG_H) function.h \
|
||||
toplev.h $(FLAGS_H) insn-codes.h $(TM_P_H) $(TARGET_H)
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-output.c \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) -c insn-output.c \
|
||||
$(OUTPUT_OPTION)
|
||||
|
||||
insn-output.c: s-output ; @true
|
||||
@ -2831,8 +2833,7 @@ $(genprogs): %$(build_exeext): %.o $(BUILD_RTL) $(BUILD_SUPPORT) \
|
||||
$(BUILD_ERRORS) $(BUILD_LIBS)
|
||||
|
||||
$(genobjs): %.o : # dependencies provided by explicit rule later
|
||||
$(CC_FOR_BUILD) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(INCLUDES) \
|
||||
-o $@ $<
|
||||
$(CC_FOR_BUILD) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o $@ $<
|
||||
|
||||
build/read-rtl.o: read-rtl.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GTM_H) \
|
||||
$(RTL_BASE_H) $(OBSTACK_H) $(HASHTAB_H)
|
||||
@ -2971,7 +2972,7 @@ build/varray.o: varray.c $(BCONFIG_H) coretypes.h $(GTM_H) $(SYSTEM_H) \
|
||||
#
|
||||
# Remake internationalization support.
|
||||
intl.o: intl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h Makefile
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
-DLOCALEDIR=\"$(localedir)\" \
|
||||
-c $(srcdir)/intl.c $(OUTPUT_OPTION)
|
||||
|
||||
@ -2990,7 +2991,7 @@ PREPROCESSOR_DEFINES = \
|
||||
|
||||
cppdefault.o: cppdefault.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
cppdefault.h Makefile
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
$(PREPROCESSOR_DEFINES) \
|
||||
-c $(srcdir)/cppdefault.c $(OUTPUT_OPTION)
|
||||
|
||||
@ -3011,7 +3012,7 @@ protoize.o: protoize.c $(srcdir)/../include/getopt.h $(CONFIG_H) $(SYSTEM_H) \
|
||||
coretypes.h $(TM_H) Makefile version.h cppdefault.h intl.h
|
||||
(SHLIB_LINK='$(SHLIB_LINK)' \
|
||||
SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
$(DRIVER_DEFINES) \
|
||||
$(srcdir)/protoize.c $(OUTPUT_OPTION))
|
||||
|
||||
@ -3019,7 +3020,7 @@ unprotoize.o: protoize.c $(srcdir)/../include/getopt.h \
|
||||
$(CONFIG_H) $(SYSTEM_H) Makefile version.h
|
||||
(SHLIB_LINK='$(SHLIB_LINK)' \
|
||||
SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
|
||||
$(CC) -c -DUNPROTOIZE $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(CC) -c -DUNPROTOIZE $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
$(DRIVER_DEFINES) \
|
||||
$(srcdir)/protoize.c $(OUTPUT_OPTION))
|
||||
|
||||
@ -3029,7 +3030,7 @@ SYSCALLS.c.X: $(srcdir)/sys-types.h $(srcdir)/sys-protos.h $(GCC_PASSES) \
|
||||
-rm -f SYSCALLS.c tmp-SYSCALLS.s
|
||||
sed -e s/TARGET_GETGROUPS_T/$(TARGET_GETGROUPS_T)/ \
|
||||
$(srcdir)/sys-types.h $(srcdir)/sys-protos.h > SYSCALLS.c
|
||||
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
-aux-info $@ -S -o tmp-SYSCALLS.s SYSCALLS.c
|
||||
-rm -f SYSCALLS.c tmp-SYSCALLS.s
|
||||
|
||||
@ -3962,7 +3963,7 @@ qmtest-gui: ${QMTEST_DIR}/context
|
||||
|
||||
paranoia.o: $(srcdir)/../contrib/paranoia.cc $(CONFIG_H) $(SYSTEM_H) \
|
||||
real.h $(TREE_H)
|
||||
g++ -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
|
||||
g++ -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION)
|
||||
|
||||
paranoia: paranoia.o real.o $(LIBIBERTY)
|
||||
g++ -o $@ paranoia.o real.o $(LIBIBERTY)
|
||||
|
Loading…
Reference in New Issue
Block a user