+2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
+
+ * warning.m4: Adjust egrep pattern for non-GNU compilers.
+ * configure: Regenerate.
+
2019-01-08 Alan Modra <amodra@gmail.com>
PR 23699
__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"
__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"
__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"
__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"
__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"
GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
-AC_EGREP_CPP([^[0-3]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow")
+AC_EGREP_CPP([(^[0-3]$|^__GNUC__$)],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow")
# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-AC_EGREP_CPP([^[0-4]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144")
+AC_EGREP_CPP([(^[0-4]$|^__GNUC__$)],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144")
# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
WARN_WRITE_STRINGS=""
-AC_EGREP_CPP([^[0-3]$],[__GNUC__],,WARN_WRITE_STRINGS="-Wwrite-strings")
+AC_EGREP_CPP([(^[0-3]$|^__GNUC__$)],[__GNUC__],,WARN_WRITE_STRINGS="-Wwrite-strings")
# Verify CC_FOR_BUILD to be compatible with warning flags
# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
-AC_EGREP_CPP_FOR_BUILD([^[0-3]$],[__GNUC__],,GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow")
+AC_EGREP_CPP_FOR_BUILD([(^[0-3]$|^__GNUC__$)],[__GNUC__],,GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow")
# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-AC_EGREP_CPP_FOR_BUILD([^[0-4]$],[__GNUC__],,GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144")
+AC_EGREP_CPP_FOR_BUILD([(^[0-4]$|^__GNUC__$)],[__GNUC__],,GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144")
AC_ARG_ENABLE(werror,
[ --enable-werror treat compile warnings as errors],
+2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
+
+ * configure: Regenerate.
+
2019-01-09 Alan Modra <amodra@gmail.com>
* testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
__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"
__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"
__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"
__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"
__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"
+2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
+
+ * configure: Regenerate.
+
2019-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/tc-aarch64.c (aarch64_cpus): Add ares.
__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"
__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"
__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"
__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"
__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"
+2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
+
+ * configure: Regenerate.
+
2019-01-01 Alan Modra <amodra@gmail.com>
Update year range in copyright notice of all files.
__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"
__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"
__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"
__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"
__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"
+2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
+
+ * configure: Regenerate.
+
2019-01-01 Alan Modra <amodra@gmail.com>
Update year range in copyright notice of all files.
__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"
__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"
__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"
__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"
__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"
+2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
+
+ * configure: Regenerate.
+
2019-01-08 Alan Modra <amodra@gmail.com>
* testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
__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"
__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"
__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"
__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"
__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"
+2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
+
+ * configure: Regenerate.
+
2019-01-07 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
__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"
__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"
__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"
__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"
__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"