diff options
author | Roland McGrath <roland@gnu.org> | 2013-10-11 21:56:16 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2013-10-11 21:56:16 +0000 |
commit | 9502638f158976cb57177af939947146ad93d33a (patch) | |
tree | bf87280f5380335081de528c1ee6fccc00451544 /gold/configure | |
parent | 1a041db9cd15754cc49ca5834999b634360238f6 (diff) | |
download | binutils-redhat-9502638f158976cb57177af939947146ad93d33a.tar.gz |
gold/
* configure.ac (MERGE_CONSTANTS_FLAG): New check.
* configure: Regenerate.
* Makefile.in: Regenerate.
* testsuite/merge_string_literals_1.c: Renamed to have .cc suffix.
* testsuite/merge_string_literals_2.c: Likewise.
* testsuite/Makefile.am
(merge_string_literals_1.o, merge_string_literals_2.o): Update deps.
(AM_CFLAGS, AM_CXXFLAGS): Use $(MERGE_CONSTANTS_FLAG) in place of
literal -fmerge-constants.
* testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/configure')
-rwxr-xr-x | gold/configure | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gold/configure b/gold/configure index cb56b651c5..e30fd751d9 100755 --- a/gold/configure +++ b/gold/configure @@ -622,6 +622,7 @@ STATIC_TLS_FALSE STATIC_TLS_TRUE TLS_FALSE TLS_TRUE +MERGE_CONSTANTS_FLAG MCMODEL_MEDIUM_FALSE MCMODEL_MEDIUM_TRUE FN_PTRS_IN_SO_WITHOUT_PIC_FALSE @@ -6339,6 +6340,35 @@ else fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5 +$as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; } +if test "${gold_cv_merge_constants+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + +save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -fmerge-constants" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +const char *s = "foo"; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_merge_constants=yes +else + have_merge_constants=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS="$save_CFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5 +$as_echo "$gold_cv_merge_constants" >&6; } + +if test "$gold_cv_merge_constants" = yes; then : + MERGE_CONSTANTS_FLAG=-fmerge-constants +else + MERGE_CONSTANTS_FLAG= +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 $as_echo_n "checking for thread support... " >&6; } if test "${gold_cv_c_thread+set}" = set; then : |