comparison gcc/Makefile.in @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children d34655255c78 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 # Makefile for GNU Compiler Collection 1 # Makefile for GNU Compiler Collection
2 # Run 'configure' to generate Makefile from Makefile.in 2 # Run 'configure' to generate Makefile from Makefile.in
3 3
4 # Copyright (C) 1987-2017 Free Software Foundation, Inc. 4 # Copyright (C) 1987-2018 Free Software Foundation, Inc.
5 5
6 #This file is part of GCC. 6 #This file is part of GCC.
7 7
8 #GCC is free software; you can redistribute it and/or modify 8 #GCC is free software; you can redistribute it and/or modify
9 #it under the terms of the GNU General Public License as published by 9 #it under the terms of the GNU General Public License as published by
55 # ------------------------------- 55 # -------------------------------
56 56
57 build=@build@ 57 build=@build@
58 host=@host@ 58 host=@host@
59 host_noncanonical=@host_noncanonical@ 59 host_noncanonical=@host_noncanonical@
60 host_os=@host_os@
60 target=@target@ 61 target=@target@
61 target_noncanonical:=@target_noncanonical@ 62 target_noncanonical:=@target_noncanonical@
62 63
63 # Normally identical to target_noncanonical, except for compilers built 64 # Normally identical to target_noncanonical, except for compilers built
64 # as accelerator targets. 65 # as accelerator targets.
134 # List of language subdirectories. 135 # List of language subdirectories.
135 SUBDIRS =@subdirs@ build 136 SUBDIRS =@subdirs@ build
136 137
137 # Selection of languages to be made. 138 # Selection of languages to be made.
138 CONFIG_LANGUAGES = @all_selected_languages@ 139 CONFIG_LANGUAGES = @all_selected_languages@
139 LANGUAGES = c gcov$(exeext) gcov-dump$(exeext) gcov-tool$(exeext) \ 140 LANGUAGES = c $(CONFIG_LANGUAGES)
140 $(CONFIG_LANGUAGES) 141 ifeq (@enable_gcov@,yes)
142 LANGUAGES += gcov$(exeext) gcov-dump$(exeext) gcov-tool$(exeext)
143 endif
141 144
142 # Default values for variables overridden in Makefile fragments. 145 # Default values for variables overridden in Makefile fragments.
143 # CFLAGS is for the user to override to, e.g., do a cross build with -O2. 146 # CFLAGS is for the user to override to, e.g., do a cross build with -O2.
144 # TCFLAGS is used for compilations with the GCC just built. 147 # TCFLAGS is used for compilations with the GCC just built.
145 # T_CFLAGS is used for all compilations and is overridden by t-* files. 148 # T_CFLAGS is used for all compilations and is overridden by t-* files.
390 393
391 # Libs and linker options needed for plugin support 394 # Libs and linker options needed for plugin support
392 PLUGINLIBS = @pluginlibs@ 395 PLUGINLIBS = @pluginlibs@
393 396
394 enable_plugin = @enable_plugin@ 397 enable_plugin = @enable_plugin@
398
399 # On MinGW plugin installation involves installing import libraries.
400 ifeq ($(enable_plugin),yes)
401 plugin_implib := $(if $(strip $(filter mingw%,$(host_os))),yes,no)
402 endif
395 403
396 enable_host_shared = @enable_host_shared@ 404 enable_host_shared = @enable_host_shared@
397 405
398 enable_as_accelerator = @enable_as_accelerator@ 406 enable_as_accelerator = @enable_as_accelerator@
399 407
915 FIXED_VALUE_H = fixed-value.h 923 FIXED_VALUE_H = fixed-value.h
916 RTL_H = $(RTL_BASE_H) $(FLAGS_H) genrtl.h 924 RTL_H = $(RTL_BASE_H) $(FLAGS_H) genrtl.h
917 READ_MD_H = $(OBSTACK_H) $(HASHTAB_H) read-md.h 925 READ_MD_H = $(OBSTACK_H) $(HASHTAB_H) read-md.h
918 PARAMS_H = params.h params-enum.h params.def 926 PARAMS_H = params.h params-enum.h params.def
919 BUILTINS_DEF = builtins.def sync-builtins.def omp-builtins.def \ 927 BUILTINS_DEF = builtins.def sync-builtins.def omp-builtins.def \
920 gtm-builtins.def sanitizer.def cilkplus.def cilk-builtins.def \ 928 gtm-builtins.def sanitizer.def \
921 hsa-builtins.def 929 hsa-builtins.def
922 INTERNAL_FN_DEF = internal-fn.def 930 INTERNAL_FN_DEF = internal-fn.def
923 INTERNAL_FN_H = internal-fn.h $(INTERNAL_FN_DEF) 931 INTERNAL_FN_H = internal-fn.h $(INTERNAL_FN_DEF)
924 TREE_CORE_H = tree-core.h $(CORETYPES_H) all-tree.def tree.def \ 932 TREE_CORE_H = tree-core.h $(CORETYPES_H) all-tree.def tree.def \
925 c-family/c-common.def $(lang_tree_files) \ 933 c-family/c-common.def $(lang_tree_files) \
968 CPPLIB_H = $(srcdir)/../libcpp/include/line-map.h \ 976 CPPLIB_H = $(srcdir)/../libcpp/include/line-map.h \
969 $(srcdir)/../libcpp/include/cpplib.h 977 $(srcdir)/../libcpp/include/cpplib.h
970 INPUT_H = $(srcdir)/../libcpp/include/line-map.h input.h 978 INPUT_H = $(srcdir)/../libcpp/include/line-map.h input.h
971 OPTS_H = $(INPUT_H) $(VEC_H) opts.h $(OBSTACK_H) 979 OPTS_H = $(INPUT_H) $(VEC_H) opts.h $(OBSTACK_H)
972 SYMTAB_H = $(srcdir)/../libcpp/include/symtab.h $(OBSTACK_H) 980 SYMTAB_H = $(srcdir)/../libcpp/include/symtab.h $(OBSTACK_H)
973 CPP_ID_DATA_H = $(CPPLIB_H) $(srcdir)/../libcpp/include/cpp-id-data.h 981 CPP_INTERNAL_H = $(srcdir)/../libcpp/internal.h
974 CPP_INTERNAL_H = $(srcdir)/../libcpp/internal.h $(CPP_ID_DATA_H)
975 TREE_DUMP_H = tree-dump.h $(SPLAY_TREE_H) $(DUMPFILE_H) 982 TREE_DUMP_H = tree-dump.h $(SPLAY_TREE_H) $(DUMPFILE_H)
976 TREE_PASS_H = tree-pass.h $(TIMEVAR_H) $(DUMPFILE_H) 983 TREE_PASS_H = tree-pass.h $(TIMEVAR_H) $(DUMPFILE_H)
977 TREE_SSA_H = tree-ssa.h tree-ssa-operands.h \ 984 TREE_SSA_H = tree-ssa.h tree-ssa-operands.h \
978 $(BITMAP_H) sbitmap.h $(BASIC_BLOCK_H) $(GIMPLE_H) \ 985 $(BITMAP_H) sbitmap.h $(BASIC_BLOCK_H) $(GIMPLE_H) \
979 $(HASHTAB_H) $(CGRAPH_H) $(IPA_REFERENCE_H) \ 986 $(HASHTAB_H) $(CGRAPH_H) $(IPA_REFERENCE_H) \
1068 # even if we are cross-building GCC. 1075 # even if we are cross-building GCC.
1069 BUILD_LIBS = $(BUILD_LIBIBERTY) 1076 BUILD_LIBS = $(BUILD_LIBIBERTY)
1070 1077
1071 BUILD_RTL = build/rtl.o build/read-rtl.o build/ggc-none.o \ 1078 BUILD_RTL = build/rtl.o build/read-rtl.o build/ggc-none.o \
1072 build/vec.o build/min-insn-modes.o build/gensupport.o \ 1079 build/vec.o build/min-insn-modes.o build/gensupport.o \
1073 build/print-rtl.o build/hash-table.o 1080 build/print-rtl.o build/hash-table.o build/sort.o
1074 BUILD_MD = build/read-md.o 1081 BUILD_MD = build/read-md.o
1075 BUILD_ERRORS = build/errors.o 1082 BUILD_ERRORS = build/errors.o
1076 1083
1077 # Specify the directories to be searched for header files. 1084 # Specify the directories to be searched for header files.
1078 # Both . and srcdir are used, in that order, 1085 # Both . and srcdir are used, in that order,
1107 # 1114 #
1108 # Support for additional languages (other than C). 1115 # Support for additional languages (other than C).
1109 # C can be supported this way too (leave for later). 1116 # C can be supported this way too (leave for later).
1110 1117
1111 LANG_MAKEFRAGS = @all_lang_makefrags@ 1118 LANG_MAKEFRAGS = @all_lang_makefrags@
1119
1120 # Used by gcc/jit/Make-lang.in
1121 LD_VERSION_SCRIPT_OPTION = @ld_version_script_option@
1122 LD_SONAME_OPTION = @ld_soname_option@
1112 1123
1113 # Flags to pass to recursive makes. 1124 # Flags to pass to recursive makes.
1114 # CC is set by configure. 1125 # CC is set by configure.
1115 # ??? The choices here will need some experimenting with. 1126 # ??? The choices here will need some experimenting with.
1116 1127
1142 "INSTALL_DATA=$(INSTALL_DATA)" \ 1153 "INSTALL_DATA=$(INSTALL_DATA)" \
1143 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ 1154 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
1144 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ 1155 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
1145 "LN=$(LN)" \ 1156 "LN=$(LN)" \
1146 "LN_S=$(LN_S)" \ 1157 "LN_S=$(LN_S)" \
1158 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
1147 "MAKEINFO=$(MAKEINFO)" \ 1159 "MAKEINFO=$(MAKEINFO)" \
1148 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \ 1160 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
1149 "MAKEOVERRIDES=" \ 1161 "MAKEOVERRIDES=" \
1150 "SHELL=$(SHELL)" \ 1162 "SHELL=$(SHELL)" \
1151 "exeext=$(exeext)" \ 1163 "exeext=$(exeext)" \
1159 "gcc_tooldir=$(gcc_tooldir)" \ 1171 "gcc_tooldir=$(gcc_tooldir)" \
1160 "bindir=$(bindir)" \ 1172 "bindir=$(bindir)" \
1161 "libexecsubdir=$(libexecsubdir)" \ 1173 "libexecsubdir=$(libexecsubdir)" \
1162 "datarootdir=$(datarootdir)" \ 1174 "datarootdir=$(datarootdir)" \
1163 "datadir=$(datadir)" \ 1175 "datadir=$(datadir)" \
1176 "libsubdir=$(libsubdir)" \
1164 "localedir=$(localedir)" 1177 "localedir=$(localedir)"
1165 # 1178 #
1166 # Lists of files for various purposes. 1179 # Lists of files for various purposes.
1167 1180
1168 # All option source files 1181 # All option source files
1186 C_COMMON_OBJS = c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o \ 1199 C_COMMON_OBJS = c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o \
1187 c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o \ 1200 c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o \
1188 c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o \ 1201 c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o \
1189 c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o \ 1202 c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o \
1190 c-family/c-semantics.o c-family/c-ada-spec.o \ 1203 c-family/c-semantics.o c-family/c-ada-spec.o \
1191 c-family/c-cilkplus.o \ 1204 c-family/c-ubsan.o c-family/known-headers.o \
1192 c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o \ 1205 c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o
1193 c-family/c-attribs.o c-family/c-warn.o
1194 1206
1195 # Language-independent object files. 1207 # Language-independent object files.
1196 # We put the *-match.o and insn-*.o files first so that a parallel make 1208 # We put the *-match.o and insn-*.o files first so that a parallel make
1197 # will build them sooner, because they are large and otherwise tend to be 1209 # will build them sooner, because they are large and otherwise tend to be
1198 # the last objects to finish building. 1210 # the last objects to finish building.
1237 symtab.o \ 1249 symtab.o \
1238 cgraph.o \ 1250 cgraph.o \
1239 cgraphbuild.o \ 1251 cgraphbuild.o \
1240 cgraphunit.o \ 1252 cgraphunit.o \
1241 cgraphclones.o \ 1253 cgraphclones.o \
1242 cilk-common.o \
1243 combine.o \ 1254 combine.o \
1244 combine-stack-adj.o \ 1255 combine-stack-adj.o \
1245 compare-elim.o \ 1256 compare-elim.o \
1246 context.o \ 1257 context.o \
1247 convert.o \ 1258 convert.o \
1270 dse.o \ 1281 dse.o \
1271 dumpfile.o \ 1282 dumpfile.o \
1272 dwarf2asm.o \ 1283 dwarf2asm.o \
1273 dwarf2cfi.o \ 1284 dwarf2cfi.o \
1274 dwarf2out.o \ 1285 dwarf2out.o \
1286 early-remat.o \
1275 emit-rtl.o \ 1287 emit-rtl.o \
1276 et-forest.o \ 1288 et-forest.o \
1277 except.o \ 1289 except.o \
1278 explow.o \ 1290 explow.o \
1279 expmed.o \ 1291 expmed.o \
1280 expr.o \ 1292 expr.o \
1281 fibonacci_heap.o \ 1293 fibonacci_heap.o \
1294 file-prefix-map.o \
1282 final.o \ 1295 final.o \
1283 fixed-value.o \ 1296 fixed-value.o \
1284 fold-const.o \ 1297 fold-const.o \
1285 fold-const-call.o \ 1298 fold-const-call.o \
1286 function.o \ 1299 function.o \
1295 gimple-builder.o \ 1308 gimple-builder.o \
1296 gimple-expr.o \ 1309 gimple-expr.o \
1297 gimple-iterator.o \ 1310 gimple-iterator.o \
1298 gimple-fold.o \ 1311 gimple-fold.o \
1299 gimple-laddress.o \ 1312 gimple-laddress.o \
1313 gimple-loop-interchange.o \
1314 gimple-loop-jam.o \
1300 gimple-low.o \ 1315 gimple-low.o \
1301 gimple-pretty-print.o \ 1316 gimple-pretty-print.o \
1302 gimple-ssa-backprop.o \ 1317 gimple-ssa-backprop.o \
1318 gimple-ssa-evrp.o \
1319 gimple-ssa-evrp-analyze.o \
1303 gimple-ssa-isolate-paths.o \ 1320 gimple-ssa-isolate-paths.o \
1304 gimple-ssa-nonnull-compare.o \ 1321 gimple-ssa-nonnull-compare.o \
1305 gimple-ssa-split-paths.o \ 1322 gimple-ssa-split-paths.o \
1306 gimple-ssa-store-merging.o \ 1323 gimple-ssa-store-merging.o \
1307 gimple-ssa-strength-reduction.o \ 1324 gimple-ssa-strength-reduction.o \
1308 gimple-ssa-sprintf.o \ 1325 gimple-ssa-sprintf.o \
1309 gimple-ssa-warn-alloca.o \ 1326 gimple-ssa-warn-alloca.o \
1327 gimple-ssa-warn-restrict.o \
1310 gimple-streamer-in.o \ 1328 gimple-streamer-in.o \
1311 gimple-streamer-out.o \ 1329 gimple-streamer-out.o \
1312 gimple-walk.o \ 1330 gimple-walk.o \
1313 gimplify.o \ 1331 gimplify.o \
1314 gimplify-me.o \ 1332 gimplify-me.o \
1337 ree.o \ 1355 ree.o \
1338 inchash.o \ 1356 inchash.o \
1339 incpath.o \ 1357 incpath.o \
1340 init-regs.o \ 1358 init-regs.o \
1341 internal-fn.o \ 1359 internal-fn.o \
1342 ipa-chkp.o \
1343 ipa-cp.o \ 1360 ipa-cp.o \
1344 ipa-devirt.o \ 1361 ipa-devirt.o \
1345 ipa-fnsummary.o \ 1362 ipa-fnsummary.o \
1346 ipa-polymorphic-call.o \ 1363 ipa-polymorphic-call.o \
1347 ipa-split.o \ 1364 ipa-split.o \
1351 ipa-inline-analysis.o \ 1368 ipa-inline-analysis.o \
1352 ipa-inline-transform.o \ 1369 ipa-inline-transform.o \
1353 ipa-predicate.o \ 1370 ipa-predicate.o \
1354 ipa-profile.o \ 1371 ipa-profile.o \
1355 ipa-prop.o \ 1372 ipa-prop.o \
1373 ipa-param-manipulation.o \
1356 ipa-pure-const.o \ 1374 ipa-pure-const.o \
1357 ipa-icf.o \ 1375 ipa-icf.o \
1358 ipa-icf-gimple.o \ 1376 ipa-icf-gimple.o \
1359 ipa-reference.o \ 1377 ipa-reference.o \
1360 ipa-hsa.o \ 1378 ipa-hsa.o \
1366 ira-costs.o \ 1384 ira-costs.o \
1367 ira-conflicts.o \ 1385 ira-conflicts.o \
1368 ira-color.o \ 1386 ira-color.o \
1369 ira-emit.o \ 1387 ira-emit.o \
1370 ira-lives.o \ 1388 ira-lives.o \
1389 json.o \
1371 jump.o \ 1390 jump.o \
1372 langhooks.o \ 1391 langhooks.o \
1373 lcm.o \ 1392 lcm.o \
1374 lists.o \ 1393 lists.o \
1375 loop-doloop.o \ 1394 loop-doloop.o \
1402 omp-expand.o \ 1421 omp-expand.o \
1403 omp-general.o \ 1422 omp-general.o \
1404 omp-grid.o \ 1423 omp-grid.o \
1405 omp-low.o \ 1424 omp-low.o \
1406 omp-simd-clone.o \ 1425 omp-simd-clone.o \
1426 opt-problem.o \
1407 optabs.o \ 1427 optabs.o \
1408 optabs-libfuncs.o \ 1428 optabs-libfuncs.o \
1409 optabs-query.o \ 1429 optabs-query.o \
1410 optabs-tree.o \ 1430 optabs-tree.o \
1431 optinfo.o \
1432 optinfo-emit-json.o \
1411 options-save.o \ 1433 options-save.o \
1412 opts-global.o \ 1434 opts-global.o \
1413 passes.o \ 1435 passes.o \
1414 plugin.o \ 1436 plugin.o \
1415 postreload-gcse.o \ 1437 postreload-gcse.o \
1433 regstat.o \ 1455 regstat.o \
1434 reload.o \ 1456 reload.o \
1435 reload1.o \ 1457 reload1.o \
1436 reorg.o \ 1458 reorg.o \
1437 resource.o \ 1459 resource.o \
1438 rtl-chkp.o \
1439 rtl-error.o \ 1460 rtl-error.o \
1440 rtl-tests.o \ 1461 rtl-tests.o \
1441 rtl.o \ 1462 rtl.o \
1442 rtlhash.o \ 1463 rtlhash.o \
1443 rtlanal.o \ 1464 rtlanal.o \
1444 rtlhooks.o \ 1465 rtlhooks.o \
1466 rtx-vector-builder.o \
1445 run-rtl-passes.o \ 1467 run-rtl-passes.o \
1446 sched-deps.o \ 1468 sched-deps.o \
1447 sched-ebb.o \ 1469 sched-ebb.o \
1448 sched-rgn.o \ 1470 sched-rgn.o \
1449 sdbout.o \
1450 sel-sched-ir.o \ 1471 sel-sched-ir.o \
1451 sel-sched-dump.o \ 1472 sel-sched-dump.o \
1452 sel-sched.o \ 1473 sel-sched.o \
1453 selftest-rtl.o \ 1474 selftest-rtl.o \
1454 selftest-run-tests.o \ 1475 selftest-run-tests.o \
1499 tree-nrv.o \ 1520 tree-nrv.o \
1500 tree-object-size.o \ 1521 tree-object-size.o \
1501 tree-outof-ssa.o \ 1522 tree-outof-ssa.o \
1502 tree-parloops.o \ 1523 tree-parloops.o \
1503 tree-phinodes.o \ 1524 tree-phinodes.o \
1504 tree-chkp.o \
1505 tree-chkp-opt.o \
1506 tree-predcom.o \ 1525 tree-predcom.o \
1507 tree-pretty-print.o \ 1526 tree-pretty-print.o \
1508 tree-profile.o \ 1527 tree-profile.o \
1509 tree-scalar-evolution.o \ 1528 tree-scalar-evolution.o \
1510 tree-sra.o \ 1529 tree-sra.o \
1563 tree-vect-stmts.o \ 1582 tree-vect-stmts.o \
1564 tree-vect-loop.o \ 1583 tree-vect-loop.o \
1565 tree-vect-loop-manip.o \ 1584 tree-vect-loop-manip.o \
1566 tree-vect-slp.o \ 1585 tree-vect-slp.o \
1567 tree-vectorizer.o \ 1586 tree-vectorizer.o \
1587 tree-vector-builder.o \
1568 tree-vrp.o \ 1588 tree-vrp.o \
1569 tree.o \ 1589 tree.o \
1570 typed-splay-tree.o \ 1590 typed-splay-tree.o \
1571 unique-ptr-tests.o \ 1591 unique-ptr-tests.o \
1572 valtrack.o \ 1592 valtrack.o \
1573 value-prof.o \ 1593 value-prof.o \
1574 var-tracking.o \ 1594 var-tracking.o \
1575 varasm.o \ 1595 varasm.o \
1576 varpool.o \ 1596 varpool.o \
1597 vec-perm-indices.o \
1577 vmsdbgout.o \ 1598 vmsdbgout.o \
1599 vr-values.o \
1578 vtable-verify.o \ 1600 vtable-verify.o \
1579 web.o \ 1601 web.o \
1580 wide-int.o \ 1602 wide-int.o \
1581 wide-int-print.o \ 1603 wide-int-print.o \
1604 wide-int-range.o \
1582 xcoffout.o \ 1605 xcoffout.o \
1583 $(out_object_file) \ 1606 $(out_object_file) \
1584 $(EXTRA_OBJS) \ 1607 $(EXTRA_OBJS) \
1585 $(host_hook_obj) 1608 $(host_hook_obj)
1586 1609
1589 OBJS-libcommon = diagnostic.o diagnostic-color.o diagnostic-show-locus.o \ 1612 OBJS-libcommon = diagnostic.o diagnostic-color.o diagnostic-show-locus.o \
1590 edit-context.o \ 1613 edit-context.o \
1591 pretty-print.o intl.o \ 1614 pretty-print.o intl.o \
1592 sbitmap.o \ 1615 sbitmap.o \
1593 vec.o input.o version.o hash-table.o ggc-none.o memory-block.o \ 1616 vec.o input.o version.o hash-table.o ggc-none.o memory-block.o \
1594 selftest.o 1617 selftest.o selftest-diagnostic.o sort.o
1595 1618
1596 # Objects in libcommon-target.a, used by drivers and by the core 1619 # Objects in libcommon-target.a, used by drivers and by the core
1597 # compiler and containing target-dependent code. 1620 # compiler and containing target-dependent code.
1598 OBJS-libcommon-target = $(common_out_object_file) prefix.o params.o \ 1621 OBJS-libcommon-target = $(common_out_object_file) prefix.o params.o \
1599 opts.o opts-common.o options.o vec.o hooks.o common/common-targhooks.o \ 1622 opts.o opts-common.o options.o vec.o hooks.o common/common-targhooks.o \
1600 hash-table.o file-find.o spellcheck.o selftest.o 1623 hash-table.o file-find.o spellcheck.o selftest.o opt-suggestions.o
1601 1624
1602 # This lists all host objects for the front ends. 1625 # This lists all host objects for the front ends.
1603 ALL_HOST_FRONTEND_OBJS = $(foreach v,$(CONFIG_LANGUAGES),$($(v)_OBJS)) 1626 ALL_HOST_FRONTEND_OBJS = $(foreach v,$(CONFIG_LANGUAGES),$($(v)_OBJS))
1604 1627
1605 ALL_HOST_BACKEND_OBJS = $(GCC_OBJS) $(OBJS) $(OBJS-libcommon) \ 1628 ALL_HOST_BACKEND_OBJS = $(GCC_OBJS) $(OBJS) $(OBJS-libcommon) \
1902 # Specify -nostdinc to work around missing WIND_BASE environment variable 1925 # Specify -nostdinc to work around missing WIND_BASE environment variable
1903 # required for *-wrs-vxworks-* targets. 1926 # required for *-wrs-vxworks-* targets.
1904 # Specify -o /dev/null so the output of -S is discarded. More importantly 1927 # Specify -o /dev/null so the output of -S is discarded. More importantly
1905 # It does not try to create a file with the name "null.s" on POSIX and 1928 # It does not try to create a file with the name "null.s" on POSIX and
1906 # "nul.s" on Windows. Because on Windows "nul" is a reserved file name. 1929 # "nul.s" on Windows. Because on Windows "nul" is a reserved file name.
1930 # Beware that /dev/null is not available to mingw tools, so directly use
1931 # "nul" instead of "/dev/null" if we're building on a mingw machine.
1907 # Specify the path to gcc/testsuite/selftests within the srcdir 1932 # Specify the path to gcc/testsuite/selftests within the srcdir
1908 # as an argument to -fself-test. 1933 # as an argument to -fself-test.
1909 SELFTEST_FLAGS = -nostdinc /dev/null -S -o /dev/null \ 1934 DEVNULL=$(if $(findstring mingw,$(build)),nul,/dev/null)
1935 SELFTEST_FLAGS = -nostdinc $(DEVNULL) -S -o $(DEVNULL) \
1910 -fself-test=$(srcdir)/testsuite/selftests 1936 -fself-test=$(srcdir)/testsuite/selftests
1911 1937
1912 C_SELFTEST_FLAGS = -xc $(SELFTEST_FLAGS)
1913 CPP_SELFTEST_FLAGS = -xc++ $(SELFTEST_FLAGS)
1914
1915 SELFTEST_DEPS = $(GCC_PASSES) stmp-int-hdrs $(srcdir)/testsuite/selftests 1938 SELFTEST_DEPS = $(GCC_PASSES) stmp-int-hdrs $(srcdir)/testsuite/selftests
1916
1917 C_SELFTEST_DEPS = cc1$(exeext) $(SELFTEST_DEPS)
1918 CPP_SELFTEST_DEPS = cc1plus$(exeext) $(SELFTEST_DEPS)
1919 1939
1920 # Run the selftests during the build once we have a driver and the frontend, 1940 # Run the selftests during the build once we have a driver and the frontend,
1921 # so that self-test failures are caught as early as possible. 1941 # so that self-test failures are caught as early as possible.
1922 # Use "s-selftest-FE" to ensure that we only run the selftests if the 1942 # Use "s-selftest-FE" to ensure that we only run the selftests if the
1923 # driver, frontend, or selftest data change. 1943 # driver, frontend, or selftest data change.
1924 .PHONY: selftest 1944 .PHONY: selftest
1925 1945
1926 # By default, only run the selftests within the C frontend 1946 # Potentially run all selftest-<LANG>. The various <LANG>/Make-lang.in can
1927 selftest: s-selftest-c 1947 # require the selftests to be run by defining their selftest-<LANG> as
1928 1948 # s-selftest-<LANG>. Otherwise, they should define it as empty.
1929 # C selftests 1949
1930 s-selftest-c: $(C_SELFTEST_DEPS) 1950 SELFTEST_TARGETS = @selftest_languages@
1931 $(GCC_FOR_TARGET) $(C_SELFTEST_FLAGS) 1951 selftest: $(SELFTEST_TARGETS)
1932 $(STAMP) $@
1933
1934 # Convenience methods for running C selftests under gdb:
1935 .PHONY: selftest-c-gdb
1936 selftest-c-gdb: $(C_SELFTEST_DEPS)
1937 $(GCC_FOR_TARGET) $(C_SELFTEST_FLAGS) \
1938 -wrapper gdb,--args
1939
1940 .PHONY: selftest-gdb
1941 selftest-gdb: selftest-c-gdb
1942
1943 # Convenience methods for running C selftests under valgrind:
1944 .PHONY: selftest-c-valgrind
1945 selftest-c-valgrind: $(C_SELFTEST_DEPS)
1946 $(GCC_FOR_TARGET) $(C_SELFTEST_FLAGS) \
1947 -wrapper valgrind,--leak-check=full
1948
1949 .PHONY: selftest-valgrind
1950 selftest-valgrind: selftest-c-valgrind
1951
1952 # C++ selftests
1953 s-selftest-c++: $(CPP_SELFTEST_DEPS)
1954 $(GCC_FOR_TARGET) $(CPP_SELFTEST_FLAGS)
1955 $(STAMP) $@
1956
1957 # Convenience method for running C++ selftests under gdb:
1958 .PHONY: selftest-c++-gdb
1959 selftest-c++-gdb: $(CPP_SELFTEST_DEPS)
1960 $(GCC_FOR_TARGET) $(CPP_SELFTEST_FLAGS) \
1961 -wrapper gdb,--args
1962
1963 # Convenience method for running C++ selftests under valgrind:
1964 .PHONY: selftest-c++-valgrind
1965 selftest-c++-valgrind: $(CPP_SELFTEST_DEPS)
1966 $(GCC_FOR_TARGET) $(CPP_SELFTEST_FLAGS) \
1967 -wrapper valgrind,--leak-check=full
1968 1952
1969 # Recompile all the language-independent object files. 1953 # Recompile all the language-independent object files.
1970 # This is used only if the user explicitly asks for it. 1954 # This is used only if the user explicitly asks for it.
1971 compilations: $(BACKEND) 1955 compilations: $(BACKEND)
1972 1956
2130 CFLAGS-collect2.o += -DTARGET_MACHINE=\"$(target_noncanonical)\" \ 2114 CFLAGS-collect2.o += -DTARGET_MACHINE=\"$(target_noncanonical)\" \
2131 @TARGET_SYSTEM_ROOT_DEFINE@ 2115 @TARGET_SYSTEM_ROOT_DEFINE@
2132 2116
2133 LTO_WRAPPER_OBJS = lto-wrapper.o collect-utils.o ggc-none.o 2117 LTO_WRAPPER_OBJS = lto-wrapper.o collect-utils.o ggc-none.o
2134 lto-wrapper$(exeext): $(LTO_WRAPPER_OBJS) libcommon-target.a $(LIBDEPS) 2118 lto-wrapper$(exeext): $(LTO_WRAPPER_OBJS) libcommon-target.a $(LIBDEPS)
2135 +$(LINKER) $(ALL_COMPILERFLAGS) $(LDFLAGS) -o T$@ \ 2119 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o T$@ \
2136 $(LTO_WRAPPER_OBJS) libcommon-target.a $(LIBS) 2120 $(LTO_WRAPPER_OBJS) libcommon-target.a $(LIBS)
2137 mv -f T$@ $@ 2121 mv -f T$@ $@
2138 2122
2139 # Files used by all variants of C or by the stand-alone pre-processor. 2123 # Files used by all variants of C or by the stand-alone pre-processor.
2140 2124
2226 echo "#define BUILDING_GCC_PATCHLEVEL `echo $(BASEVER_c) | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$$/\1/'`" >> bversion.h 2210 echo "#define BUILDING_GCC_PATCHLEVEL `echo $(BASEVER_c) | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$$/\1/'`" >> bversion.h
2227 echo "#define BUILDING_GCC_VERSION (BUILDING_GCC_MAJOR * 1000 + BUILDING_GCC_MINOR)" >> bversion.h 2211 echo "#define BUILDING_GCC_VERSION (BUILDING_GCC_MAJOR * 1000 + BUILDING_GCC_MINOR)" >> bversion.h
2228 $(STAMP) s-bversion 2212 $(STAMP) s-bversion
2229 2213
2230 CFLAGS-toplev.o += -DTARGET_NAME=\"$(target_noncanonical)\" 2214 CFLAGS-toplev.o += -DTARGET_NAME=\"$(target_noncanonical)\"
2215 CFLAGS-optinfo-emit-json.o += -DTARGET_NAME=\"$(target_noncanonical)\"
2231 2216
2232 pass-instances.def: $(srcdir)/passes.def $(PASSES_EXTRA) \ 2217 pass-instances.def: $(srcdir)/passes.def $(PASSES_EXTRA) \
2233 $(srcdir)/gen-pass-instances.awk 2218 $(srcdir)/gen-pass-instances.awk
2234 $(AWK) -f $(srcdir)/gen-pass-instances.awk \ 2219 $(AWK) -f $(srcdir)/gen-pass-instances.awk \
2235 $(srcdir)/passes.def $(PASSES_EXTRA) > pass-instances.def 2220 $(srcdir)/passes.def $(PASSES_EXTRA) > pass-instances.def
2475 echo You should edit $(srcdir)/doc/tm.texi.in rather than $(srcdir)/doc/tm.texi . >&2 ; \ 2460 echo You should edit $(srcdir)/doc/tm.texi.in rather than $(srcdir)/doc/tm.texi . >&2 ; \
2476 false; \ 2461 false; \
2477 else \ 2462 else \
2478 echo >&2 ; \ 2463 echo >&2 ; \
2479 echo Verify that you have permission to grant a GFDL license for all >&2 ; \ 2464 echo Verify that you have permission to grant a GFDL license for all >&2 ; \
2480 echo new text in tm.texi, then copy it to $(srcdir)/doc/tm.texi. >&2 ; \ 2465 echo new text in $(objdir)/tm.texi, then copy it to $(srcdir)/doc/tm.texi. >&2 ; \
2481 false; \ 2466 false; \
2482 fi 2467 fi
2483 2468
2484 gimple-match.c: s-match gimple-match-head.c ; @true 2469 gimple-match.c: s-match gimple-match-head.c ; @true
2485 generic-match.c: s-match generic-match-head.c ; @true 2470 generic-match.c: s-match generic-match-head.c ; @true
2493 gimple-match.c 2478 gimple-match.c
2494 $(SHELL) $(srcdir)/../move-if-change tmp-generic-match.c \ 2479 $(SHELL) $(srcdir)/../move-if-change tmp-generic-match.c \
2495 generic-match.c 2480 generic-match.c
2496 $(STAMP) s-match 2481 $(STAMP) s-match
2497 2482
2498 GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \ 2483 GTFILES = $(CPPLIB_H) $(srcdir)/input.h $(srcdir)/coretypes.h \
2499 $(host_xm_file_list) \ 2484 $(host_xm_file_list) \
2500 $(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \ 2485 $(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \
2501 $(srcdir)/wide-int.h $(srcdir)/alias.h $(srcdir)/cilk.h \ 2486 $(srcdir)/wide-int.h $(srcdir)/alias.h \
2502 $(srcdir)/cilk-common.c $(srcdir)/coverage.c $(srcdir)/rtl.h \ 2487 $(srcdir)/coverage.c $(srcdir)/rtl.h \
2503 $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/tree-core.h \ 2488 $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/tree-core.h \
2504 $(srcdir)/libfuncs.h $(SYMTAB_H) \ 2489 $(srcdir)/libfuncs.h $(SYMTAB_H) \
2505 $(srcdir)/real.h $(srcdir)/function.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \ 2490 $(srcdir)/real.h $(srcdir)/function.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \
2506 $(srcdir)/fixed-value.h \ 2491 $(srcdir)/fixed-value.h \
2507 $(srcdir)/output.h $(srcdir)/cfgloop.h $(srcdir)/cfg.h $(srcdir)/profile-count.h \ 2492 $(srcdir)/output.h $(srcdir)/cfgloop.h $(srcdir)/cfg.h $(srcdir)/profile-count.h \
2523 $(srcdir)/ggc-tests.c \ 2508 $(srcdir)/ggc-tests.c \
2524 $(srcdir)/gcse.c $(srcdir)/godump.c \ 2509 $(srcdir)/gcse.c $(srcdir)/godump.c \
2525 $(srcdir)/lists.c $(srcdir)/optabs-libfuncs.c \ 2510 $(srcdir)/lists.c $(srcdir)/optabs-libfuncs.c \
2526 $(srcdir)/profile.c $(srcdir)/mcf.c \ 2511 $(srcdir)/profile.c $(srcdir)/mcf.c \
2527 $(srcdir)/reg-stack.c $(srcdir)/cfgrtl.c \ 2512 $(srcdir)/reg-stack.c $(srcdir)/cfgrtl.c \
2528 $(srcdir)/sdbout.c $(srcdir)/stor-layout.c \ 2513 $(srcdir)/stor-layout.c \
2529 $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \ 2514 $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \
2530 $(srcdir)/gimple.h \ 2515 $(srcdir)/gimple.h \
2531 $(srcdir)/gimple-ssa.h \ 2516 $(srcdir)/gimple-ssa.h \
2532 $(srcdir)/tree-chkp.c \
2533 $(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \ 2517 $(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \
2534 $(srcdir)/tree-cfg.c $(srcdir)/tree-ssa-loop-ivopts.c \ 2518 $(srcdir)/tree-cfg.c $(srcdir)/tree-ssa-loop-ivopts.c \
2535 $(srcdir)/tree-dfa.c \ 2519 $(srcdir)/tree-dfa.c \
2536 $(srcdir)/tree-iterator.c $(srcdir)/gimple-expr.c \ 2520 $(srcdir)/tree-iterator.c $(srcdir)/gimple-expr.c \
2537 $(srcdir)/tree-chrec.h \ 2521 $(srcdir)/tree-chrec.h \
2638 # Header dependencies for the programs that generate source code. 2622 # Header dependencies for the programs that generate source code.
2639 # These are library modules... 2623 # These are library modules...
2640 build/errors.o : errors.c $(BCONFIG_H) $(SYSTEM_H) errors.h 2624 build/errors.o : errors.c $(BCONFIG_H) $(SYSTEM_H) errors.h
2641 build/gensupport.o: gensupport.c $(BCONFIG_H) $(SYSTEM_H) \ 2625 build/gensupport.o: gensupport.c $(BCONFIG_H) $(SYSTEM_H) \
2642 $(CORETYPES_H) $(GTM_H) $(RTL_BASE_H) $(OBSTACK_H) errors.h \ 2626 $(CORETYPES_H) $(GTM_H) $(RTL_BASE_H) $(OBSTACK_H) errors.h \
2643 $(HASHTAB_H) $(READ_MD_H) $(GENSUPPORT_H) 2627 $(HASHTAB_H) $(READ_MD_H) $(GENSUPPORT_H) $(HASH_TABLE_H)
2644 build/ggc-none.o : ggc-none.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) \ 2628 build/ggc-none.o : ggc-none.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) \
2645 $(GGC_H) 2629 $(GGC_H)
2646 build/min-insn-modes.o : min-insn-modes.c $(BCONFIG_H) $(SYSTEM_H) \ 2630 build/min-insn-modes.o : min-insn-modes.c $(BCONFIG_H) $(SYSTEM_H) \
2647 $(CORETYPES_H) 2631 $(CORETYPES_H)
2648 build/print-rtl.o: print-rtl.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) \ 2632 build/print-rtl.o: print-rtl.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) \
2653 $(GTM_H) $(RTL_BASE_H) $(OBSTACK_H) $(HASHTAB_H) $(READ_MD_H) \ 2637 $(GTM_H) $(RTL_BASE_H) $(OBSTACK_H) $(HASHTAB_H) $(READ_MD_H) \
2654 $(GENSUPPORT_H) 2638 $(GENSUPPORT_H)
2655 build/rtl.o: rtl.c $(BCONFIG_H) $(CORETYPES_H) $(GTM_H) $(SYSTEM_H) \ 2639 build/rtl.o: rtl.c $(BCONFIG_H) $(CORETYPES_H) $(GTM_H) $(SYSTEM_H) \
2656 $(RTL_H) $(GGC_H) errors.h 2640 $(RTL_H) $(GGC_H) errors.h
2657 build/vec.o : vec.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) $(VEC_H) \ 2641 build/vec.o : vec.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) $(VEC_H) \
2658 $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) 2642 $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) $(HASH_TABLE_H)
2659 build/hash-table.o : hash-table.c $(BCONFIG_H) $(SYSTEM_H) \ 2643 build/hash-table.o : hash-table.c $(BCONFIG_H) $(SYSTEM_H) \
2660 $(CORETYPES_H) $(HASH_TABLE_H) $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H) 2644 $(CORETYPES_H) $(HASH_TABLE_H) $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H)
2645 build/sort.o : sort.cc $(BCONFIG_H) $(SYSTEM_H)
2661 build/inchash.o : inchash.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) \ 2646 build/inchash.o : inchash.c $(BCONFIG_H) $(SYSTEM_H) $(CORETYPES_H) \
2662 $(HASHTAB_H) inchash.h 2647 $(HASHTAB_H) inchash.h
2663 build/gencondmd.o : build/gencondmd.c $(BCONFIG_H) $(SYSTEM_H) \ 2648 build/gencondmd.o : build/gencondmd.c $(BCONFIG_H) $(SYSTEM_H) \
2664 $(CORETYPES_H) $(GTM_H) insn-constants.h \ 2649 $(CORETYPES_H) $(GTM_H) insn-constants.h \
2665 $(filter-out insn-flags.h, $(RTL_H) $(TM_P_H) $(FUNCTION_H) $(REGS_H) \ 2650 $(filter-out insn-flags.h, $(RTL_H) $(TM_P_H) $(FUNCTION_H) $(REGS_H) \
2761 $(COMMON_TARGET_DEF) $(BCONFIG_H) $(SYSTEM_H) errors.h 2746 $(COMMON_TARGET_DEF) $(BCONFIG_H) $(SYSTEM_H) errors.h
2762 build/genmddump.o : genmddump.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \ 2747 build/genmddump.o : genmddump.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
2763 $(CORETYPES_H) $(GTM_H) errors.h $(READ_MD_H) $(GENSUPPORT_H) 2748 $(CORETYPES_H) $(GTM_H) errors.h $(READ_MD_H) $(GENSUPPORT_H)
2764 build/genmatch.o : genmatch.c $(BCONFIG_H) $(SYSTEM_H) \ 2749 build/genmatch.o : genmatch.c $(BCONFIG_H) $(SYSTEM_H) \
2765 $(CORETYPES_H) errors.h $(HASH_TABLE_H) hash-map.h $(GGC_H) is-a.h \ 2750 $(CORETYPES_H) errors.h $(HASH_TABLE_H) hash-map.h $(GGC_H) is-a.h \
2766 tree.def builtins.def internal-fn.def 2751 tree.def builtins.def internal-fn.def case-cfn-macros.h
2767 build/gencfn-macros.o : gencfn-macros.c $(BCONFIG_H) $(SYSTEM_H) \ 2752 build/gencfn-macros.o : gencfn-macros.c $(BCONFIG_H) $(SYSTEM_H) \
2768 $(CORETYPES_H) errors.h $(HASH_TABLE_H) hash-set.h builtins.def \ 2753 $(CORETYPES_H) errors.h $(HASH_TABLE_H) hash-set.h builtins.def \
2769 internal-fn.def 2754 internal-fn.def
2770 2755
2771 # Compile the programs that generate insn-* from the machine description. 2756 # Compile the programs that generate insn-* from the machine description.
2791 2776
2792 # These programs need libs over and above what they get from the above list. 2777 # These programs need libs over and above what they get from the above list.
2793 build/genautomata$(build_exeext) : BUILD_LIBS += -lm 2778 build/genautomata$(build_exeext) : BUILD_LIBS += -lm
2794 2779
2795 build/genrecog$(build_exeext) : build/hash-table.o build/inchash.o 2780 build/genrecog$(build_exeext) : build/hash-table.o build/inchash.o
2796 build/gencfn-macros$(build_exeext) : build/hash-table.o build/ggc-none.o 2781 build/gencfn-macros$(build_exeext) : build/hash-table.o build/vec.o \
2782 build/ggc-none.o build/sort.o
2797 2783
2798 # For stage1 and when cross-compiling use the build libcpp which is 2784 # For stage1 and when cross-compiling use the build libcpp which is
2799 # built with NLS disabled. For stage2+ use the host library and 2785 # built with NLS disabled. For stage2+ use the host library and
2800 # its dependencies. 2786 # its dependencies.
2801 ifeq ($(build_objdir),$(build_libobjdir)) 2787 ifeq ($(build_objdir),$(build_libobjdir))
2805 build/genmatch$(build_exeext): BUILD_LIBDEPS += $(LIBINTL_DEP) $(LIBICONV_DEP) 2791 build/genmatch$(build_exeext): BUILD_LIBDEPS += $(LIBINTL_DEP) $(LIBICONV_DEP)
2806 build/genmatch$(build_exeext): BUILD_LIBS += $(LIBINTL) $(LIBICONV) 2792 build/genmatch$(build_exeext): BUILD_LIBS += $(LIBINTL) $(LIBICONV)
2807 endif 2793 endif
2808 2794
2809 build/genmatch$(build_exeext) : $(BUILD_CPPLIB) \ 2795 build/genmatch$(build_exeext) : $(BUILD_CPPLIB) \
2810 $(BUILD_ERRORS) build/vec.o build/hash-table.o 2796 $(BUILD_ERRORS) build/vec.o build/hash-table.o build/sort.o
2811 2797
2812 # These programs are not linked with the MD reader. 2798 # These programs are not linked with the MD reader.
2813 build/gengtype$(build_exeext) : build/gengtype-lex.o build/gengtype-parse.o \ 2799 build/gengtype$(build_exeext) : build/gengtype-lex.o build/gengtype-parse.o \
2814 build/gengtype-state.o build/version.o build/errors.o 2800 build/gengtype-state.o build/version.o build/errors.o
2815 2801
2822 $(genprog:%=build/gen%$(build_exeext)): build/gen%$(build_exeext): build/gen%.o $(BUILD_LIBDEPS) 2808 $(genprog:%=build/gen%$(build_exeext)): build/gen%$(build_exeext): build/gen%.o $(BUILD_LIBDEPS)
2823 +$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ \ 2809 +$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ \
2824 $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS) 2810 $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS)
2825 2811
2826 # Generated source files for gengtype. Prepend inclusion of 2812 # Generated source files for gengtype. Prepend inclusion of
2827 # bconfig.h because AIX requires _LARGE_FILES to be defined before 2813 # config.h/bconfig.h because AIX requires _LARGE_FILES to be defined before
2828 # any system header is included. 2814 # any system header is included.
2829 gengtype-lex.c : gengtype-lex.l 2815 gengtype-lex.c : gengtype-lex.l
2830 -$(FLEX) $(FLEXFLAGS) -o$@ $< && { \ 2816 -$(FLEX) $(FLEXFLAGS) -o$@ $< && { \
2831 echo '#include "bconfig.h"' > $@.tmp; \ 2817 echo '#ifdef HOST_GENERATOR_FILE' > $@.tmp; \
2818 echo '#include "config.h"' >> $@.tmp; \
2819 echo '#else' >> $@.tmp; \
2820 echo '#include "bconfig.h"' >> $@.tmp; \
2821 echo '#endif' >> $@.tmp; \
2832 cat $@ >> $@.tmp; \ 2822 cat $@ >> $@.tmp; \
2833 mv $@.tmp $@; \ 2823 mv $@.tmp $@; \
2834 } 2824 }
2835 2825
2836 # 2826 #
3142 $(srcdir)/doc/tm.texi hostconfig.texi fragments.texi \ 3132 $(srcdir)/doc/tm.texi hostconfig.texi fragments.texi \
3143 configfiles.texi collect2.texi headerdirs.texi funding.texi \ 3133 configfiles.texi collect2.texi headerdirs.texi funding.texi \
3144 gnu.texi gpl_v3.texi fdl.texi contrib.texi languages.texi \ 3134 gnu.texi gpl_v3.texi fdl.texi contrib.texi languages.texi \
3145 sourcebuild.texi gty.texi libgcc.texi cfg.texi tree-ssa.texi \ 3135 sourcebuild.texi gty.texi libgcc.texi cfg.texi tree-ssa.texi \
3146 loop.texi generic.texi gimple.texi plugins.texi optinfo.texi \ 3136 loop.texi generic.texi gimple.texi plugins.texi optinfo.texi \
3147 match-and-simplify.texi 3137 match-and-simplify.texi ux.texi poly-int.texi
3148 3138
3149 TEXI_GCCINSTALL_FILES = install.texi install-old.texi fdl.texi \ 3139 TEXI_GCCINSTALL_FILES = install.texi install-old.texi fdl.texi \
3150 gcc-common.texi gcc-vers.texi 3140 gcc-common.texi gcc-vers.texi
3151 3141
3152 TEXI_CPPINT_FILES = cppinternals.texi gcc-common.texi gcc-vers.texi 3142 TEXI_CPPINT_FILES = cppinternals.texi gcc-common.texi gcc-vers.texi
3465 $(host_xm_file_list) $(host_xm_include_list) $(xm_include_list) \ 3455 $(host_xm_file_list) $(host_xm_include_list) $(xm_include_list) \
3466 intl.h $(PLUGIN_VERSION_H) $(DIAGNOSTIC_H) ${C_TREE_H} \ 3456 intl.h $(PLUGIN_VERSION_H) $(DIAGNOSTIC_H) ${C_TREE_H} \
3467 $(C_COMMON_H) c-family/c-objc.h $(C_PRETTY_PRINT_H) \ 3457 $(C_COMMON_H) c-family/c-objc.h $(C_PRETTY_PRINT_H) \
3468 tree-iterator.h $(PLUGIN_H) $(TREE_SSA_H) langhooks.h incpath.h debug.h \ 3458 tree-iterator.h $(PLUGIN_H) $(TREE_SSA_H) langhooks.h incpath.h debug.h \
3469 $(EXCEPT_H) tree-ssa-sccvn.h real.h output.h $(IPA_UTILS_H) \ 3459 $(EXCEPT_H) tree-ssa-sccvn.h real.h output.h $(IPA_UTILS_H) \
3470 $(C_PRAGMA_H) $(CPPLIB_H) $(FUNCTION_H) \ 3460 ipa-param-manipulation.h $(C_PRAGMA_H) $(CPPLIB_H) $(FUNCTION_H) \
3471 cppdefault.h flags.h $(MD5_H) params.def params.h params-enum.h \ 3461 cppdefault.h flags.h $(MD5_H) params.def params.h params-enum.h \
3472 prefix.h tree-inline.h $(GIMPLE_PRETTY_PRINT_H) realmpfr.h \ 3462 prefix.h tree-inline.h $(GIMPLE_PRETTY_PRINT_H) realmpfr.h \
3473 $(IPA_PROP_H) $(TARGET_H) $(RTL_H) $(TM_P_H) $(CFGLOOP_H) $(EMIT_RTL_H) \ 3463 $(IPA_PROP_H) $(TARGET_H) $(RTL_H) $(TM_P_H) $(CFGLOOP_H) $(EMIT_RTL_H) \
3474 version.h stringpool.h gimplify.h gimple-iterator.h gimple-ssa.h \ 3464 version.h stringpool.h gimplify.h gimple-iterator.h gimple-ssa.h \
3475 fold-const.h fold-const-call.h tree-cfg.h tree-into-ssa.h tree-ssanames.h \ 3465 fold-const.h fold-const-call.h tree-cfg.h tree-into-ssa.h tree-ssanames.h \
3481 tree-parloops.h tree-ssa-address.h tree-ssa-coalesce.h tree-ssa-dom.h \ 3471 tree-parloops.h tree-ssa-address.h tree-ssa-coalesce.h tree-ssa-dom.h \
3482 tree-ssa-loop.h tree-ssa-loop-ivopts.h tree-ssa-loop-manip.h \ 3472 tree-ssa-loop.h tree-ssa-loop-ivopts.h tree-ssa-loop-manip.h \
3483 tree-ssa-loop-niter.h tree-ssa-ter.h tree-ssa-threadedge.h \ 3473 tree-ssa-loop-niter.h tree-ssa-ter.h tree-ssa-threadedge.h \
3484 tree-ssa-threadupdate.h inchash.h wide-int.h signop.h hash-map.h \ 3474 tree-ssa-threadupdate.h inchash.h wide-int.h signop.h hash-map.h \
3485 hash-set.h dominance.h cfg.h cfgrtl.h cfganal.h cfgbuild.h cfgcleanup.h \ 3475 hash-set.h dominance.h cfg.h cfgrtl.h cfganal.h cfgbuild.h cfgcleanup.h \
3486 lcm.h cfgloopmanip.h builtins.def chkp-builtins.def pass-instances.def \ 3476 lcm.h cfgloopmanip.h file-prefix-map.h builtins.def \
3487 params.list 3477 pass-instances.def params.list
3488 3478
3489 # generate the 'build fragment' b-header-vars 3479 # generate the 'build fragment' b-header-vars
3490 s-header-vars: Makefile 3480 s-header-vars: Makefile
3491 rm -f tmp-header-vars 3481 rm -f tmp-header-vars
3492 # The first sed gets the list "header variables" as the list variables 3482 # The first sed gets the list "header variables" as the list variables
4130 list='$(SUBDIRS)'; for dir in $$list; do \ 4120 list='$(SUBDIRS)'; for dir in $$list; do \
4131 if test -f $$dir/TAGS; then \ 4121 if test -f $$dir/TAGS; then \
4132 incs="$$incs --include $$dir/TAGS.sub"; \ 4122 incs="$$incs --include $$dir/TAGS.sub"; \
4133 fi; \ 4123 fi; \
4134 done; \ 4124 done; \
4135 etags -o TAGS.sub c-family/*.h c-family/*.c *.h *.c *.cc \ 4125 etags -o TAGS.sub c-family/*.h c-family/*.c c-family/*.cc \
4126 *.h *.c *.cc \
4136 ../include/*.h ../libiberty/*.c \ 4127 ../include/*.h ../libiberty/*.c \
4137 ../libcpp/*.c ../libcpp/include/*.h \ 4128 ../libcpp/*.c ../libcpp/include/*.h \
4138 --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 \ 4129 --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 \
4139 --language=none --regex="/\(DEF_RTL_EXPR\|DEFTREECODE\|DEFGSCODE\|DEFTIMEVAR\|DEFPARAM\|DEFPARAMENUM5\)[ ]?(\([A-Za-z_0-9]+\)/\2/" rtl.def tree.def gimple.def timevar.def params.def \ 4130 --language=none --regex="/\(DEF_RTL_EXPR\|DEFTREECODE\|DEFGSCODE\|DEFTIMEVAR\|DEFPARAM\|DEFPARAMENUM5\)[ ]?(\([A-Za-z_0-9]+\)/\2/" rtl.def tree.def gimple.def timevar.def params.def \
4140 ; \ 4131 ; \