]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/mips_pro.exp
compile with gcc -fno-inline, lest gcc-4.3.1 optimizes the whole thing away.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / mips_pro.exp
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
     }