diff options
author | Andrew Paprocki <andrew@ishiboo.com> | 2019-01-09 13:51:08 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-01-09 13:51:08 +1030 |
commit | 3107326d3df950b0578a895bb835b2a8dfa8fab7 (patch) | |
tree | 9d6bbfcceea0af8f4044a755beea1cc0ac4a4d6d /gold/configure | |
parent | 923c6a756476f3a1f92d6625aacbbf5253b7739b (diff) | |
download | gdb-3107326d3df950b0578a895bb835b2a8dfa8fab7.zip gdb-3107326d3df950b0578a895bb835b2a8dfa8fab7.tar.gz gdb-3107326d3df950b0578a895bb835b2a8dfa8fab7.tar.bz2 |
Adjust bfd/warning.m4 egrep patterns
Adjust the `bfd/warning.m4` `egrep` patterns to handle preprocessors
that do not define `__GNUC__`, leaving the string in the output.
bfd/
* warning.m4: Adjust egrep pattern for non-GNU compilers.
* configure: Regenerate.
binutils/
* configure: Regenerate.
gas/
* configure: Regenerate.
gold/
* configure: Regenerate.
gprof/
* configure: Regenerate.
ld/
* configure: Regenerate.
opcodes/
* configure: Regenerate.
Diffstat (limited to 'gold/configure')
-rwxr-xr-x | gold/configure | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gold/configure b/gold/configure index 216af10..474c69a 100755 --- a/gold/configure +++ b/gold/configure @@ -7795,7 +7795,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext __GNUC__ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "^[0-3]$" >/dev/null 2>&1; then : + $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : else GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" @@ -7809,7 +7809,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext __GNUC__ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "^[0-4]$" >/dev/null 2>&1; then : + $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : else GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" @@ -7824,7 +7824,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext __GNUC__ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "^[0-3]$" >/dev/null 2>&1; then : + $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : else WARN_WRITE_STRINGS="-Wwrite-strings" @@ -7840,7 +7840,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext __GNUC__ _ACEOF if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | - $EGREP "^[0-3]$" >/dev/null 2>&1; then : + $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : else GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" @@ -7854,7 +7854,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext __GNUC__ _ACEOF if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | - $EGREP "^[0-4]$" >/dev/null 2>&1; then : + $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : else GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" |