From cc69bfc1228f165886521e1c0ad8880e7a11e1af Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Fri, 5 Sep 2008 17:39:00 +0000 Subject: compile with gcc -fno-inline, lest gcc-4.3.1 optimizes the whole thing away. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/mips_pro.exp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b9c192c..5e6bbb3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-09-05 Paul Pluzhnikov + + *gdb.base/mips_pro.exp: compile with gcc -fno-inline, + lest gcc-4.3.1 optimizes the whole thing away. + 2008-09-04 Michael Snyder * lib/gdb.exp (gdb_continue_to_breakpoint): Accept "in" as well diff --git a/gdb/testsuite/gdb.base/mips_pro.exp b/gdb/testsuite/gdb.base/mips_pro.exp index 4ad80de..3af2fea 100644 --- a/gdb/testsuite/gdb.base/mips_pro.exp +++ b/gdb/testsuite/gdb.base/mips_pro.exp @@ -35,7 +35,8 @@ if [get_compiler_info ${binfile}] { # This test must be compiled with -O2 if using gcc. if { [test_compiler_info gcc-*-*] } then { - if { [gdb_compile "${srcdir}/$subdir/${srcfile}" "${binfile}" executable {debug additional_flags=-O2}] != "" } { + if { [gdb_compile "${srcdir}/$subdir/${srcfile}" "${binfile}" \ + executable {debug additional_flags=-O2 additional_flags=-fno-inline}] != "" } { untested mips_pro.exp return -1 } -- cgit v1.1