From f180a1fb463a6a9ab4a883374120d16770486914 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 11 Apr 2014 12:45:37 -0700 Subject: 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. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.opt/inline-break.exp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ed448c5..f7a4b8e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-04-11 David Blaikie + + * gdb.opt/inline-break.exp: Explicitly specify -std=gnu89 to + override Clang's default. + 2014-04-11 Joel Brobecker Revert the following changes (regressions): 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 } -- cgit v1.1