aboutsummaryrefslogtreecommitdiff
path: root/gold/configure
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2013-10-11 21:56:16 +0000
committerRoland McGrath <roland@gnu.org>2013-10-11 21:56:16 +0000
commit2b64b5511a0d0814eb3938cff986edf493a7b362 (patch)
tree2aaf7c766c20f163736daaa0c70bb44f01413fec /gold/configure
parent43819297ce3e76908a840fa66159ca83c1560fe5 (diff)
downloadgdb-2b64b5511a0d0814eb3938cff986edf493a7b362.zip
gdb-2b64b5511a0d0814eb3938cff986edf493a7b362.tar.gz
gdb-2b64b5511a0d0814eb3938cff986edf493a7b362.tar.bz2
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-xgold/configure30
1 files changed, 30 insertions, 0 deletions
diff --git a/gold/configure b/gold/configure
index cb56b65..e30fd75 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 :