* 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
+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.
/* { 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;}
return 3 * x;
}
+int
main ()
{
double a = 0, fx (double), foo ();
/* 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()
{
/* { 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)
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:
q(local_var);
q(local_var);
}
+int
main()
{
t(5);
{
unsigned long size;
};
+int
_bfd_link_section_stabs (struct lineno_cache_entry * stabsec)
{
unsigned long count;
long long val3;
int *ptr = &val1;
+int foo (void);
+
static int
func1 ()
{