gcc/contrib
Richard Sandiford 301dec8533 Tweak language choice in config-list.mk
When I tried to use config-list.mk, the build for every triple except
the build machine's failed for m2.  This is because, unlike other
languages, m2 builds target objects during all-gcc.  The build will
therefore fail unless you have access to an appropriate binutils
(or an equivalent).  That's quite a big ask for over 100 targets. :)

This patch therefore makes m2 an optional inclusion.

Doing that wasn't entirely straightforward though.  The current
configure line includes "--enable-languages=all,...", which means
that the "..." can only force languages to be added that otherwise
wouldn't have been.  (I.e. the only effect of the "..." is to
override configure autodetection.)

The choice of all,ada and:

  # Make sure you have a recent enough gcc (with ada support) in your path so
  # that --enable-werror-always will work.

make it clear that lack of GNAT should be a build failure rather than
silently ignored.  This predates the D frontend, which requires GDC
in the same way that Ada requires GNAT.  I don't know of a reason
why D should be treated differently.

The patch therefore expands the "all" into a specific list of
languages.

That in turn meant that Fortran had to be handled specially,
since bpf and mmix don't support Fortran.

Perhaps there's an argument that m2 shouldn't build target objects
during all-gcc, but (a) it works for practical usage and (b) the
patch is an easy workaround.  I'd be happy for the patch to be
reverted if the build system changes.

contrib/
	* config-list.mk (OPT_IN_LANGUAGES): New variable.
	($(LIST)): Replace --enable-languages=all with a specifc list.
	Disable fortran on bpf and mmix.  Enable the languages in
	OPT_IN_LANGUAGES.
