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.
This commit is contained in:
David Blaikie 2014-05-30 12:20:50 +01:00 committed by Pedro Alves
parent bf4ef81e85
commit 522c09bf63
3 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2014-05-30 David Blaikie <dblaikie@gmail.com>
* 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.
2014-05-30 Maciej W. Rozycki <macro@codesourcery.com>
* gdb.reverse/sigall-reverse.exp: Fix a typo.

View file

@ -19,7 +19,7 @@
this file, and should be regenerated if this file is modified. */
#ifdef __GNUC__
# define ATTR __attribute__((always_inline))
# define ATTR __attribute__((gnu_inline)) __attribute__((always_inline))
#else
# define ATTR
#endif

View file

@ -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
}