glibc/sysdeps/x86
H.J. Lu 027505a07b Don't pass -c to LIBC_TRY_TEST_CC_OPTION
LIBC_TRY_TEST_CC_OPTION is defined with LIBC_TRY_CC_OPTION:

dnl Test a compiler option or options with an empty input file.
dnl LIBC_TRY_CC_OPTION([options], [action-if-true], [action-if-false])
AC_DEFUN([LIBC_TRY_CC_OPTION],
[AS_IF([AC_TRY_COMMAND([${CC-cc} $1 -xc /dev/null -S -o /dev/null])],
        [$2], [$3])])

which passes -S to compiler.  Unlike gcc, when -c is also passed to clang
20, we get

configure:7838: clang -c -Werror -fsemantic-interposition -xc /dev/null -S -o /dev/null
clang: error: argument unused during compilation: '-c' [-Werror,-Wunused-command-line-argument]

Don't pass -c to LIBC_TRY_TEST_CC_OPTION since -c isn't needed.

This fixes BZ #33318.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
2025-08-23 15:59:42 -07:00
..
bits math: Fix `unknown type name '__float128'` for clang 3.4 to 3.8.1 (bug 32694) 2025-02-23 11:47:11 +08:00
fpu Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
htl Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
include x86: Use separate variable for TLSDESC XSAVE/XSAVEC state size (bug 32810) 2025-03-29 09:17:38 +01:00
nptl Move <thread_pointer.h> to kernel-independent sysdeps directories 2025-01-09 19:30:16 +01:00
sys/platform Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
Makeconfig
Makefile x86: Set have-protected-data to no if unsupported 2025-08-22 17:55:32 -07:00
Versions i386: Also add GLIBC_ABI_GNU2_TLS version [BZ #33129] 2025-08-18 11:58:01 -07:00
__longjmp_cancel.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
abi-note.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
atomic-machine.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
cacheinfo.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
cacheinfo.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
configure Don't pass -c to LIBC_TRY_TEST_CC_OPTION 2025-08-23 15:59:42 -07:00
configure.ac Don't pass -c to LIBC_TRY_TEST_CC_OPTION 2025-08-23 15:59:42 -07:00
cpu-features-offsets.sym
cpu-features.c x86: Avoid GLRO(dl_x86_cpu_features) 2025-06-09 13:03:13 +08:00
cpu-tunables.c Fix typo in comment 2025-03-31 10:54:52 -03:00
dl-cacheinfo.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-diagnostics-cpu.c x86: Use separate variable for TLSDESC XSAVE/XSAVEC state size (bug 32810) 2025-03-29 09:17:38 +01:00
dl-get-cpu-features.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-hwcap.h Remove dl-procinfo.h 2025-03-05 11:22:09 -03:00
dl-hwcap2.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-isa-level.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-lookupcfg.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-minsigstacksize.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-new-hash.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-procinfo.c Remove unused dl-procinfo.h 2025-02-28 16:55:18 +00:00
dl-prop.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-tunables.list Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
elf-initfini.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
elide.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
features-offsets.sym
float128-abi.h
fpu_control.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
get-cpuid-feature-leaf.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
get-isa-level.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hp-timing.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
init-arch.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
isa-ifunc-macros.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
isa-level.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
isa-level.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
jmp_buf-ssp.sym
ldbl2mpn.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ldsodefs.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libc-start.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
link_map.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
linkmap.h
longjmp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
readelflib.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sysdep.h i386: Update ___tls_get_addr to preserve vector registers 2025-06-19 04:30:31 +08:00
thread_pointer.h x86: Add missing #include <features.h> to <thread_pointer.h> 2025-01-09 19:30:41 +01:00
tininess.h
tst-cpu-features-cpuinfo-static.c
tst-cpu-features-cpuinfo.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-cpu-features-supports-static.c
tst-cpu-features-supports.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-get-cpu-features-static.c
tst-get-cpu-features.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-gnu2-tls2-x86-noxsave.c x86: Update tst-gnu2-tls2 tests 2025-06-19 05:46:31 +08:00
tst-gnu2-tls2-x86-noxsavec.c x86: Update tst-gnu2-tls2 tests 2025-06-19 05:46:31 +08:00
tst-gnu2-tls2-x86-noxsavexsavec.c x86: Update tst-gnu2-tls2 tests 2025-06-19 05:46:31 +08:00
tst-gnu2-tls2.c x86: Update tst-gnu2-tls2 tests 2025-06-19 05:46:31 +08:00
tst-gnu2-tls2.h x86: Update tst-gnu2-tls2 tests 2025-06-19 05:46:31 +08:00
tst-hwcap-tunables.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-ifunc-isa-1-static.c
tst-ifunc-isa-1.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-ifunc-isa-2-static.c
tst-ifunc-isa-2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-ifunc-isa.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-isa-level-1.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-isa-level-mod-1-baseline.c
tst-isa-level-mod-1-v2.c
tst-isa-level-mod-1-v3.c
tst-isa-level-mod-1-v4.c
tst-isa-level-mod-1.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-ldbl-nonnormal-printf.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-memchr-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-memcmp-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-memmove-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-memrchr-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-memset-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setjmp-cet.c
tst-stack-align.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strcasecmp-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strchr-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strcmp-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strcpy-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-string-rtm.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strlen-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strncasecmp-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strncmp-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strrchr-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-sysconf-cache-linesize-static.c
tst-sysconf-cache-linesize.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-tls23.c i386: Update ___tls_get_addr to preserve vector registers 2025-06-19 04:30:31 +08:00
tst-tls23.h i386: Update ___tls_get_addr to preserve vector registers 2025-06-19 04:30:31 +08:00
tst-wcscmp-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-wcsncmp-rtm.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
utmp-size.h