diff options
author | Roland McGrath <roland@gnu.org> | 2013-10-11 22:07:40 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2013-10-11 22:07:40 +0000 |
commit | bc48a24c140e97c2dd66a365c26b289f1d1f2b40 (patch) | |
tree | 5314114f04a0f4c462bf56c95d7a17ac2f4dedaa | |
parent | f30c0b253983d115e3c72dda1d5b96ef7dd7282c (diff) | |
download | binutils-redhat-bc48a24c140e97c2dd66a365c26b289f1d1f2b40.tar.gz |
gold/
* configure.ac (TLS_GNU2_DIALECT): Use -Werror in test.
(HAVE_PUBNAMES): Likewise.
* configure: Regenerate.
-rw-r--r-- | gold/ChangeLog | 4 | ||||
-rwxr-xr-x | gold/configure | 4 | ||||
-rw-r--r-- | gold/configure.ac | 14 |
3 files changed, 18 insertions, 4 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 9498da8940..f44d8609cf 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,9 @@ 2013-10-11 Roland McGrath <mcgrathr@google.com> + * configure.ac (TLS_GNU2_DIALECT): Use -Werror in test. + (HAVE_PUBNAMES): Likewise. + * configure: Regenerate. + * testsuite/Makefile.am: Replace '-T foo' with '-Wl,-T,foo' throughout. * testsuite/Makefile.in: Regenerate. diff --git a/gold/configure b/gold/configure index e30fd751d9..3ef8833ff1 100755 --- a/gold/configure +++ b/gold/configure @@ -6472,7 +6472,7 @@ fi save_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -fpic -mtls-dialect=gnu2" +CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7444,7 +7444,7 @@ $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h fi save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS="$CXXFLAGS -gpubnames" +CXXFLAGS="$CXXFLAGS -Werror -gpubnames" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; diff --git a/gold/configure.ac b/gold/configure.ac index 4cc9569e12..c23117b6e7 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -389,8 +389,13 @@ fi AM_CONDITIONAL(OMP_SUPPORT, test "$gold_cv_c_threadprivate" = "yes") dnl Test for the -ftls-dialect=gnu2 option. +dnl Use -Werror in case of compilers that make unknown -m options warnings. +dnl They would pass the test here, but fail in actual use when $WARN_CFLAGS +dnl gets set later by default Autoconf magic to include -Werror. (We are +dnl assuming here that there is no compiler that groks -mtls-dialect=gnu2 +dnl but does not grok -Werror.) save_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -fpic -mtls-dialect=gnu2" +CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2" AC_COMPILE_IFELSE([ __thread int i; void foo (void) @@ -592,8 +597,13 @@ if test "$gold_cv_stat_st_mtim" = "yes"; then fi dnl Check if gcc supports the -gpubnames option. +dnl Use -Werror in case of compilers that make unknown -g options warnings. +dnl They would pass the test here, but fail in actual use when $WARN_CFLAGS +dnl gets set later by default Autoconf magic to include -Werror. (We are +dnl assuming here that there is no compiler that groks -gpubnames +dnl but does not grok -Werror.) save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS="$CXXFLAGS -gpubnames" +CXXFLAGS="$CXXFLAGS -Werror -gpubnames" AC_COMPILE_IFELSE([int i;], [have_pubnames=yes], [have_pubnames=no]) CXXFLAGS="$save_CXXFLAGS" AM_CONDITIONAL(HAVE_PUBNAMES, test "$have_pubnames" = "yes") |