2023-12-02 13:49:53 +00:00
..
gcc-changelog contrib: Ignore the r14-5312-g040e5b0edbca861196d9e2ea2af5e805769c8d5d bogus commit 2023-11-14 13:16:36 +01:00
header-tools Daily bump. 2022-09-01 00:17:39 +00:00
legacy Update copyright years. 2023-01-16 11:52:17 +01:00
mdcompact contrib: add mdcompact 2023-10-05 17:41:54 +02:00
reghunt Daily bump. 2023-05-19 00:17:43 +00:00
regression Daily bump. 2023-11-24 00:17:53 +00:00
testsuite-management [contrib] validate_failures.py: Don't consider summary line in wrong place 2023-06-17 16:02:22 -06:00
unicode libcpp, contrib: Update to Unicode 15.1 2023-11-14 18:32:37 +01:00
vim-gcc-dev Update copyright years. 2023-01-16 11:52:17 +01:00
analyze_brprob.py Update copyright years. 2023-01-16 11:52:17 +01:00
analyze_brprob_spec.py Update copyright years. 2023-01-16 11:52:17 +01:00
bench-stringop contrib: Fix nonportable shell syntax in "test" and "[" commands [PR105831] 2023-05-18 14:01:40 +01:00
ChangeLog Daily bump. 2023-11-15 00:16:41 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
check-internal-format-escaping.py
check-MAINTAINERS.py Update copyright years. 2023-01-16 11:52:17 +01:00
check-params-in-docs.py Update copyright years. 2023-01-16 11:52:17 +01:00
check_GNU_style.py Update copyright years. 2023-01-16 11:52:17 +01:00
check_GNU_style.sh Update copyright years. 2023-01-16 11:52:17 +01:00
check_GNU_style_lib.py check_GNU_style.py: Skip .md square bracket linting 2023-09-29 14:13:02 -07:00
check_makefile_deps.sh Update copyright years. 2023-01-16 11:52:17 +01:00
check_warning_flags.sh Update copyright years. 2023-01-16 11:52:17 +01:00
clang-format Add more ForEachMacros to clang-format file 2023-06-03 09:54:24 -06:00
compare-all-tests Update copyright years. 2023-01-16 11:52:17 +01:00
compare-debug Update copyright years. 2023-01-16 11:52:17 +01:00
compare-lto Update copyright years. 2023-01-16 11:52:17 +01:00
compare_tests
compare_two_ftime_report_sets Update copyright years. 2023-01-16 11:52:17 +01:00
compareSumTests3 Update copyright years. 2023-01-16 11:52:17 +01:00
config-list.mk Tweak language choice in config-list.mk 2023-12-02 13:49:53 +00:00
dg-cmp-results.sh Update copyright years. 2023-01-16 11:52:17 +01:00
dg-extract-results.py Harmonize headers between both dg-extract-results scripts 2023-09-29 08:50:28 -06:00
dg-extract-results.sh Harmonize headers between both dg-extract-results scripts 2023-09-29 08:50:28 -06:00
dg-out-generator.pl Update copyright years. 2023-01-16 11:52:17 +01:00
dglib.pm Update copyright years. 2023-01-16 11:52:17 +01:00
download_prerequisites *: add modern gettext 2023-11-14 00:47:11 +01:00
filter-clang-warnings.py Update copyright years. 2023-01-16 11:52:17 +01:00
filter_gcc_for_doxygen contrib: port doxygen script to Python3 2023-04-28 16:42:17 +02:00
filter_knr2ansi.pl
filter_params.py contrib: port doxygen script to Python3 2023-04-28 16:42:17 +02:00
gcc-git-customization.sh contrib: Check if getent is available in git setup script [PR111359] 2023-09-11 12:36:02 +01:00
gcc.doxy contrib: doxygen: add gcc/analyzer subdirectory to INPUT 2022-12-06 13:26:56 -05:00
gcc_build Update copyright years. 2023-01-16 11:52:17 +01:00
gcc_update contrib: Quote variable in test expression [PR111360] 2023-09-12 12:42:47 +01:00
gen_autofdo_event.py Update perf auto profile script 2023-06-12 19:22:22 -07:00
gennews Update gennews for GCC 13. 2023-04-26 09:05:49 +02:00
git-add-user-branch.sh
git-add-vendor-branch.sh
git-backport.py Update copyright years. 2023-01-16 11:52:17 +01:00
git-commit-mklog.py Update copyright years. 2023-01-16 11:52:17 +01:00
git-descr.sh
git-fetch-vendor.sh
git-fix-changelog.py Update copyright years. 2023-01-16 11:52:17 +01:00
git-undescr.sh
gthr_supp_vxw_5x.c
index-prop
jit-coverage-report.py Update copyright years. 2023-01-16 11:52:17 +01:00
make-obstacks-texi.pl
make_sunver.pl contrib: Fix make_sunver.pl warning 2023-02-17 13:33:25 +01:00
mark_spam.py Update copyright years. 2023-01-16 11:52:17 +01:00
mklog.py contrib/mklog.py: Fix issues reported by flake8 2023-10-03 19:10:01 +02:00
paranoia.cc
patch_tester.sh Update copyright years. 2023-01-16 11:52:17 +01:00
prepare-commit-msg mklog: handle Signed-off-by, minor cleanup 2023-09-04 21:43:36 +02:00
prepare_patch.sh Update copyright years. 2023-01-16 11:52:17 +01:00
prerequisites.md5 *: add modern gettext 2023-11-14 00:47:11 +01:00
prerequisites.sha512 *: add modern gettext 2023-11-14 00:47:11 +01:00
repro_fail contrib: Fix nonportable shell syntax in "test" and "[" commands [PR105831] 2023-05-18 14:01:40 +01:00
test_installed Update copyright years. 2023-01-16 11:52:17 +01:00
test_mklog.py Update copyright years. 2023-01-16 11:52:17 +01:00
test_recheck
test_summary
texi2pod.pl Update copyright years. 2023-01-16 11:52:17 +01:00
uninclude
unused_functions.py Update copyright years. 2023-01-16 11:52:17 +01:00
update-copyright.py Ignore test_patches.txt in update-copyright.py. 2023-01-17 14:01:24 +01:00
vimrc Update copyright years. 2023-01-16 11:52:17 +01:00
warn_summary