glibc/sysdeps
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
..
aarch64 AArch64: Fix SVE powf routine [BZ #33299] 2025-08-20 17:45:21 +00:00
alpha
arc
arm
csky
generic sframe: Add support for SFRAME_F_FDE_FUNC_START_PCREL flag 2025-07-24 15:51:58 -03:00
gnu errlist: add missing entries for MIPS/SPARC 2025-08-04 11:13:48 -03:00
hppa
htl htl: move sem_{clockwait, timedwait, wait, trywait} into libc. 2025-08-18 01:06:38 +02:00
hurd htl: move pthread_kill into libc. 2025-08-16 01:44:27 +02:00
i386 x86: Remove an extra space before THREAD_SELF 2025-08-21 19:32:30 -07:00
ieee754 stdio-common: Convert macros across scanf input specifier tests 2025-08-23 01:02:46 +01:00
loongarch i386: Update ___tls_get_addr to preserve vector registers 2025-06-19 04:30:31 +08:00
m68k math: Optimize float ilogb/llogb 2025-06-02 13:32:19 -03:00
mach htl: move sem_unlink into libc. 2025-08-18 01:06:41 +02:00
microblaze
mips
nptl stdlib: Fix qsort memory leak if callback throws (BZ 32058) 2025-04-02 18:01:55 +00:00
or1k
posix stdlib: Fix __libc_message_impl iovec size (BZ 32947) 2025-06-30 13:51:41 -03:00
powerpc powerpc: Remove modf optimization 2025-06-25 15:05:30 -03:00
pthread htl: move sem_unlink into libc. 2025-08-18 01:06:41 +02:00
riscv RISC-V: Use builtin for ffs and ffsll while supported extension available 2025-04-28 09:51:59 -03:00
s390 S390: Use cfi_val_offset instead of cfi_escape. 31bit part 2025-05-23 15:05:56 +02:00
sh
sparc sparc: Fix sparc32 Fix argument passing to __libc_start_main (BZ 32981) 2025-06-18 11:20:34 -03:00
unix x86_64: Use __seg_fs qualifiers in NPTL accessors 2025-08-22 06:36:14 -07:00
wordsize-32
wordsize-64
x86 Don't pass -c to LIBC_TRY_TEST_CC_OPTION 2025-08-23 15:59:42 -07:00
x86_64 x86_64: Use __seg_fs qualifiers in NPTL accessors 2025-08-22 06:36:14 -07:00