Mercurial > hg > CbC > CbC_gcc
diff gcc/Makefile.in @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 (2018-10-25) |
parents | ab0bcb71f44d 84e7813d76e9 |
children | 351920fa3827 |
line wrap: on
line diff
--- a/gcc/Makefile.in Thu Oct 25 08:08:40 2018 +0900 +++ b/gcc/Makefile.in Thu Oct 25 10:21:07 2018 +0900 @@ -1,7 +1,7 @@ # Makefile for GNU Compiler Collection # Run 'configure' to generate Makefile from Makefile.in -# Copyright (C) 1987-2017 Free Software Foundation, Inc. +# Copyright (C) 1987-2018 Free Software Foundation, Inc. #This file is part of GCC. @@ -57,6 +57,7 @@ build=@build@ host=@host@ host_noncanonical=@host_noncanonical@ +host_os=@host_os@ target=@target@ target_noncanonical:=@target_noncanonical@ @@ -136,8 +137,10 @@ # Selection of languages to be made. CONFIG_LANGUAGES = @all_selected_languages@ -LANGUAGES = c gcov$(exeext) gcov-dump$(exeext) gcov-tool$(exeext) \ - $(CONFIG_LANGUAGES) +LANGUAGES = c $(CONFIG_LANGUAGES) +ifeq (@enable_gcov@,yes) +LANGUAGES += gcov$(exeext) gcov-dump$(exeext) gcov-tool$(exeext) +endif # Default values for variables overridden in Makefile fragments. # CFLAGS is for the user to override to, e.g., do a cross build with -O2. @@ -393,6 +396,11 @@ enable_plugin = @enable_plugin@ +# On MinGW plugin installation involves installing import libraries. +ifeq ($(enable_plugin),yes) + plugin_implib := $(if $(strip $(filter mingw%,$(host_os))),yes,no) +endif + enable_host_shared = @enable_host_shared@ enable_as_accelerator = @enable_as_accelerator@ @@ -917,7 +925,7 @@ READ_MD_H = $(OBSTACK_H) $(HASHTAB_H) read-md.h PARAMS_H = params.h params-enum.h params.def BUILTINS_DEF = builtins.def sync-builtins.def omp-builtins.def \ - gtm-builtins.def sanitizer.def cilkplus.def cilk-builtins.def \ + gtm-builtins.def sanitizer.def \ hsa-builtins.def INTERNAL_FN_DEF = internal-fn.def INTERNAL_FN_H = internal-fn.h $(INTERNAL_FN_DEF) @@ -970,8 +978,7 @@ INPUT_H = $(srcdir)/../libcpp/include/line-map.h input.h OPTS_H = $(INPUT_H) $(VEC_H) opts.h $(OBSTACK_H) SYMTAB_H = $(srcdir)/../libcpp/include/symtab.h $(OBSTACK_H) -CPP_ID_DATA_H = $(CPPLIB_H) $(srcdir)/../libcpp/include/cpp-id-data.h -CPP_INTERNAL_H = $(srcdir)/../libcpp/internal.h $(CPP_ID_DATA_H) +CPP_INTERNAL_H = $(srcdir)/../libcpp/internal.h TREE_DUMP_H = tree-dump.h $(SPLAY_TREE_H) $(DUMPFILE_H) TREE_PASS_H = tree-pass.h $(TIMEVAR_H) $(DUMPFILE_H) TREE_SSA_H = tree-ssa.h tree-ssa-operands.h \ @@ -1070,7 +1077,7 @@ BUILD_RTL = build/rtl.o build/read-rtl.o build/ggc-none.o \ build/vec.o build/min-insn-modes.o build/gensupport.o \ - build/print-rtl.o build/hash-table.o + build/print-rtl.o build/hash-table.o build/sort.o BUILD_MD = build/read-md.o BUILD_ERRORS = build/errors.o @@ -1110,6 +1117,10 @@ LANG_MAKEFRAGS = @all_lang_makefrags@ +# Used by gcc/jit/Make-lang.in +LD_VERSION_SCRIPT_OPTION = @ld_version_script_option@ +LD_SONAME_OPTION = @ld_soname_option@ + # Flags to pass to recursive makes. # CC is set by configure. # ??? The choices here will need some experimenting with. @@ -1144,6 +1155,7 @@ "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ "LN=$(LN)" \ "LN_S=$(LN_S)" \ + "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ "MAKEINFO=$(MAKEINFO)" \ "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \ "MAKEOVERRIDES=" \ @@ -1161,6 +1173,7 @@ "libexecsubdir=$(libexecsubdir)" \ "datarootdir=$(datarootdir)" \ "datadir=$(datadir)" \ + "libsubdir=$(libsubdir)" \ "localedir=$(localedir)" # # Lists of files for various purposes. @@ -1188,9 +1201,8 @@ c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o \ c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o \ c-family/c-semantics.o c-family/c-ada-spec.o \ - c-family/c-cilkplus.o \ - c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o \ - c-family/c-attribs.o c-family/c-warn.o + c-family/c-ubsan.o c-family/known-headers.o \ + c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o # Language-independent object files. # We put the *-match.o and insn-*.o files first so that a parallel make @@ -1239,7 +1251,6 @@ cgraphbuild.o \ cgraphunit.o \ cgraphclones.o \ - cilk-common.o \ combine.o \ combine-stack-adj.o \ compare-elim.o \ @@ -1272,6 +1283,7 @@ dwarf2asm.o \ dwarf2cfi.o \ dwarf2out.o \ + early-remat.o \ emit-rtl.o \ et-forest.o \ except.o \ @@ -1279,6 +1291,7 @@ expmed.o \ expr.o \ fibonacci_heap.o \ + file-prefix-map.o \ final.o \ fixed-value.o \ fold-const.o \ @@ -1297,9 +1310,13 @@ gimple-iterator.o \ gimple-fold.o \ gimple-laddress.o \ + gimple-loop-interchange.o \ + gimple-loop-jam.o \ gimple-low.o \ gimple-pretty-print.o \ gimple-ssa-backprop.o \ + gimple-ssa-evrp.o \ + gimple-ssa-evrp-analyze.o \ gimple-ssa-isolate-paths.o \ gimple-ssa-nonnull-compare.o \ gimple-ssa-split-paths.o \ @@ -1307,6 +1324,7 @@ gimple-ssa-strength-reduction.o \ gimple-ssa-sprintf.o \ gimple-ssa-warn-alloca.o \ + gimple-ssa-warn-restrict.o \ gimple-streamer-in.o \ gimple-streamer-out.o \ gimple-walk.o \ @@ -1339,7 +1357,6 @@ incpath.o \ init-regs.o \ internal-fn.o \ - ipa-chkp.o \ ipa-cp.o \ ipa-devirt.o \ ipa-fnsummary.o \ @@ -1353,6 +1370,7 @@ ipa-predicate.o \ ipa-profile.o \ ipa-prop.o \ + ipa-param-manipulation.o \ ipa-pure-const.o \ ipa-icf.o \ ipa-icf-gimple.o \ @@ -1368,6 +1386,7 @@ ira-color.o \ ira-emit.o \ ira-lives.o \ + json.o \ jump.o \ langhooks.o \ lcm.o \ @@ -1404,10 +1423,13 @@ omp-grid.o \ omp-low.o \ omp-simd-clone.o \ + opt-problem.o \ optabs.o \ optabs-libfuncs.o \ optabs-query.o \ optabs-tree.o \ + optinfo.o \ + optinfo-emit-json.o \ options-save.o \ opts-global.o \ passes.o \ @@ -1435,18 +1457,17 @@ reload1.o \ reorg.o \ resource.o \ - rtl-chkp.o \ rtl-error.o \ rtl-tests.o \ rtl.o \ rtlhash.o \ rtlanal.o \ rtlhooks.o \ + rtx-vector-builder.o \ run-rtl-passes.o \ sched-deps.o \ sched-ebb.o \ sched-rgn.o \ - sdbout.o \ sel-sched-ir.o \ sel-sched-dump.o \ sel-sched.o \ @@ -1501,8 +1522,6 @@ tree-outof-ssa.o \ tree-parloops.o \ tree-phinodes.o \ - tree-chkp.o \ - tree-chkp-opt.o \ tree-predcom.o \ tree-pretty-print.o \ tree-profile.o \ @@ -1565,6 +1584,7 @@ tree-vect-loop-manip.o \ tree-vect-slp.o \ tree-vectorizer.o \ + tree-vector-builder.o \ tree-vrp.o \ tree.o \ typed-splay-tree.o \ @@ -1574,11 +1594,14 @@ var-tracking.o \ varasm.o \ varpool.o \ + vec-perm-indices.o \ vmsdbgout.o \ + vr-values.o \ vtable-verify.o \ web.o \ wide-int.o \ wide-int-print.o \ + wide-int-range.o \ xcoffout.o \ $(out_object_file) \ $(EXTRA_OBJS) \ @@ -1591,13 +1614,13 @@ pretty-print.o intl.o \ sbitmap.o \ vec.o input.o version.o hash-table.o ggc-none.o memory-block.o \ - selftest.o + selftest.o selftest-diagnostic.o sort.o # Objects in libcommon-target.a, used by drivers and by the core # compiler and containing target-dependent code. OBJS-libcommon-target = $(common_out_object_file) prefix.o params.o \ opts.o opts-common.o options.o vec.o hooks.o common/common-targhooks.o \ - hash-table.o file-find.o spellcheck.o selftest.o + hash-table.o file-find.o spellcheck.o selftest.o opt-suggestions.o # This lists all host objects for the front ends. ALL_HOST_FRONTEND_OBJS = $(foreach v,$(CONFIG_LANGUAGES),$($(v)_OBJS)) @@ -1904,67 +1927,28 @@ # Specify -o /dev/null so the output of -S is discarded. More importantly # It does not try to create a file with the name "null.s" on POSIX and # "nul.s" on Windows. Because on Windows "nul" is a reserved file name. +# Beware that /dev/null is not available to mingw tools, so directly use +# "nul" instead of "/dev/null" if we're building on a mingw machine. # Specify the path to gcc/testsuite/selftests within the srcdir # as an argument to -fself-test. -SELFTEST_FLAGS = -nostdinc /dev/null -S -o /dev/null \ +DEVNULL=$(if $(findstring mingw,$(build)),nul,/dev/null) +SELFTEST_FLAGS = -nostdinc $(DEVNULL) -S -o $(DEVNULL) \ -fself-test=$(srcdir)/testsuite/selftests -C_SELFTEST_FLAGS = -xc $(SELFTEST_FLAGS) -CPP_SELFTEST_FLAGS = -xc++ $(SELFTEST_FLAGS) - SELFTEST_DEPS = $(GCC_PASSES) stmp-int-hdrs $(srcdir)/testsuite/selftests -C_SELFTEST_DEPS = cc1$(exeext) $(SELFTEST_DEPS) -CPP_SELFTEST_DEPS = cc1plus$(exeext) $(SELFTEST_DEPS) - # Run the selftests during the build once we have a driver and the frontend, # so that self-test failures are caught as early as possible. # Use "s-selftest-FE" to ensure that we only run the selftests if the # driver, frontend, or selftest data change. .PHONY: selftest -# By default, only run the selftests within the C frontend -selftest: s-selftest-c - -# C selftests -s-selftest-c: $(C_SELFTEST_DEPS) - $(GCC_FOR_TARGET) $(C_SELFTEST_FLAGS) - $(STAMP) $@ - -# Convenience methods for running C selftests under gdb: -.PHONY: selftest-c-gdb -selftest-c-gdb: $(C_SELFTEST_DEPS) - $(GCC_FOR_TARGET) $(C_SELFTEST_FLAGS) \ - -wrapper gdb,--args - -.PHONY: selftest-gdb -selftest-gdb: selftest-c-gdb - -# Convenience methods for running C selftests under valgrind: -.PHONY: selftest-c-valgrind -selftest-c-valgrind: $(C_SELFTEST_DEPS) - $(GCC_FOR_TARGET) $(C_SELFTEST_FLAGS) \ - -wrapper valgrind,--leak-check=full - -.PHONY: selftest-valgrind -selftest-valgrind: selftest-c-valgrind - -# C++ selftests -s-selftest-c++: $(CPP_SELFTEST_DEPS) - $(GCC_FOR_TARGET) $(CPP_SELFTEST_FLAGS) - $(STAMP) $@ - -# Convenience method for running C++ selftests under gdb: -.PHONY: selftest-c++-gdb -selftest-c++-gdb: $(CPP_SELFTEST_DEPS) - $(GCC_FOR_TARGET) $(CPP_SELFTEST_FLAGS) \ - -wrapper gdb,--args - -# Convenience method for running C++ selftests under valgrind: -.PHONY: selftest-c++-valgrind -selftest-c++-valgrind: $(CPP_SELFTEST_DEPS) - $(GCC_FOR_TARGET) $(CPP_SELFTEST_FLAGS) \ - -wrapper valgrind,--leak-check=full +# Potentially run all selftest-<LANG>. The various <LANG>/Make-lang.in can +# require the selftests to be run by defining their selftest-<LANG> as +# s-selftest-<LANG>. Otherwise, they should define it as empty. + +SELFTEST_TARGETS = @selftest_languages@ +selftest: $(SELFTEST_TARGETS) # Recompile all the language-independent object files. # This is used only if the user explicitly asks for it. @@ -2132,7 +2116,7 @@ LTO_WRAPPER_OBJS = lto-wrapper.o collect-utils.o ggc-none.o lto-wrapper$(exeext): $(LTO_WRAPPER_OBJS) libcommon-target.a $(LIBDEPS) - +$(LINKER) $(ALL_COMPILERFLAGS) $(LDFLAGS) -o T$@ \ + +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o T$@ \ $(LTO_WRAPPER_OBJS) libcommon-target.a $(LIBS) mv -f T$@ $@ @@ -2228,6 +2212,7 @@ $(STAMP) s-bversion CFLAGS-toplev.o += -DTARGET_NAME=\"$(target_noncanonical)\" +CFLAGS-optinfo-emit-json.o += -DTARGET_NAME=\"$(target_noncanonical)\" pass-instances.def: $(srcdir)/passes.def $(PASSES_EXTRA) \ $(srcdir)/gen-pass-instances.awk @@ -2477,7 +2462,7 @@ else \ echo >&2 ; \ echo Verify that you have permission to grant a GFDL license for all >&2 ; \ - echo new text in tm.texi, then copy it to $(srcdir)/doc/tm.texi. >&2 ; \ + echo new text in $(objdir)/tm.texi, then copy it to $(srcdir)/doc/tm.texi. >&2 ; \ false; \ fi @@ -2495,11 +2480,11 @@ generic-match.c $(STAMP) s-match -GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \ +GTFILES = $(CPPLIB_H) $(srcdir)/input.h $(srcdir)/coretypes.h \ $(host_xm_file_list) \ $(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \ - $(srcdir)/wide-int.h $(srcdir)/alias.h $(srcdir)/cilk.h \ - $(srcdir)/cilk-common.c $(srcdir)/coverage.c $(srcdir)/rtl.h \ + $(srcdir)/wide-int.h $(srcdir)/alias.h \ + $(srcdir)/coverage.c $(srcdir)/rtl.h \ $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/tree-core.h \ $(srcdir)/libfuncs.h $(SYMTAB_H) \ $(srcdir)/real.h $(srcdir)/function.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \ @@ -2525,11 +2510,10 @@ $(srcdir)/lists.c $(srcdir)/optabs-libfuncs.c \ $(srcdir)/profile.c $(srcdir)/mcf.c \ $(srcdir)/reg-stack.c $(srcdir)/cfgrtl.c \ - $(srcdir)/sdbout.c $(srcdir)/stor-layout.c \ + $(srcdir)/stor-layout.c \ $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \ $(srcdir)/gimple.h \ $(srcdir)/gimple-ssa.h \ - $(srcdir)/tree-chkp.c \ $(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \ $(srcdir)/tree-cfg.c $(srcdir)/tree-ssa-loop-ivopts.c \ $(srcdir)/tree-dfa.c \ @@ -2640,7 +2624,7 @@ build/errors.o : errors.c $(BCONFIG_H) $(SYSTEM_H) errors.h build/gensupport.o: gensupport.c $(BCONFIG_H) $(SYSTEM_H) \ $(CORETYPES_H) $(GTM_H) $(RTL_BASE_H) $(OBSTACK_H) errors.h \ - $(HASHTAB_H) $(READ_MD_H) $(GENSUPPORT_H) + $(HASHTAB_H) $(READ_MD_H) $(GENSUPPORT_H) $(HASH_TABLE_H) build/ggc-none.o : ggc-none.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) \ $(GGC_H) build/min-insn-modes.o : min-insn-modes.c $(BCONFIG_H) $(SYSTEM_H) \ @@ -2655,9 +2639,10 @@ build/rtl.o: rtl.c $(BCONFIG_H) $(CORETYPES_H) $(GTM_H) $(SYSTEM_H) \ $(RTL_H) $(GGC_H) errors.h build/vec.o : vec.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) $(VEC_H) \ - $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) + $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) $(HASH_TABLE_H) build/hash-table.o : hash-table.c $(BCONFIG_H) $(SYSTEM_H) \ $(CORETYPES_H) $(HASH_TABLE_H) $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) +build/sort.o : sort.cc $(BCONFIG_H) $(SYSTEM_H) build/inchash.o : inchash.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) \ $(HASHTAB_H) inchash.h build/gencondmd.o : build/gencondmd.c $(BCONFIG_H) $(SYSTEM_H) \ @@ -2763,7 +2748,7 @@ $(CORETYPES_H) $(GTM_H) errors.h $(READ_MD_H) $(GENSUPPORT_H) build/genmatch.o : genmatch.c $(BCONFIG_H) $(SYSTEM_H) \ $(CORETYPES_H) errors.h $(HASH_TABLE_H) hash-map.h $(GGC_H) is-a.h \ - tree.def builtins.def internal-fn.def + tree.def builtins.def internal-fn.def case-cfn-macros.h build/gencfn-macros.o : gencfn-macros.c $(BCONFIG_H) $(SYSTEM_H) \ $(CORETYPES_H) errors.h $(HASH_TABLE_H) hash-set.h builtins.def \ internal-fn.def @@ -2793,7 +2778,8 @@ build/genautomata$(build_exeext) : BUILD_LIBS += -lm build/genrecog$(build_exeext) : build/hash-table.o build/inchash.o -build/gencfn-macros$(build_exeext) : build/hash-table.o build/ggc-none.o +build/gencfn-macros$(build_exeext) : build/hash-table.o build/vec.o \ + build/ggc-none.o build/sort.o # For stage1 and when cross-compiling use the build libcpp which is # built with NLS disabled. For stage2+ use the host library and @@ -2807,7 +2793,7 @@ endif build/genmatch$(build_exeext) : $(BUILD_CPPLIB) \ - $(BUILD_ERRORS) build/vec.o build/hash-table.o + $(BUILD_ERRORS) build/vec.o build/hash-table.o build/sort.o # These programs are not linked with the MD reader. build/gengtype$(build_exeext) : build/gengtype-lex.o build/gengtype-parse.o \ @@ -2824,11 +2810,15 @@ $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS) # Generated source files for gengtype. Prepend inclusion of -# bconfig.h because AIX requires _LARGE_FILES to be defined before +# config.h/bconfig.h because AIX requires _LARGE_FILES to be defined before # any system header is included. gengtype-lex.c : gengtype-lex.l -$(FLEX) $(FLEXFLAGS) -o$@ $< && { \ - echo '#include "bconfig.h"' > $@.tmp; \ + echo '#ifdef HOST_GENERATOR_FILE' > $@.tmp; \ + echo '#include "config.h"' >> $@.tmp; \ + echo '#else' >> $@.tmp; \ + echo '#include "bconfig.h"' >> $@.tmp; \ + echo '#endif' >> $@.tmp; \ cat $@ >> $@.tmp; \ mv $@.tmp $@; \ } @@ -3144,7 +3134,7 @@ gnu.texi gpl_v3.texi fdl.texi contrib.texi languages.texi \ sourcebuild.texi gty.texi libgcc.texi cfg.texi tree-ssa.texi \ loop.texi generic.texi gimple.texi plugins.texi optinfo.texi \ - match-and-simplify.texi + match-and-simplify.texi ux.texi poly-int.texi TEXI_GCCINSTALL_FILES = install.texi install-old.texi fdl.texi \ gcc-common.texi gcc-vers.texi @@ -3467,7 +3457,7 @@ $(C_COMMON_H) c-family/c-objc.h $(C_PRETTY_PRINT_H) \ tree-iterator.h $(PLUGIN_H) $(TREE_SSA_H) langhooks.h incpath.h debug.h \ $(EXCEPT_H) tree-ssa-sccvn.h real.h output.h $(IPA_UTILS_H) \ - $(C_PRAGMA_H) $(CPPLIB_H) $(FUNCTION_H) \ + ipa-param-manipulation.h $(C_PRAGMA_H) $(CPPLIB_H) $(FUNCTION_H) \ cppdefault.h flags.h $(MD5_H) params.def params.h params-enum.h \ prefix.h tree-inline.h $(GIMPLE_PRETTY_PRINT_H) realmpfr.h \ $(IPA_PROP_H) $(TARGET_H) $(RTL_H) $(TM_P_H) $(CFGLOOP_H) $(EMIT_RTL_H) \ @@ -3483,8 +3473,8 @@ tree-ssa-loop-niter.h tree-ssa-ter.h tree-ssa-threadedge.h \ tree-ssa-threadupdate.h inchash.h wide-int.h signop.h hash-map.h \ hash-set.h dominance.h cfg.h cfgrtl.h cfganal.h cfgbuild.h cfgcleanup.h \ - lcm.h cfgloopmanip.h builtins.def chkp-builtins.def pass-instances.def \ - params.list + lcm.h cfgloopmanip.h file-prefix-map.h builtins.def \ + pass-instances.def params.list # generate the 'build fragment' b-header-vars s-header-vars: Makefile @@ -4132,7 +4122,8 @@ incs="$$incs --include $$dir/TAGS.sub"; \ fi; \ done; \ - etags -o TAGS.sub c-family/*.h c-family/*.c *.h *.c *.cc \ + etags -o TAGS.sub c-family/*.h c-family/*.c c-family/*.cc \ + *.h *.c *.cc \ ../include/*.h ../libiberty/*.c \ ../libcpp/*.c ../libcpp/include/*.h \ --language=none --regex="/\(char\|unsigned int\|int\|bool\|void\|HOST_WIDE_INT\|enum [A-Za-z_0-9]+\) [*]?\([A-Za-z_0-9]+\)/\2/" common.opt \