From c099934746ab8d7059411c77acc56fc6d149bbf4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 21 Nov 2021 22:57:26 -0500 Subject: 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. --- sim/testsuite/lib/sim-defs.exp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sim') diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index adf1369..91b8b5a 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] { -- cgit v1.1