Compile inline test with -std=gnu89 explicitly to override Clang's default (-std...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 11 Apr 2014 19:45:37 +0000 (12:45 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 12 Apr 2014 00:26:23 +0000 (17:26 -0700)
gdb/testsuite/
* gdb.opt/inline-break.exp: Explicitly specify -std=gnu89 to
override Clang's default.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.opt/inline-break.exp

index ed448c5..f7a4b8e 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-11  David Blaikie  <dblaikie@gmail.com>
+
+       * gdb.opt/inline-break.exp: Explicitly specify -std=gnu89 to
+       override Clang's default.
+
 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
 
        Revert the following changes (regressions):
index 21c958a..4ff379a 100644 (file)
 
 standard_testfile
 
+# Explicitly specify gnu89 for gnu inline semantics to override Clang's default
+# of c99.
 if { [prepare_for_testing $testfile.exp $testfile $srcfile \
-          {debug optimize=-O2 additional_flags=-Winline}] } {
+          {debug optimize=-O2 additional_flags=-Winline additional_flags=-std=gnu89}] } {
     return -1
 }