aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.opt/inline-break.exp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-30 12:20:50 +0100
committerPedro Alves <palves@redhat.com>2014-05-30 12:20:50 +0100
commit522c09bf63a4b235e6fde07a5e389f2a533cfe0f (patch)
tree020f3a79ca87d851d594e7ddcbbccc0e4beefc8a /gdb/testsuite/gdb.opt/inline-break.exp
parentbf4ef81e851668ee0ca41b3b7e3ff3dec28de675 (diff)
downloadgdb-522c09bf63a4b235e6fde07a5e389f2a533cfe0f.zip
gdb-522c09bf63a4b235e6fde07a5e389f2a533cfe0f.tar.gz
gdb-522c09bf63a4b235e6fde07a5e389f2a533cfe0f.tar.bz2
Use attribute to specify the required inlining semantics
As suggested by Andrew Pinski. gdb/testsuite/ * gdb.opt/inline-break.c: Fix clang compatibility by specifying gnu_inline semantics via attribute. * gdb.opt/inline-break.exp: Remove -std=c89 now that the test source explicitly specifies the required semantics.
Diffstat (limited to 'gdb/testsuite/gdb.opt/inline-break.exp')
-rw-r--r--gdb/testsuite/gdb.opt/inline-break.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.opt/inline-break.exp b/gdb/testsuite/gdb.opt/inline-break.exp
index 4ff379a..21c958a 100644
--- a/gdb/testsuite/gdb.opt/inline-break.exp
+++ b/gdb/testsuite/gdb.opt/inline-break.exp
@@ -19,10 +19,8 @@
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 additional_flags=-std=gnu89}] } {
+ {debug optimize=-O2 additional_flags=-Winline}] } {
return -1
}