compile with gcc -fno-inline, lest gcc-4.3.1 optimizes the whole thing away.
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 5 Sep 2008 17:39:00 +0000 (17:39 +0000)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 5 Sep 2008 17:39:00 +0000 (17:39 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/mips_pro.exp

index b9c192c5a9880a80064b6bcad27d6c442b0138ee..5e6bbb3c3b1a24df4de47946ae03e1b5edfb7420 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       *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  <msnyder@vmware.com>
 
        * lib/gdb.exp (gdb_continue_to_breakpoint): Accept "in" as well
index 4ad80deaf54582a5e603aa379aab1d3d54c01b74..3af2fea8d9fc43e457592678e0597a6d3810933c 100644 (file)
@@ -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
     }