Commit b177d7bf by Marek Polacek Committed by Marek Polacek

crossmodule-indircall-1.c: Fix defaulting to int.

	* gcc.dg/tree-prof/crossmodule-indircall-1.c: Fix defaulting to int.
	* gcc.dg/tree-prof/crossmodule-indircall-1a.c: Likewise.
	* gcc.dg/tree-prof/merge_block.c: Likewise.
	* gcc.dg/tree-prof/peel-1.c: Likewise.
	* gcc.dg/tree-prof/stringop-1.c: Likewise.
	* gcc.dg/tree-prof/stringop-2.c: Likewise.
	* gcc.dg/tree-prof/unroll-1.c: Likewise.
	* gcc.dg/tree-prof/update-cunroll-2.c: Likewise.
	* gcc.dg/tree-prof/val-prof-1.c: Likewise.
	* gcc.dg/tree-prof/val-prof-2.c: Likewise.
	* gcc.dg/tree-prof/val-prof-3.c: Likewise.
	* gcc.dg/tree-prof/val-prof-4.c: Likewise.
	* gcc.dg/tree-prof/val-prof-5.c: Likewise.
	* gcc.dg/tree-prof/val-prof-6.c: Likewise.
	* gcc.dg/tree-prof/cmpsf-1.c: Likewise.
	* gcc.dg/tree-prof/inliner-1.c: Use -fgnu89-inline.  Fix defaulting
	to int.

