From: Mike Frysinger Date: Mon, 22 Nov 2021 03:57:26 +0000 (-0500) Subject: sim: testsuite: drop unused global_cc_options X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c099934746ab8d7059411c77acc56fc6d149bbf4;p=binutils-gdb.git sim: testsuite: drop unused global_cc_options Nothing in the testsuite is using this setting, so let's drop it. Any code that wants to set compiler flags can use CFLAGS_FOR_TARGET instead to get the same effect. --- diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index adf1369fc62..91b8b5a7b10 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -187,7 +187,6 @@ proc run_sim_test { name requested_machs } { global cpu_option_sep global global_as_options global global_ld_options - global global_cc_options global global_sim_options if ![file exists [sim_tool_path]] { @@ -228,9 +227,6 @@ proc run_sim_test { name requested_machs } { if ![info exists global_ld_options] { set global_ld_options "" } - if ![info exists global_cc_options] { - set global_cc_options "" - } if ![info exists global_sim_options] { set global_sim_options "" } @@ -341,7 +337,7 @@ proc run_sim_test { name requested_machs } { if [string match "*.c" $sourcefile] { set comp_output [target_compile $sourcefile ${name}.x "executable" \ - [list "incdir=$srcdir/$subdir" "additional_flags=$c_as_options $c_ld_options $opts(cc,$mach) $global_cc_options"]] + [list "incdir=$srcdir/$subdir" "additional_flags=$c_as_options $c_ld_options $opts(cc,$mach)"]] set method "compiling/linking" } else { if [string match "*.S" $sourcefile] {