20010207-1.c: Use -fgnu89-inline.
authorMarek Polacek <polacek@redhat.com>
Mon, 6 Oct 2014 08:56:32 +0000 (08:56 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 6 Oct 2014 08:56:32 +0000 (08:56 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/20010207-1.c
gcc/testsuite/gcc.dg/debug/dwarf2-2.c
gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-die3.c
gcc/testsuite/gcc.dg/debug/dwarf2/inline1.c
gcc/testsuite/gcc.dg/debug/dwarf2/inline2.c
gcc/testsuite/gcc.dg/debug/dwarf2/ipa-cp1.c
gcc/testsuite/gcc.dg/debug/pr42767.c
gcc/testsuite/gcc.dg/debug/pr49522.c

index 6093b34bf3d34672373da5ba39f2e50aa97aedc8..c5d074ca3111a22297de81faa08f382846e3cd7c 100644 (file)
@@ -1,3 +1,15 @@
+2014-10-06  Marek Polacek  <polacek@redhat.com>
+
+       * 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  <polacek@redhat.com>
 
        * gcc.dg/lto/20080924_0.c: Fix defaulting to int.
index 513d7a43311261070f17a82e5cbbcb004f36629f..4dd92a88c259e3f0f125cb3ce9032d47e741999a 100644 (file)
@@ -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;}
index 0c3cee1a3741f86d810518b749da1cf2c7c3bc17..aa6778fde16281ebc7353d97005125cc56dfc990 100644 (file)
@@ -8,6 +8,7 @@ inline double fx (double x)
   return 3 * x;
 }
 
+int
 main ()
 {
   double a = 0, fx (double), foo ();
index 2b071fc9ed06b80fd67aa0980c3bcf28d2f20544..6e1d73eb34e0e9e93162dcc3f810cf7f7df0d815 100644 (file)
@@ -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()
 {
index bd7f7b986b3d4de38b8d6a87bf56464972ca40ba..3b4b004ef252b965fc6993d02301b36488e3f070 100644 (file)
@@ -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)
index b1947699e702a06793e70d9e1cfc7a536b402532..b2ae111317608cfc292ae91fc5915150f03559e4 100644 (file)
@@ -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:
index 395c54418592a2d4c0b3c55288251d6d45c2fd5b..62a532323849d371f2440067fd7426601362a10f 100644 (file)
@@ -17,6 +17,7 @@ t(int constant_propagated_par)
   q(local_var);
   q(local_var);
 }
+int
 main()
 {
   t(5);
index 1f0e25fe58e2cc2182ee7e7b99cdcf70cffc0599..ef7a5c332861f082894d9f0281d38a06f636be14 100644 (file)
@@ -6,6 +6,7 @@ struct lineno_cache_entry
 {
   unsigned long size;
 };
+int
 _bfd_link_section_stabs (struct lineno_cache_entry * stabsec)
 {
   unsigned long count;
index 3fa3bfb0e92b99f3ced885ea8d8400b72c6f728a..4a2d14d2e7c5af9f53bf16f63d8e0b0518a8806f 100644 (file)
@@ -7,6 +7,8 @@ volatile int val2 = 7L;
 long long val3;
 int *ptr = &val1;
 
+int foo (void);
+
 static int
 func1 ()
 {