From: Segher Boessenkool Date: Tue, 25 Jul 2017 11:34:57 +0000 (+0200) Subject: Do not silently continue if config.{build,host,gcc} fails X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c811fd348b55cbe30607a5d9a72983a31148d3a;p=gcc.git Do not silently continue if config.{build,host,gcc} fails If config.{build,host,gcc} fails, configure currently silently continues. This then makes it much harder than necessary to notice you made a stupid pasto in config.gcc (and where exactly). * configure.ac: If any of the config.* scripts fail, exit 1. * configure: Regenerate. From-SVN: r250507 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed281e8e2b4..2a756bee60f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-25 Segher Boessenkool + + * configure.ac: If any of the config.* scripts fail, exit 1. + * configure: Regenerate. + 2017-07-25 Richard Biener PR middle-end/81546 diff --git a/gcc/configure b/gcc/configure index 98aa62c00be..9cee6700a08 100755 --- a/gcc/configure +++ b/gcc/configure @@ -11489,15 +11489,15 @@ fi # -------------------------------------------------------- # Collect build-machine-specific information. -. ${srcdir}/config.build +. ${srcdir}/config.build || exit 1 # Collect host-machine-specific information. -. ${srcdir}/config.host +. ${srcdir}/config.host || exit 1 target_gtfiles= # Collect target-machine-specific information. -. ${srcdir}/config.gcc +. ${srcdir}/config.gcc || exit 1 extra_objs="${host_extra_objs} ${extra_objs}" extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}" diff --git a/gcc/configure.ac b/gcc/configure.ac index aa980a1c426..0c0e3597cda 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1442,15 +1442,15 @@ fi # -------------------------------------------------------- # Collect build-machine-specific information. -. ${srcdir}/config.build +. ${srcdir}/config.build || exit 1 # Collect host-machine-specific information. -. ${srcdir}/config.host +. ${srcdir}/config.host || exit 1 target_gtfiles= # Collect target-machine-specific information. -. ${srcdir}/config.gcc +. ${srcdir}/config.gcc || exit 1 extra_objs="${host_extra_objs} ${extra_objs}" extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"