From: Marek Polacek Date: Mon, 6 Oct 2014 08:56:32 +0000 (+0000) Subject: 20010207-1.c: Use -fgnu89-inline. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f92589236ab848f42a36ccb08a329813dddf8b2d;p=gcc.git 20010207-1.c: Use -fgnu89-inline. * gcc.dg/debug/20010207-1.c: Use -fgnu89-inline. Fix implicit declarations. * gcc.dg/debug/dwarf2-2.c: Fix defaulting to int. * gcc.dg/debug/dwarf2/ipa-cp1.c: Likewise. * gcc.dg/debug/pr42767.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-die3.c: Use -fgnu89-inline. * gcc.dg/debug/dwarf2/inline1.c: Likewise. * gcc.dg/debug/dwarf2/inline2.c: Likewise. * gcc.dg/debug/pr49522.c: Fix implicit declarations. From-SVN: r215919 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6093b34bf3d..c5d074ca311 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2014-10-06 Marek Polacek + + * gcc.dg/debug/20010207-1.c: Use -fgnu89-inline. Fix implicit + declarations. + * gcc.dg/debug/dwarf2-2.c: Fix defaulting to int. + * gcc.dg/debug/dwarf2/ipa-cp1.c: Likewise. + * gcc.dg/debug/pr42767.c: Likewise. + * gcc.dg/debug/dwarf2/dwarf-die3.c: Use -fgnu89-inline. + * gcc.dg/debug/dwarf2/inline1.c: Likewise. + * gcc.dg/debug/dwarf2/inline2.c: Likewise. + * gcc.dg/debug/pr49522.c: Fix implicit declarations. + 2014-10-06 Marek Polacek * gcc.dg/lto/20080924_0.c: Fix defaulting to int. diff --git a/gcc/testsuite/gcc.dg/debug/20010207-1.c b/gcc/testsuite/gcc.dg/debug/20010207-1.c index 513d7a43311..4dd92a88c25 100644 --- a/gcc/testsuite/gcc.dg/debug/20010207-1.c +++ b/gcc/testsuite/gcc.dg/debug/20010207-1.c @@ -1,4 +1,6 @@ /* { dg-do compile } */ +/* { dg-options "-fgnu89-inline" } */ +int f2 (void); extern inline int f1 (void) {return f2();} int f3 (void) {return f1();} int f1 (void) {return 0;} diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2-2.c b/gcc/testsuite/gcc.dg/debug/dwarf2-2.c index 0c3cee1a374..aa6778fde16 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2-2.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2-2.c @@ -8,6 +8,7 @@ inline double fx (double x) return 3 * x; } +int main () { double a = 0, fx (double), foo (); diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-die3.c b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-die3.c index 2b071fc9ed0..6e1d73eb34e 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-die3.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-die3.c @@ -1,6 +1,6 @@ /* Verify that extern inline function never actually inlined has no abstract DIE. */ /* { dg-do compile } */ -/* { dg-options "-O0 -gdwarf -dA" } */ +/* { dg-options "-O0 -gdwarf -dA -fgnu89-inline" } */ /* { dg-final { scan-assembler-not "DW_AT_inline" } } */ extern inline int t() { diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/inline1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/inline1.c index bd7f7b986b3..3b4b004ef25 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/inline1.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/inline1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O0 -gdwarf -dA" } */ +/* { dg-options "-O0 -gdwarf -dA -fgnu89-inline" } */ void e(int); __attribute__ ((always_inline)) inline int t(int function_parameter) diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/inline2.c b/gcc/testsuite/gcc.dg/debug/dwarf2/inline2.c index b1947699e70..b2ae1113176 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/inline2.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/inline2.c @@ -14,7 +14,7 @@ properly nested DW_TAG_inlined_subroutine DIEs for third, second and first. */ -/* { dg-options "-O -g3 -gdwarf -dA" } */ +/* { dg-options "-O -g3 -gdwarf -dA -fgnu89-inline" } */ /* { dg-do compile } */ /* There are 6 inlined subroutines: diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/ipa-cp1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/ipa-cp1.c index 395c5441859..62a53232384 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/ipa-cp1.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/ipa-cp1.c @@ -17,6 +17,7 @@ t(int constant_propagated_par) q(local_var); q(local_var); } +int main() { t(5); diff --git a/gcc/testsuite/gcc.dg/debug/pr42767.c b/gcc/testsuite/gcc.dg/debug/pr42767.c index 1f0e25fe58e..ef7a5c33286 100644 --- a/gcc/testsuite/gcc.dg/debug/pr42767.c +++ b/gcc/testsuite/gcc.dg/debug/pr42767.c @@ -6,6 +6,7 @@ struct lineno_cache_entry { unsigned long size; }; +int _bfd_link_section_stabs (struct lineno_cache_entry * stabsec) { unsigned long count; diff --git a/gcc/testsuite/gcc.dg/debug/pr49522.c b/gcc/testsuite/gcc.dg/debug/pr49522.c index 3fa3bfb0e92..4a2d14d2e7c 100644 --- a/gcc/testsuite/gcc.dg/debug/pr49522.c +++ b/gcc/testsuite/gcc.dg/debug/pr49522.c @@ -7,6 +7,8 @@ volatile int val2 = 7L; long long val3; int *ptr = &val1; +int foo (void); + static int func1 () {