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
This commit is contained in:
Marek Polacek 2014-10-06 08:56:32 +00:00 committed by Marek Polacek
parent 845306e9be
commit f92589236a
9 changed files with 22 additions and 3 deletions

View 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.

View 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;}

View File

@ -8,6 +8,7 @@ inline double fx (double x)
return 3 * x;
}
int
main ()
{
double a = 0, fx (double), foo ();

View 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()
{

View 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)

View 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:

View File

@ -17,6 +17,7 @@ t(int constant_propagated_par)
q(local_var);
q(local_var);
}
int
main()
{
t(5);

View 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;

View File

@ -7,6 +7,8 @@ volatile int val2 = 7L;
long long val3;
int *ptr = &val1;
int foo (void);
static int
func1 ()
{