Commit de256a45 by Eric Botcazou

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
parent aa8cb1ad
/* { dg-do run { target sparc*-*-* } } */ /* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -fpic" } */ /* { dg-options "-O2 -fpic" } */
extern void abort (void);
extern void exit (int);
double double
foo (void) foo (void)
{ {
......
/* { dg-do run { target sparc*-*-* } } */ /* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -fpic" } */ /* { dg-options "-O2 -fpic" } */
extern void abort (void);
extern void exit (int);
void foo (char *x, const char *y, ...) void foo (char *x, const char *y, ...)
{ {
} }
......
/* { dg-do run { target sparc*-*-* } } */ /* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */ /* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */
extern void abort (void);
extern void exit (int);
int l; int l;
int baz (double x) int baz (double x)
......
/* { dg-do run { target sparc*-*-* } } */ /* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */ /* { 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 foo(double a, int b, int c, double *d, int h)
{ {
int f, g; int f, g;
......
/* { dg-do run { target sparc*-*-* } } */ /* { dg-do run { target sparc*-*-* } } */
/* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */ /* { 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 foo(double a, int b, int c, double *d, int h)
{ {
int f, g; int f, g;
......
...@@ -10,5 +10,5 @@ main () ...@@ -10,5 +10,5 @@ main ()
return 0; return 0;
} }
/* { dg-final { scan-assembler ".stabs*100,0,2" } } */ /* { dg-final { scan-assembler ".stabs.*100,0,2" } } */
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* { dg-options { -m68000 -O2 } { target m68k-*-* } } */ /* { dg-options { -m68000 -O2 } { target m68k-*-* } } */
/* { dg-options { -O2 } { target sparc-*-* } } */ /* { dg-options { -O2 } { target sparc-*-* } } */
extern void abort (void);
typedef SFtype __attribute__ ((mode (SF))); typedef SFtype __attribute__ ((mode (SF)));
typedef DFtype __attribute__ ((mode (DF))); typedef DFtype __attribute__ ((mode (DF)));
......
/* { dg-do run } */ /* { dg-do run } */
/* Not all platforms support TImode integers. */ /* Not all platforms support TImode integers. */
#if defined(__LP64__) || defined(__sparc__) #if defined(__LP64__)
typedef int TItype __attribute__ ((mode (TI))); /* { dg-error "no data type for mode" "TI" { target sparc-sun-solaris2.[0-6]* } } */ typedef int TItype __attribute__ ((mode (TI)));
#else #else
typedef long TItype; typedef long TItype;
#endif #endif
......
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