20001012-1.c: Add prototypes for builtin functions.

* gcc.dg/20001012-1.c: Add prototypes for builtin functions.
	* gcc.dg/20001012-2.c: Likewise.
	* gcc.dg/20001013-1.c: Likewise.
	* gcc.dg/20001101-1.c: Likewise.
	* gcc.dg/20001102-1.c: Likewise.
	* gcc.dg/bf-spl1.c: Likewise.
	* gcc.dg/titype-1.c: Remove special-casing for SPARC.
	* gcc.dg/20040813-1.c: Add missing "." to the regexp.

From-SVN: r87902
This commit is contained in:
Eric Botcazou 2004-09-23 00:07:15 +00:00
parent aa8cb1ad2a
commit de256a451d
8 changed files with 20 additions and 3 deletions

View File

@ -1,6 +1,9 @@
/* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -fpic" } */
extern void abort (void);
extern void exit (int);
double
foo (void)
{

View File

@ -1,6 +1,9 @@
/* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -fpic" } */
extern void abort (void);
extern void exit (int);
void foo (char *x, const char *y, ...)
{
}

View File

@ -1,6 +1,9 @@
/* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */
extern void abort (void);
extern void exit (int);
int l;
int baz (double x)

View File

@ -1,6 +1,9 @@
/* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */
extern void abort (void);
extern void exit (int);
int foo(double a, int b, int c, double *d, int h)
{
int f, g;

View File

@ -1,6 +1,9 @@
/* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */
extern void abort (void);
extern void exit (int);
int foo(double a, int b, int c, double *d, int h)
{
int f, g;

View File

@ -10,5 +10,5 @@ main ()
return 0;
}
/* { dg-final { scan-assembler ".stabs*100,0,2" } } */
/* { dg-final { scan-assembler ".stabs.*100,0,2" } } */

View File

@ -2,6 +2,8 @@
/* { dg-options { -m68000 -O2 } { target m68k-*-* } } */
/* { dg-options { -O2 } { target sparc-*-* } } */
extern void abort (void);
typedef SFtype __attribute__ ((mode (SF)));
typedef DFtype __attribute__ ((mode (DF)));

View File

@ -1,8 +1,8 @@
/* { dg-do run } */
/* Not all platforms support TImode integers. */
#if defined(__LP64__) || defined(__sparc__)
typedef int TItype __attribute__ ((mode (TI))); /* { dg-error "no data type for mode" "TI" { target sparc-sun-solaris2.[0-6]* } } */
#if defined(__LP64__)
typedef int TItype __attribute__ ((mode (TI)));
#else
typedef long TItype;
#endif