aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.opt
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-11 12:45:37 -0700
committerDavid Blaikie <dblaikie@gmail.com>2014-04-11 17:26:23 -0700
commitf180a1fb463a6a9ab4a883374120d16770486914 (patch)
tree545e606c395633397e9accddca1c2feb2f9db565 /gdb/testsuite/gdb.opt
parentd616f26a0480204b401470af5759ea2c60775644 (diff)
downloadgdb-f180a1fb463a6a9ab4a883374120d16770486914.zip
gdb-f180a1fb463a6a9ab4a883374120d16770486914.tar.gz
gdb-f180a1fb463a6a9ab4a883374120d16770486914.tar.bz2
Compile inline test with -std=gnu89 explicitly to override Clang's default (-std=c99)
gdb/testsuite/ * gdb.opt/inline-break.exp: Explicitly specify -std=gnu89 to override Clang's default.
Diffstat (limited to 'gdb/testsuite/gdb.opt')
-rw-r--r--gdb/testsuite/gdb.opt/inline-break.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.opt/inline-break.exp b/gdb/testsuite/gdb.opt/inline-break.exp
index 21c958a..4ff379a 100644
--- a/gdb/testsuite/gdb.opt/inline-break.exp
+++ b/gdb/testsuite/gdb.opt/inline-break.exp
@@ -19,8 +19,10 @@
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
}