From-SVN: r215809
parent 252c1a46
2014-10-02 Marek Polacek <polacek@redhat.com> 2014-10-02 Marek Polacek <polacek@redhat.com>
* gcc.dg/tree-prof/crossmodule-indircall-1.c: Fix defaulting to int.
* gcc.dg/tree-prof/crossmodule-indircall-1a.c: Likewise.
* gcc.dg/tree-prof/merge_block.c: Likewise.
* gcc.dg/tree-prof/peel-1.c: Likewise.
* gcc.dg/tree-prof/stringop-1.c: Likewise.
* gcc.dg/tree-prof/stringop-2.c: Likewise.
* gcc.dg/tree-prof/unroll-1.c: Likewise.
* gcc.dg/tree-prof/update-cunroll-2.c: Likewise.
* gcc.dg/tree-prof/val-prof-1.c: Likewise.
* gcc.dg/tree-prof/val-prof-2.c: Likewise.
* gcc.dg/tree-prof/val-prof-3.c: Likewise.
* gcc.dg/tree-prof/val-prof-4.c: Likewise.
* gcc.dg/tree-prof/val-prof-5.c: Likewise.
* gcc.dg/tree-prof/val-prof-6.c: Likewise.
* gcc.dg/tree-prof/cmpsf-1.c: Likewise.
* gcc.dg/tree-prof/inliner-1.c: Use -fgnu89-inline. Fix defaulting
to int.
2014-10-02 Marek Polacek <polacek@redhat.com>
* gcc.c-torture/compile/20000120-2.c: Use -fgnu89-inline. * gcc.c-torture/compile/20000120-2.c: Use -fgnu89-inline.
* gcc.c-torture/compile/20011119-1.c: Likewise. * gcc.c-torture/compile/20011119-1.c: Likewise.
* gcc.c-torture/compile/20011119-2.c: Likewise. * gcc.c-torture/compile/20011119-2.c: Likewise.
......
...@@ -10,6 +10,7 @@ extern void exit (int); ...@@ -10,6 +10,7 @@ extern void exit (int);
#define F 140 #define F 140
#define T 13 #define T 13
int
feq (float x, float y) feq (float x, float y)
{ {
if (x == y) if (x == y)
...@@ -18,6 +19,7 @@ feq (float x, float y) ...@@ -18,6 +19,7 @@ feq (float x, float y)
return F; return F;
} }
int
fne (float x, float y) fne (float x, float y)
{ {
if (x != y) if (x != y)
...@@ -26,6 +28,7 @@ fne (float x, float y) ...@@ -26,6 +28,7 @@ fne (float x, float y)
return F; return F;
} }
int
flt (float x, float y) flt (float x, float y)
{ {
if (x < y) if (x < y)
...@@ -34,6 +37,7 @@ flt (float x, float y) ...@@ -34,6 +37,7 @@ flt (float x, float y)
return F; return F;
} }
int
fge (float x, float y) fge (float x, float y)
{ {
if (x >= y) if (x >= y)
...@@ -42,6 +46,7 @@ fge (float x, float y) ...@@ -42,6 +46,7 @@ fge (float x, float y)
return F; return F;
} }
int
fgt (float x, float y) fgt (float x, float y)
{ {
if (x > y) if (x > y)
...@@ -50,6 +55,7 @@ fgt (float x, float y) ...@@ -50,6 +55,7 @@ fgt (float x, float y)
return F; return F;
} }
int
fle (float x, float y) fle (float x, float y)
{ {
if (x <= y) if (x <= y)
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
int a; int a;
extern void (*p[2])(int n); extern void (*p[2])(int n);
void abort (void); void abort (void);
int
main() main()
{ int i; { int i;
......
...@@ -33,6 +33,7 @@ sub(int i) ...@@ -33,6 +33,7 @@ sub(int i)
__attribute__ ((externally_visible)) __attribute__ ((externally_visible))
void (*p[2])(int)={add, sub}; void (*p[2])(int)={add, sub};
#else #else
int
main() main()
{ {
return 0; return 0;
......
/* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-options "-O2 -fdump-tree-optimized -fgnu89-inline" } */
int a; int a;
int b[100]; int b[100];
void abort (void); void abort (void);
...@@ -21,6 +21,7 @@ hot_function () ...@@ -21,6 +21,7 @@ hot_function ()
abort (); abort ();
} }
int
main () main ()
{ {
int i; int i;
......
...@@ -9,6 +9,7 @@ int t() ...@@ -9,6 +9,7 @@ int t()
break; break;
return i; return i;
} }
int
main () main ()
{ {
int i; int i;
......
...@@ -12,6 +12,7 @@ t() ...@@ -12,6 +12,7 @@ t()
return 1; return 1;
abort (); abort ();
} }
int
main() main()
{ {
int i; int i;
......
...@@ -3,6 +3,7 @@ int a[1000]; ...@@ -3,6 +3,7 @@ int a[1000];
int b[1000]; int b[1000];
int size=1; int size=1;
int max=10000; int max=10000;
int
main() main()
{ {
int i; int i;
......
...@@ -7,6 +7,7 @@ int max=10000; ...@@ -7,6 +7,7 @@ int max=10000;
/* We allow short memcpy()s for MIPS16. */ /* We allow short memcpy()s for MIPS16. */
int __attribute__((nomips16)) int __attribute__((nomips16))
#endif #endif
int
main() main()
{ {
int i; int i;
......
...@@ -12,6 +12,7 @@ t() ...@@ -12,6 +12,7 @@ t()
return 1; return 1;
abort (); abort ();
} }
int
main() main()
{ {
int i; int i;
......
...@@ -10,6 +10,7 @@ int t() ...@@ -10,6 +10,7 @@ int t()
break; break;
return i; return i;
} }
int
main () main ()
{ {
int i; int i;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
int a[1000]; int a[1000];
int b = 256; int b = 256;
int c = 257; int c = 257;
int
main () main ()
{ {
int i; int i;
......
...@@ -3,6 +3,7 @@ unsigned int a[1000]; ...@@ -3,6 +3,7 @@ unsigned int a[1000];
unsigned int b = 256; unsigned int b = 256;
unsigned int c = 1024; unsigned int c = 1024;
unsigned int d = 17; unsigned int d = 17;
int
main () main ()
{ {
int i; int i;
......
...@@ -3,6 +3,7 @@ unsigned int a[1000]; ...@@ -3,6 +3,7 @@ unsigned int a[1000];
unsigned int b = 257; unsigned int b = 257;
unsigned int c = 1023; unsigned int c = 1023;
unsigned int d = 19; unsigned int d = 19;
int
main () main ()
{ {
int i; int i;
......
...@@ -3,6 +3,7 @@ unsigned int a[1000]; ...@@ -3,6 +3,7 @@ unsigned int a[1000];
unsigned int b = 999; unsigned int b = 999;
unsigned int c = 1002; unsigned int c = 1002;
unsigned int d = 1003; unsigned int d = 1003;
int
main () main ()
{ {
int i; int i;
......
/* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */ /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */
int a[1000]; int a[1000];
int b=997; int b=997;
int
main() main()
{ {
int i; int i;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
char a[1000]; char a[1000];
char b[1000]; char b[1000];
int size=1000; int size=1000;
__attribute__ ((noinline)) __attribute__ ((noinline)) void
t(int size) t(int size)
{ {
__builtin_memcpy(a,b,size); __builtin_memcpy(a,b,size);
......
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