diff options
author | Jim Blandy <jimb@codesourcery.com> | 2002-12-23 00:02:02 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2002-12-23 00:02:02 +0000 |
commit | f0a847b8c7d6ba5a4d0df552453821f67c939e82 (patch) | |
tree | d754f9e8257d8cffd5d052ccef9a4af704391ba7 /gdb/testsuite/gdb.trace | |
parent | 114019bb6e6a29549f225b60e1dfda358c605367 (diff) | |
download | gdb-f0a847b8c7d6ba5a4d0df552453821f67c939e82.zip gdb-f0a847b8c7d6ba5a4d0df552453821f67c939e82.tar.gz gdb-f0a847b8c7d6ba5a4d0df552453821f67c939e82.tar.bz2 |
* gdb.trace/tfind.exp: Pass '-O1' flag via the 'optimize' option,
rather than as part of the output file name.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r-- | gdb/testsuite/gdb.trace/tfind.exp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.trace/tfind.exp b/gdb/testsuite/gdb.trace/tfind.exp index f678975..9507351 100644 --- a/gdb/testsuite/gdb.trace/tfind.exp +++ b/gdb/testsuite/gdb.trace/tfind.exp @@ -53,8 +53,13 @@ if [istarget "m68k-*-elf"] then { set testfile "actions" set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile - if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile -O1" \ - executable {debug additional_flags=-w}] != "" } { + + # Why does this test require '-O1' level optimization? (In + # general, the optimization level should be left under the control + # of the test framework (target_list and so on), so if we don't + # have to override it in individual tests like this, we shouldn't.) + if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" \ + executable {debug additional_flags=-w optimize=-O1}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } gdb_load $binfile |