diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2017-07-25 13:34:57 +0200 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2017-07-25 13:34:57 +0200 |
commit | 2c811fd348b55cbe30607a5d9a72983a31148d3a (patch) | |
tree | c5c754b7878580b8a97fb6849920f18101ec5a73 /gcc | |
parent | ea0638714cacf83107bb886d9cf87f52a32a7ea4 (diff) | |
download | gcc-2c811fd348b55cbe30607a5d9a72983a31148d3a.zip gcc-2c811fd348b55cbe30607a5d9a72983a31148d3a.tar.gz gcc-2c811fd348b55cbe30607a5d9a72983a31148d3a.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rwxr-xr-x | gcc/configure | 6 | ||||
-rw-r--r-- | gcc/configure.ac | 6 |
3 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed281e8..2a756be 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-25 Segher Boessenkool <segher@kernel.crashing.org> + + * configure.ac: If any of the config.* scripts fail, exit 1. + * configure: Regenerate. + 2017-07-25 Richard Biener <rguenther@suse.de> PR middle-end/81546 diff --git a/gcc/configure b/gcc/configure index 98aa62c..9cee670 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 aa980a1..0c0e359 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}" |