diff options
author | Martin Liska <mliska@suse.cz> | 2022-01-24 11:40:52 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-01-24 12:07:02 +0100 |
commit | 2755037e40aa3549b38f6d080108e26fb5cb677b (patch) | |
tree | 21c8b28399a62a80c113a7b4ecfc964f0ff9f05c /libatomic | |
parent | options: Add EnumBitSet property support [PR104158] (diff) | |
download | gcc-2755037e40aa3549b38f6d080108e26fb5cb677b.tar.gz gcc-2755037e40aa3549b38f6d080108e26fb5cb677b.tar.bz2 gcc-2755037e40aa3549b38f6d080108e26fb5cb677b.tar.xz |
acinclude.m4: Remove duplicite AC_DEFUN.
libatomic/ChangeLog:
* acinclude.m4: Remove duplicate
LIBAT_CHECK_LINKER_FEATURES.
* configure: Regenerate.
Diffstat (limited to 'libatomic')
-rw-r--r-- | libatomic/acinclude.m4 | 102 | ||||
-rwxr-xr-x | libatomic/configure | 6 |
2 files changed, 3 insertions, 105 deletions
diff --git a/libatomic/acinclude.m4 b/libatomic/acinclude.m4 index 20814bf6cdc..3703a435003 100644 --- a/libatomic/acinclude.m4 +++ b/libatomic/acinclude.m4 | |||
@@ -390,108 +390,6 @@ AC_DEFUN([LIBAT_CHECK_LINKER_FEATURES], [ | |||
390 | 390 | ||
391 | 391 | ||
392 | dnl | 392 | dnl |
393 | dnl If GNU ld is in use, check to see if tricky linker opts can be used. If | ||
394 | dnl the native linker is in use, all variables will be defined to something | ||
395 | dnl safe (like an empty string). | ||
396 | dnl | ||
397 | dnl Defines: | ||
398 | dnl SECTION_LDFLAGS='-Wl,--gc-sections' if possible | ||
399 | dnl OPT_LDFLAGS='-Wl,-O1' if possible | ||
400 | dnl LD (as a side effect of testing) | ||
401 | dnl Sets: | ||
402 | dnl with_gnu_ld | ||
403 | dnl libat_ld_is_gold (possibly) | ||
404 | dnl libat_gnu_ld_version (possibly) | ||
405 | dnl | ||
406 | dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will | ||
407 | dnl set libat_gnu_ld_version to 12345. Zeros cause problems. | ||
408 | dnl | ||
409 | AC_DEFUN([LIBAT_CHECK_LINKER_FEATURES], [ | ||
410 | # If we're not using GNU ld, then there's no point in even trying these | ||
411 | # tests. Check for that first. We should have already tested for gld | ||
412 | # by now (in libtool), but require it now just to be safe... | ||
413 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | ||
414 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | ||
415 | AC_REQUIRE([AC_PROG_LD]) | ||
416 | AC_REQUIRE([AC_PROG_AWK]) | ||
417 | |||
418 | # The name set by libtool depends on the version of libtool. Shame on us | ||
419 | # for depending on an impl detail, but c'est la vie. Older versions used | ||
420 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | ||
421 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | ||
422 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | ||
423 | # set (hence we're using an older libtool), then set it. | ||
424 | if test x${with_gnu_ld+set} != xset; then | ||
425 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | ||
426 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | ||
427 | with_gnu_ld=no | ||
428 | else | ||
429 | with_gnu_ld=$ac_cv_prog_gnu_ld | ||
430 | fi | ||
431 | fi | ||
432 | |||
433 | # Start by getting the version number. I think the libtool test already | ||
434 | # does some of this, but throws away the result. | ||
435 | libat_ld_is_gold=no | ||
436 | if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then | ||
437 | libat_ld_is_gold=yes | ||
438 | fi | ||
439 | changequote(,) | ||
440 | ldver=`$LD --version 2>/dev/null | | ||
441 | sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'` | ||
442 | changequote([,]) | ||
443 | libat_gnu_ld_version=`echo $ldver | \ | ||
444 | $AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'` | ||
445 | |||
446 | # Set --gc-sections. | ||
447 | if test "$with_gnu_ld" = "notbroken"; then | ||
448 | # GNU ld it is! Joy and bunny rabbits! | ||
449 | |||
450 | # All these tests are for C++; save the language and the compiler flags. | ||
451 | # Need to do this so that g++ won't try to link in libstdc++ | ||
452 | ac_test_CFLAGS="${CFLAGS+set}" | ||
453 | ac_save_CFLAGS="$CFLAGS" | ||
454 | CFLAGS='-x c++ -Wl,--gc-sections' | ||
455 | |||
456 | # Check for -Wl,--gc-sections | ||
457 | # XXX This test is broken at the moment, as symbols required for linking | ||
458 | # are now in libsupc++ (not built yet). In addition, this test has | ||
459 | # cored on solaris in the past. In addition, --gc-sections doesn't | ||
460 | # really work at the moment (keeps on discarding used sections, first | ||
461 | # .eh_frame and now some of the glibc sections for iconv). | ||
462 | # Bzzzzt. Thanks for playing, maybe next time. | ||
463 | AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections]) | ||
464 | AC_TRY_RUN([ | ||
465 | int main(void) | ||
466 | { | ||
467 | try { throw 1; } | ||
468 | catch (...) { }; | ||
469 | return 0; | ||
470 | } | ||
471 | ], [ac_sectionLDflags=yes],[ac_sectionLDflags=no], [ac_sectionLDflags=yes]) | ||
472 | if test "$ac_test_CFLAGS" = set; then | ||
473 | CFLAGS="$ac_save_CFLAGS" | ||
474 | else | ||
475 | # this is the suspicious part | ||
476 | CFLAGS='' | ||
477 | fi | ||
478 | if test "$ac_sectionLDflags" = "yes"; then | ||
479 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | ||
480 | fi | ||
481 | AC_MSG_RESULT($ac_sectionLDflags) | ||
482 | fi | ||
483 | |||
484 | # Set linker optimization flags. | ||
485 | if test x"$with_gnu_ld" = x"yes"; then | ||
486 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | ||
487 | fi | ||
488 | |||
489 | AC_SUBST(SECTION_LDFLAGS) | ||
490 | AC_SUBST(OPT_LDFLAGS) | ||
491 | ]) | ||
492 | |||
493 | |||
494 | dnl | ||
495 | dnl Add version tags to symbols in shared library (or not), additionally | 393 | dnl Add version tags to symbols in shared library (or not), additionally |
496 | dnl marking other symbols as private/local (or not). | 394 | dnl marking other symbols as private/local (or not). |
497 | dnl | 395 | dnl |
diff --git a/libatomic/configure b/libatomic/configure index 5867e69ac14..fb920c9a687 100755 --- a/libatomic/configure +++ b/libatomic/configure | |||
@@ -11380,7 +11380,7 @@ else | |||
11380 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 11380 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11381 | lt_status=$lt_dlunknown | 11381 | lt_status=$lt_dlunknown |
11382 | cat > conftest.$ac_ext <<_LT_EOF | 11382 | cat > conftest.$ac_ext <<_LT_EOF |
11383 | #line 11393 "configure" | 11383 | #line 11383 "configure" |
11384 | #include "confdefs.h" | 11384 | #include "confdefs.h" |
11385 | 11385 | ||
11386 | #if HAVE_DLFCN_H | 11386 | #if HAVE_DLFCN_H |
@@ -11486,7 +11486,7 @@ else | |||
11486 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 11486 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11487 | lt_status=$lt_dlunknown | 11487 | lt_status=$lt_dlunknown |
11488 | cat > conftest.$ac_ext <<_LT_EOF | 11488 | cat > conftest.$ac_ext <<_LT_EOF |
11489 | #line 11499 "configure" | 11489 | #line 11489 "configure" |
11490 | #include "confdefs.h" | 11490 | #include "confdefs.h" |
11491 | 11491 | ||
11492 | #if HAVE_DLFCN_H | 11492 | #if HAVE_DLFCN_H |
@@ -15588,7 +15588,7 @@ case "$host" in | |||
15588 | case "$enable_cet" in | 15588 | case "$enable_cet" in |
15589 | auto) | 15589 | auto) |
15590 | # Check if target supports multi-byte NOPs | 15590 | # Check if target supports multi-byte NOPs |
15591 | # and if assembler supports CET insn. | 15591 | # and if compiler and assembler support CET insn. |
15592 | cet_save_CFLAGS="$CFLAGS" | 15592 | cet_save_CFLAGS="$CFLAGS" |
15593 | CFLAGS="$CFLAGS -fcf-protection" | 15593 | CFLAGS="$CFLAGS -fcf-protection" |
15594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 15594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |