Commit f9258923 by Marek Polacek Committed by Marek Polacek

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
parent 845306e9
2014-10-06 Marek Polacek <polacek@redhat.com> 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. * gcc.dg/lto/20080924_0.c: Fix defaulting to int.
* gcc.dg/lto/20090213_0.c: Likewise. * gcc.dg/lto/20090213_0.c: Likewise.
* gcc.dg/lto/20090706-2_0.c: Likewise. * gcc.dg/lto/20090706-2_0.c: Likewise.
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-fgnu89-inline" } */
int f2 (void);
extern inline int f1 (void) {return f2();} extern inline int f1 (void) {return f2();}
int f3 (void) {return f1();} int f3 (void) {return f1();}
int f1 (void) {return 0;} int f1 (void) {return 0;}
...@@ -8,6 +8,7 @@ inline double fx (double x) ...@@ -8,6 +8,7 @@ inline double fx (double x)
return 3 * x; return 3 * x;
} }
int
main () main ()
{ {
double a = 0, fx (double), foo (); double a = 0, fx (double), foo ();
......
/* Verify that extern inline function never actually inlined has no abstract DIE. */ /* Verify that extern inline function never actually inlined has no abstract DIE. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O0 -gdwarf -dA" } */ /* { dg-options "-O0 -gdwarf -dA -fgnu89-inline" } */
/* { dg-final { scan-assembler-not "DW_AT_inline" } } */ /* { dg-final { scan-assembler-not "DW_AT_inline" } } */
extern inline int t() extern inline int t()
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O0 -gdwarf -dA" } */ /* { dg-options "-O0 -gdwarf -dA -fgnu89-inline" } */
void e(int); void e(int);
__attribute__ ((always_inline)) inline int __attribute__ ((always_inline)) inline int
t(int function_parameter) t(int function_parameter)
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
properly nested DW_TAG_inlined_subroutine DIEs for third, second and first. 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 } */ /* { dg-do compile } */
/* There are 6 inlined subroutines: /* There are 6 inlined subroutines:
......
...@@ -17,6 +17,7 @@ t(int constant_propagated_par) ...@@ -17,6 +17,7 @@ t(int constant_propagated_par)
q(local_var); q(local_var);
q(local_var); q(local_var);
} }
int
main() main()
{ {
t(5); t(5);
......
...@@ -6,6 +6,7 @@ struct lineno_cache_entry ...@@ -6,6 +6,7 @@ struct lineno_cache_entry
{ {
unsigned long size; unsigned long size;
}; };
int
_bfd_link_section_stabs (struct lineno_cache_entry * stabsec) _bfd_link_section_stabs (struct lineno_cache_entry * stabsec)
{ {
unsigned long count; unsigned long count;
......
...@@ -7,6 +7,8 @@ volatile int val2 = 7L; ...@@ -7,6 +7,8 @@ volatile int val2 = 7L;
long long val3; long long val3;
int *ptr = &val1; int *ptr = &val1;
int foo (void);
static int static int
func1 () func1 ()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment