aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib
diff options
context:
space:
mode:
authorKelley Cook <kelleycook@wideopenwest.com>2003-06-12 05:54:23 +0000
committerJim Wilson <wilson@gcc.gnu.org>2003-06-11 22:54:23 -0700
commit8a434e1d5d0778a248f60a1de25859ebe482a885 (patch)
tree44165d60246e222c43b587d99c7a9ff71acf8de4 /gcc/testsuite/lib
parent70fd65692dc61f6014b4434b3900812a15cae97d (diff)
downloadgcc-8a434e1d5d0778a248f60a1de25859ebe482a885.zip
gcc-8a434e1d5d0778a248f60a1de25859ebe482a885.tar.gz
gcc-8a434e1d5d0778a248f60a1de25859ebe482a885.tar.bz2
Patch from Kelley Cook.
* lib/gcc.exp (gcc_target_compile): Put TOOL_OPTIONS at front of options instead of at the end. * lib/objc.exp (objc_target_compile): Likewise. From-SVN: r67822
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r--gcc/testsuite/lib/gcc.exp4
-rw-r--r--gcc/testsuite/lib/objc.exp4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/lib/gcc.exp b/gcc/testsuite/lib/gcc.exp
index bec0e2e..29c687b 100644
--- a/gcc/testsuite/lib/gcc.exp
+++ b/gcc/testsuite/lib/gcc.exp
@@ -146,8 +146,10 @@ proc gcc_target_compile { source dest type options } {
if [target_info exists gcc,no_label_values] {
lappend options "additional_flags=-DNO_LABEL_VALUES"
}
+ # TOOL_OPTIONS must come first, so that it doesn't override testcase
+ # specific options.
if [info exists TOOL_OPTIONS] {
- lappend options "additional_flags=$TOOL_OPTIONS"
+ set options [concat "additional_flags=$TOOL_OPTIONS" $options];
}
if [target_info exists gcc,timeout] {
lappend options "timeout=[target_info gcc,timeout]"
diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp
index 3ec19e3..9e7c445 100644
--- a/gcc/testsuite/lib/objc.exp
+++ b/gcc/testsuite/lib/objc.exp
@@ -162,8 +162,10 @@ proc objc_target_compile { source dest type options } {
if [target_info exists objc,no_label_values] {
lappend options "additional_flags=-DNO_LABEL_VALUES"
}
+ # TOOL_OPTIONS must come first, so that it doesn't override testcase
+ # specific options.
if [info exists TOOL_OPTIONS] {
- lappend options "additional_flags=$TOOL_OPTIONS"
+ set options [concat "additional_flags=$TOOL_OPTIONS" $options];
}
# Point to the ObjC headers in libobjc.