]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb, testsuite: Fix argument unused warning with clang
authorChristina Schimpe <christina.schimpe@intel.com>
Thu, 18 Sep 2025 09:07:59 +0000 (09:07 +0000)
committerChristina Schimpe <christina.schimpe@intel.com>
Mon, 22 Sep 2025 11:27:05 +0000 (11:27 +0000)
commit2df7e2237ecb5e5def03407e12f4aa03bc70ebdd
treec525555876e3fc62d1001b1cdd77507a1dc04d60
parent6ad45386dfed886e8eda6c6e3163cbde49845f60
gdb, testsuite: Fix argument unused warning with clang

Since clang 19 we see:
~~
clang: warning: argument unused during compilation: '-nostartfiles' [-Wunused-command-line-argument]^M
gdb compile failed, clang: warning: argument unused during compilation: '-nostartfiles' [-Wunused-command-line-argument]
UNTESTED: gdb.arch/amd64-init-x87-values.exp: failed to prepare
~~

Fix this by only passing '-nostartfiles' when linking.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp
gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp
gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp
gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
gdb/testsuite/gdb.dwarf2/debug-names.exp
gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp