Commit 830976a1 by Marek Polacek Committed by Marek Polacek

20030731-1.c: Use -std=gnu89.

	* gcc.dg/tree-ssa/20030731-1.c: Use -std=gnu89.
	* gcc.dg/tree-ssa/20030729-1.c: Likewise.
	* gcc.dg/tree-ssa/20030807-8.c: Likewise.
	* gcc.dg/tree-ssa/20040326-1.c: Likewise.
	* gcc.dg/tree-ssa/vrp27.c: Likewise.
	* gcc.dg/tree-ssa/ssa-ccp-2.c: Likewise.
	* gcc.dg/tree-ssa/ssa-dom-thread-4.c: Likewise.
	* gcc.dg/tree-ssa/20040302-1.c: Likewise.
	* gcc.dg/tree-ssa/vrp09.c: Likewise.
	* gcc.dg/tree-ssa/inline-7.c: Likewise.
	* gcc.dg/tree-ssa/attr-alias.c: Likewise.
	* gcc.dg/tree-ssa/loadpre8.c: Likewise.
	* gcc.dg/tree-ssa/20041008-1.c: Likewise.
	* gcc.dg/tree-ssa/20030917-1.c: Likewise.
	* gcc.dg/tree-ssa/20030917-2.c: Likewise.
	* gcc.dg/tree-ssa/20030530-2.c: Add function declarations.
	* gcc.dg/tree-ssa/20030708-1.c: Likewise.
	* gcc.dg/tree-ssa/20030709-2.c: Likewise.
	* gcc.dg/tree-ssa/20030710-1.c: Likewise.
	* gcc.dg/tree-ssa/20030711-1.c: Likewise.
	* gcc.dg/tree-ssa/20030711-2.c: Likewise.
	* gcc.dg/tree-ssa/20030711-3.c: Likewise.
	* gcc.dg/tree-ssa/20030728-1.c: Likewise.
	* gcc.dg/tree-ssa/20030731-2.c: Likewise.
	* gcc.dg/tree-ssa/20030807-1.c: Likewise.
	* gcc.dg/tree-ssa/20030807-3.c: Likewise.
	* gcc.dg/tree-ssa/20030807-7.c: Likewise.
	* gcc.dg/tree-ssa/20030807-9.c: Likewise.
	* gcc.dg/tree-ssa/20030814-2.c: Likewise.
	* gcc.dg/tree-ssa/20030814-3.c: Likewise.
	* gcc.dg/tree-ssa/20030814-4.c: Likewise.
	* gcc.dg/tree-ssa/20030814-5.c: Likewise.
	* gcc.dg/tree-ssa/20030820-1.c: Likewise.
	* gcc.dg/tree-ssa/20030820-2.c: Likewise.
	* gcc.dg/tree-ssa/20030821-1.c: Likewise.
	* gcc.dg/tree-ssa/20031022-1.c: Likewise.
	* gcc.dg/tree-ssa/20040209-1.c: Likewise.
	* gcc.dg/tree-ssa/20040211-1.c: Likewise.
	* gcc.dg/tree-ssa/alias-13.c: Likewise.
	* gcc.dg/tree-ssa/alias-28.c: Likewise.
	* gcc.dg/tree-ssa/asm-3.c: Likewise.
	* gcc.dg/tree-ssa/coalesce-1.c: Likewise.
	* gcc.dg/tree-ssa/foldstring-1.c: Likewise.
	* gcc.dg/tree-ssa/forwprop-25.c: Likewise.
	* gcc.dg/tree-ssa/forwprop-26.c: Likewise.
	* gcc.dg/tree-ssa/isolate-3.c: Likewise.
	* gcc.dg/tree-ssa/isolate-5.c: Likewise.
	* gcc.dg/tree-ssa/loadpre7.c: Likewise.
	* gcc.dg/tree-ssa/pr22117.c: Likewise.
	* gcc.dg/tree-ssa/pr23744.c: Likewise.
	* gcc.dg/tree-ssa/pr24117.c: Likewise.
	* gcc.dg/tree-ssa/pr24840.c: Likewise.
	* gcc.dg/tree-ssa/pr25734.c: Likewise.
	* gcc.dg/tree-ssa/pr33723.c: Likewise.
	* gcc.dg/tree-ssa/pr33920.c: Likewise.
	* gcc.dg/tree-ssa/pr34146-2.c: Likewise.
	* gcc.dg/tree-ssa/pr34146.c: Likewise.
	* gcc.dg/tree-ssa/pr38385.c: Likewise.
	* gcc.dg/tree-ssa/pr49642-1.c: Likewise.
	* gcc.dg/tree-ssa/pr49642-2.c: Likewise.
	* gcc.dg/tree-ssa/pr59597.c: Likewise.
	* gcc.dg/tree-ssa/sra-1.c: Likewise.
	* gcc.dg/tree-ssa/sra-2.c: Likewise.
	* gcc.dg/tree-ssa/sra-5.c: Likewise.
	* gcc.dg/tree-ssa/sra-6.c: Likewise.
	* gcc.dg/tree-ssa/ssa-ccp-10.c: Likewise.
	* gcc.dg/tree-ssa/ssa-ccp-31.c: Likewise.
	* gcc.dg/tree-ssa/ssa-pre-14.c: Likewise.
	* gcc.dg/tree-ssa/ssa-pre-29.c: Likewise.
	* gcc.dg/tree-ssa/ssa-vrp-thread-1.c: Likewise.
	* gcc.dg/tree-ssa/vrp46.c: Likewise.
	* gcc.dg/tree-ssa/vrp56.c: Likewise.
	* gcc.dg/tree-ssa/vrp67.c: Likewise.
	* gcc.dg/tree-ssa/vrp72.c: Likewise.
	* gcc.dg/tree-ssa/vrp73.c: Likewise.
	* gcc.dg/tree-ssa/vrp75.c: Likewise.
	* gcc.dg/tree-ssa/20030611-1.c: Fix defaulting to int.
	* gcc.dg/tree-ssa/20030703-1.c: Likewise.
	* gcc.dg/tree-ssa/20030807-11.c: Likewise.
	* gcc.dg/tree-ssa/20030917-3.c: Likewise.
	* gcc.dg/tree-ssa/20040121-1.c: Likewise.
	* gcc.dg/tree-ssa/20040216-1.c: Likewise.
	* gcc.dg/tree-ssa/20040319-1.c: Likewise.
	* gcc.dg/tree-ssa/20040326-2.c: Likewise.
	* gcc.dg/tree-ssa/20040729-1.c: Likewise.
	* gcc.dg/tree-ssa/attr-alias-2.c: Likewise.
	* gcc.dg/tree-ssa/cunroll-1.c: Likewise.
	* gcc.dg/tree-ssa/cunroll-3.c: Likewise.
	* gcc.dg/tree-ssa/cunroll-5.c: Likewise.
	* gcc.dg/tree-ssa/foldconst-4.c: Likewise.
	* gcc.dg/tree-ssa/foldconst-5.c: Likewise.
	* gcc.dg/tree-ssa/ifc-4.c: Likewise.
	* gcc.dg/tree-ssa/ifc-6.c: Likewise.
	* gcc.dg/tree-ssa/inline-10.c: Likewise.
	* gcc.dg/tree-ssa/inline-9.c: Likewise.
	* gcc.dg/tree-ssa/ipa-cp-1.c: Likewise.
	* gcc.dg/tree-ssa/ipa-split-5.c: Likewise.
	* gcc.dg/tree-ssa/local-pure-const.c: Likewise.
	* gcc.dg/tree-ssa/nonzero-1.c: Likewise.
	* gcc.dg/tree-ssa/pr23434.c: Likewise.
	* gcc.dg/tree-ssa/pr33922.c: Likewise.
	* gcc.dg/tree-ssa/scev-3.c: Likewise.
	* gcc.dg/tree-ssa/scev-4.c: Likewise.
	* gcc.dg/tree-ssa/scev-5.c: Likewise.
	* gcc.dg/tree-ssa/ssa-dce-1.c: Likewise.
	* gcc.dg/tree-ssa/ssa-dse-4.c: Likewise.
	* gcc.dg/tree-ssa/ssa-dse-9.c: Likewise.
	* gcc.dg/tree-ssa/vrp01.c: Likewise.
	* gcc.dg/tree-ssa/vrp02.c: Likewise.
	* gcc.dg/tree-ssa/vrp03.c: Likewise.
	* gcc.dg/tree-ssa/vrp04.c: Likewise.
	* gcc.dg/tree-ssa/vrp05.c: Likewise.
	* gcc.dg/tree-ssa/vrp07.c: Likewise.
	* gcc.dg/tree-ssa/vrp08.c: Likewise.
	* gcc.dg/tree-ssa/vrp10.c: Likewise.
	* gcc.dg/tree-ssa/vrp11.c: Likewise.
	* gcc.dg/tree-ssa/vrp14.c: Likewise.
	* gcc.dg/tree-ssa/wholeprogram-1.c: Likewise.
	* gcc.dg/tree-ssa/writeonly.c: Likewise.
	* gcc.dg/tree-ssa/20030807-2.c: Add function declarations.  Fix
	defaulting to int.
	* gcc.dg/tree-ssa/20030814-1.c: Likewise.
	* gcc.dg/tree-ssa/20050719-1.c: Likewise.
	* gcc.dg/tree-ssa/20070302-1.c: Likewise.
	* gcc.dg/tree-ssa/builtin-expect-1.c: Likewise.
	* gcc.dg/tree-ssa/builtin-expect-2.c: Likewise.
	* gcc.dg/tree-ssa/builtin-expect-3.c: Likewise.
	* gcc.dg/tree-ssa/builtin-expect-4.c: Likewise.
	* gcc.dg/tree-ssa/builtin-expect-5.c: Likewise.
	* gcc.dg/tree-ssa/cunroll-2.c: Likewise.
	* gcc.dg/tree-ssa/cunroll-4.c: Likewise.
	* gcc.dg/tree-ssa/cunroll-9.c: Likewise.
	* gcc.dg/tree-ssa/foldconst-2.c: Likewise.
	* gcc.dg/tree-ssa/foldconst-3.c: Likewise.
	* gcc.dg/tree-ssa/forwprop-28.c: Likewise.
	* gcc.dg/tree-ssa/inline-5.c: Likewise.
	* gcc.dg/tree-ssa/inline-6.c: Likewise.
	* gcc.dg/tree-ssa/ipa-split-1.c: Likewise.
	* gcc.dg/tree-ssa/ipa-split-2.c: Likewise.
	* gcc.dg/tree-ssa/ivopts-2.c: Likewise.
	* gcc.dg/tree-ssa/ivopts-3.c: Likewise.
	* gcc.dg/tree-ssa/loop-20.c: Likewise.
	* gcc.dg/tree-ssa/loop-38.c: Likewise.
	* gcc.dg/tree-ssa/pr20913.c: Likewise.
	* gcc.dg/tree-ssa/pr21582.c: Likewise.
	* gcc.dg/tree-ssa/pr24670.c: Likewise.
	* gcc.dg/tree-ssa/ssa-ccp-12.c: Likewise.
	* gcc.dg/tree-ssa/vrp06.c: Likewise.
	* gcc.dg/tree-ssa/vrp12.c: Likewise.
	* gcc.dg/tree-ssa/vrp13.c: Likewise.
	* gcc.dg/tree-ssa/vrp23.c: Likewise.
	* gcc.dg/tree-ssa/vrp24.c: Likewise.
	* gcc.dg/tree-ssa/vrp25.c: Likewise.
	* gcc.dg/tree-ssa/vrp55.c: Likewise.
	* gcc.dg/tree-ssa/recip-6.c: Fix typo.

From-SVN: r215816
parent 091b2ce0
2014-10-02 Marek Polacek <polacek@redhat.com> 2014-10-02 Marek Polacek <polacek@redhat.com>
* gcc.dg/tree-ssa/20030731-1.c: Use -std=gnu89.
* gcc.dg/tree-ssa/20030729-1.c: Likewise.
* gcc.dg/tree-ssa/20030807-8.c: Likewise.
* gcc.dg/tree-ssa/20040326-1.c: Likewise.
* gcc.dg/tree-ssa/vrp27.c: Likewise.
* gcc.dg/tree-ssa/ssa-ccp-2.c: Likewise.
* gcc.dg/tree-ssa/ssa-dom-thread-4.c: Likewise.
* gcc.dg/tree-ssa/20040302-1.c: Likewise.
* gcc.dg/tree-ssa/vrp09.c: Likewise.
* gcc.dg/tree-ssa/inline-7.c: Likewise.
* gcc.dg/tree-ssa/attr-alias.c: Likewise.
* gcc.dg/tree-ssa/loadpre8.c: Likewise.
* gcc.dg/tree-ssa/20041008-1.c: Likewise.
* gcc.dg/tree-ssa/20030917-1.c: Likewise.
* gcc.dg/tree-ssa/20030917-2.c: Likewise.
* gcc.dg/tree-ssa/20030530-2.c: Add function declarations.
* gcc.dg/tree-ssa/20030708-1.c: Likewise.
* gcc.dg/tree-ssa/20030709-2.c: Likewise.
* gcc.dg/tree-ssa/20030710-1.c: Likewise.
* gcc.dg/tree-ssa/20030711-1.c: Likewise.
* gcc.dg/tree-ssa/20030711-2.c: Likewise.
* gcc.dg/tree-ssa/20030711-3.c: Likewise.
* gcc.dg/tree-ssa/20030728-1.c: Likewise.
* gcc.dg/tree-ssa/20030731-2.c: Likewise.
* gcc.dg/tree-ssa/20030807-1.c: Likewise.
* gcc.dg/tree-ssa/20030807-3.c: Likewise.
* gcc.dg/tree-ssa/20030807-7.c: Likewise.
* gcc.dg/tree-ssa/20030807-9.c: Likewise.
* gcc.dg/tree-ssa/20030814-2.c: Likewise.
* gcc.dg/tree-ssa/20030814-3.c: Likewise.
* gcc.dg/tree-ssa/20030814-4.c: Likewise.
* gcc.dg/tree-ssa/20030814-5.c: Likewise.
* gcc.dg/tree-ssa/20030820-1.c: Likewise.
* gcc.dg/tree-ssa/20030820-2.c: Likewise.
* gcc.dg/tree-ssa/20030821-1.c: Likewise.
* gcc.dg/tree-ssa/20031022-1.c: Likewise.
* gcc.dg/tree-ssa/20040209-1.c: Likewise.
* gcc.dg/tree-ssa/20040211-1.c: Likewise.
* gcc.dg/tree-ssa/alias-13.c: Likewise.
* gcc.dg/tree-ssa/alias-28.c: Likewise.
* gcc.dg/tree-ssa/asm-3.c: Likewise.
* gcc.dg/tree-ssa/coalesce-1.c: Likewise.
* gcc.dg/tree-ssa/foldstring-1.c: Likewise.
* gcc.dg/tree-ssa/forwprop-25.c: Likewise.
* gcc.dg/tree-ssa/forwprop-26.c: Likewise.
* gcc.dg/tree-ssa/isolate-3.c: Likewise.
* gcc.dg/tree-ssa/isolate-5.c: Likewise.
* gcc.dg/tree-ssa/loadpre7.c: Likewise.
* gcc.dg/tree-ssa/pr22117.c: Likewise.
* gcc.dg/tree-ssa/pr23744.c: Likewise.
* gcc.dg/tree-ssa/pr24117.c: Likewise.
* gcc.dg/tree-ssa/pr24840.c: Likewise.
* gcc.dg/tree-ssa/pr25734.c: Likewise.
* gcc.dg/tree-ssa/pr33723.c: Likewise.
* gcc.dg/tree-ssa/pr33920.c: Likewise.
* gcc.dg/tree-ssa/pr34146-2.c: Likewise.
* gcc.dg/tree-ssa/pr34146.c: Likewise.
* gcc.dg/tree-ssa/pr38385.c: Likewise.
* gcc.dg/tree-ssa/pr49642-1.c: Likewise.
* gcc.dg/tree-ssa/pr49642-2.c: Likewise.
* gcc.dg/tree-ssa/pr59597.c: Likewise.
* gcc.dg/tree-ssa/sra-1.c: Likewise.
* gcc.dg/tree-ssa/sra-2.c: Likewise.
* gcc.dg/tree-ssa/sra-5.c: Likewise.
* gcc.dg/tree-ssa/sra-6.c: Likewise.
* gcc.dg/tree-ssa/ssa-ccp-10.c: Likewise.
* gcc.dg/tree-ssa/ssa-ccp-31.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-14.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-29.c: Likewise.
* gcc.dg/tree-ssa/ssa-vrp-thread-1.c: Likewise.
* gcc.dg/tree-ssa/vrp46.c: Likewise.
* gcc.dg/tree-ssa/vrp56.c: Likewise.
* gcc.dg/tree-ssa/vrp67.c: Likewise.
* gcc.dg/tree-ssa/vrp72.c: Likewise.
* gcc.dg/tree-ssa/vrp73.c: Likewise.
* gcc.dg/tree-ssa/vrp75.c: Likewise.
* gcc.dg/tree-ssa/20030611-1.c: Fix defaulting to int.
* gcc.dg/tree-ssa/20030703-1.c: Likewise.
* gcc.dg/tree-ssa/20030807-11.c: Likewise.
* gcc.dg/tree-ssa/20030917-3.c: Likewise.
* gcc.dg/tree-ssa/20040121-1.c: Likewise.
* gcc.dg/tree-ssa/20040216-1.c: Likewise.
* gcc.dg/tree-ssa/20040319-1.c: Likewise.
* gcc.dg/tree-ssa/20040326-2.c: Likewise.
* gcc.dg/tree-ssa/20040729-1.c: Likewise.
* gcc.dg/tree-ssa/attr-alias-2.c: Likewise.
* gcc.dg/tree-ssa/cunroll-1.c: Likewise.
* gcc.dg/tree-ssa/cunroll-3.c: Likewise.
* gcc.dg/tree-ssa/cunroll-5.c: Likewise.
* gcc.dg/tree-ssa/foldconst-4.c: Likewise.
* gcc.dg/tree-ssa/foldconst-5.c: Likewise.
* gcc.dg/tree-ssa/ifc-4.c: Likewise.
* gcc.dg/tree-ssa/ifc-6.c: Likewise.
* gcc.dg/tree-ssa/inline-10.c: Likewise.
* gcc.dg/tree-ssa/inline-9.c: Likewise.
* gcc.dg/tree-ssa/ipa-cp-1.c: Likewise.
* gcc.dg/tree-ssa/ipa-split-5.c: Likewise.
* gcc.dg/tree-ssa/local-pure-const.c: Likewise.
* gcc.dg/tree-ssa/nonzero-1.c: Likewise.
* gcc.dg/tree-ssa/pr23434.c: Likewise.
* gcc.dg/tree-ssa/pr33922.c: Likewise.
* gcc.dg/tree-ssa/scev-3.c: Likewise.
* gcc.dg/tree-ssa/scev-4.c: Likewise.
* gcc.dg/tree-ssa/scev-5.c: Likewise.
* gcc.dg/tree-ssa/ssa-dce-1.c: Likewise.
* gcc.dg/tree-ssa/ssa-dse-4.c: Likewise.
* gcc.dg/tree-ssa/ssa-dse-9.c: Likewise.
* gcc.dg/tree-ssa/vrp01.c: Likewise.
* gcc.dg/tree-ssa/vrp02.c: Likewise.
* gcc.dg/tree-ssa/vrp03.c: Likewise.
* gcc.dg/tree-ssa/vrp04.c: Likewise.
* gcc.dg/tree-ssa/vrp05.c: Likewise.
* gcc.dg/tree-ssa/vrp07.c: Likewise.
* gcc.dg/tree-ssa/vrp08.c: Likewise.
* gcc.dg/tree-ssa/vrp10.c: Likewise.
* gcc.dg/tree-ssa/vrp11.c: Likewise.
* gcc.dg/tree-ssa/vrp14.c: Likewise.
* gcc.dg/tree-ssa/wholeprogram-1.c: Likewise.
* gcc.dg/tree-ssa/writeonly.c: Likewise.
* gcc.dg/tree-ssa/20030807-2.c: Add function declarations. Fix
defaulting to int.
* gcc.dg/tree-ssa/20030814-1.c: Likewise.
* gcc.dg/tree-ssa/20050719-1.c: Likewise.
* gcc.dg/tree-ssa/20070302-1.c: Likewise.
* gcc.dg/tree-ssa/builtin-expect-1.c: Likewise.
* gcc.dg/tree-ssa/builtin-expect-2.c: Likewise.
* gcc.dg/tree-ssa/builtin-expect-3.c: Likewise.
* gcc.dg/tree-ssa/builtin-expect-4.c: Likewise.
* gcc.dg/tree-ssa/builtin-expect-5.c: Likewise.
* gcc.dg/tree-ssa/cunroll-2.c: Likewise.
* gcc.dg/tree-ssa/cunroll-4.c: Likewise.
* gcc.dg/tree-ssa/cunroll-9.c: Likewise.
* gcc.dg/tree-ssa/foldconst-2.c: Likewise.
* gcc.dg/tree-ssa/foldconst-3.c: Likewise.
* gcc.dg/tree-ssa/forwprop-28.c: Likewise.
* gcc.dg/tree-ssa/inline-5.c: Likewise.
* gcc.dg/tree-ssa/inline-6.c: Likewise.
* gcc.dg/tree-ssa/ipa-split-1.c: Likewise.
* gcc.dg/tree-ssa/ipa-split-2.c: Likewise.
* gcc.dg/tree-ssa/ivopts-2.c: Likewise.
* gcc.dg/tree-ssa/ivopts-3.c: Likewise.
* gcc.dg/tree-ssa/loop-20.c: Likewise.
* gcc.dg/tree-ssa/loop-38.c: Likewise.
* gcc.dg/tree-ssa/pr20913.c: Likewise.
* gcc.dg/tree-ssa/pr21582.c: Likewise.
* gcc.dg/tree-ssa/pr24670.c: Likewise.
* gcc.dg/tree-ssa/ssa-ccp-12.c: Likewise.
* gcc.dg/tree-ssa/vrp06.c: Likewise.
* gcc.dg/tree-ssa/vrp12.c: Likewise.
* gcc.dg/tree-ssa/vrp13.c: Likewise.
* gcc.dg/tree-ssa/vrp23.c: Likewise.
* gcc.dg/tree-ssa/vrp24.c: Likewise.
* gcc.dg/tree-ssa/vrp25.c: Likewise.
* gcc.dg/tree-ssa/vrp55.c: Likewise.
* gcc.dg/tree-ssa/recip-6.c: Fix typo.
2014-10-02 Marek Polacek <polacek@redhat.com>
* gcc.dg/tm/20091013.c: Fix defaulting to int. * gcc.dg/tm/20091013.c: Fix defaulting to int.
* gcc.dg/tm/20091221.c: Likewise. * gcc.dg/tm/20091221.c: Likewise.
* gcc.dg/tm/debug-1.c: Likewise. * gcc.dg/tm/debug-1.c: Likewise.
......
...@@ -7,6 +7,7 @@ typedef struct rs6000_stack { ...@@ -7,6 +7,7 @@ typedef struct rs6000_stack {
} rs6000_stack_t; } rs6000_stack_t;
extern char regs_ever_live[113]; extern char regs_ever_live[113];
extern rs6000_stack_t *rs6000_stack_info (void); extern rs6000_stack_t *rs6000_stack_info (void);
extern void gen_rtx_REG (int);
void void
rs6000_emit_prologue (int i, rs6000_stack_t *info) rs6000_emit_prologue (int i, rs6000_stack_t *info)
{ {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2" } */
extern int square (int) __attribute__ ((__const__)); extern int square (int) __attribute__ ((__const__));
int
shit(int a) shit(int a)
{ {
return square (a) + square (a); return square (a) + square (a);
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
extern void abort (void); extern void abort (void);
extern int blah[]; extern int blah[];
void
foo(int index) foo(int index)
{ {
if (blah [(unsigned int)index] != 0) if (blah [(unsigned int)index] != 0)
......
...@@ -17,6 +17,8 @@ struct rtx_def ...@@ -17,6 +17,8 @@ struct rtx_def
enum rtx_code code:16; enum rtx_code code:16;
}; };
extern void blah (rtx *);
int int
nonlocal_mentioned_p (x) nonlocal_mentioned_p (x)
rtx x; rtx x;
......
...@@ -27,6 +27,7 @@ union tree_node ...@@ -27,6 +27,7 @@ union tree_node
{ {
struct tree_decl decl; struct tree_decl decl;
}; };
int make_decl_rtl (tree, int);
void * void *
get_alias_set (t) get_alias_set (t)
tree t; tree t;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2" } */
extern void abort (void); extern void abort (void);
extern void blah (void);
union tree_node; union tree_node;
typedef union tree_node *tree; typedef union tree_node *tree;
struct tree_vec struct tree_vec
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2" } */
extern void abort (void); extern void abort (void);
extern void blah (void);
union tree_node; union tree_node;
typedef union tree_node *tree; typedef union tree_node *tree;
......
...@@ -31,6 +31,7 @@ union tree_node ...@@ -31,6 +31,7 @@ union tree_node
{ {
struct tree_decl decl; struct tree_decl decl;
}; };
void make_decl_rtl (tree, int);
long long
get_alias_set (t,z) get_alias_set (t,z)
tree t; tree t;
......
...@@ -31,6 +31,7 @@ union tree_node ...@@ -31,6 +31,7 @@ union tree_node
{ {
struct tree_decl decl; struct tree_decl decl;
}; };
int make_decl_rtl (tree, void *);
long long
get_alias_set (t) get_alias_set (t)
tree t; tree t;
......
...@@ -16,17 +16,13 @@ struct tree_common ...@@ -16,17 +16,13 @@ struct tree_common
enum tree_code code:8; enum tree_code code:8;
}; };
union tree_node union tree_node
{ {
struct tree_common common; struct tree_common common;
}; };
int foo (int);
int get_alias_set (tree);
int int
objects_must_conflict_p (t1, t2) objects_must_conflict_p (t1, t2)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2 -std=gnu89" } */
extern void abort (void); extern void abort (void);
union tree_node; union tree_node;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2 -std=gnu89" } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dce1" } */ /* { dg-options "-O2 -fdump-tree-dce1" } */
void foo (void);
void void
bar (int i, int partial, int args_addr) bar (int i, int partial, int args_addr)
{ {
......
...@@ -22,6 +22,7 @@ struct rtx_def ...@@ -22,6 +22,7 @@ struct rtx_def
static int *uid_cuid; static int *uid_cuid;
static int max_uid_cuid; static int max_uid_cuid;
int insn_cuid (rtx);
rtx rtx
bar (rtx r) bar (rtx r)
......
...@@ -8,6 +8,7 @@ struct rtx_def ...@@ -8,6 +8,7 @@ struct rtx_def
{ {
int code; int code;
}; };
void
foo (reg) foo (reg)
rtx reg; rtx reg;
{ {
......
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
/* { dg-options "-O1 -ftree-vrp -fdump-tree-dom2" } */ /* { dg-options "-O1 -ftree-vrp -fdump-tree-dom2" } */
extern void abort (void); extern void abort (void);
extern void bitmap_clear (int *);
extern void bar (int *);
void
oof () oof ()
{ {
int live_head; int live_head;
...@@ -12,6 +15,7 @@ oof () ...@@ -12,6 +15,7 @@ oof ()
bitmap_clear (live); bitmap_clear (live);
} }
void
foo(int n) foo(int n)
{ {
int *space = (int *)__builtin_alloca (n); int *space = (int *)__builtin_alloca (n);
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2" } */
typedef unsigned int cppchar_t; typedef unsigned int cppchar_t;
void foo (void);
cppchar_t oof (void);
cppchar_t cppchar_t
cpp_parse_escape (pstr, limit, wide) cpp_parse_escape (pstr, limit, wide)
const unsigned char **pstr; const unsigned char **pstr;
......
...@@ -18,6 +18,7 @@ union tree_node ...@@ -18,6 +18,7 @@ union tree_node
struct tree_common common; struct tree_common common;
struct tree_list list; struct tree_list list;
}; };
void c_simplify_stmt (tree *);
void void
simplify_condition (cond_p) simplify_condition (cond_p)
tree *cond_p; tree *cond_p;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2 -std=gnu89" } */
struct die_struct; struct die_struct;
typedef struct die_struct *dw_die_ref; typedef struct die_struct *dw_die_ref;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2" } */
void oof (const char *);
void foo (void);
static void static void
bar () bar ()
{ {
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2" } */
extern void abort (void); extern void abort (void);
extern void oof (int);
int
com(int *blah) com(int *blah)
{ {
int z = *blah; int z = *blah;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2" } */
extern void abort (void); extern void abort (void);
extern void blah (void);
void void
foo (int value) foo (int value)
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2" } */
extern void abort (void); extern void abort (void);
extern void blah (void);
void void
foo (int value) foo (int value)
......
...@@ -18,6 +18,7 @@ union tree_node ...@@ -18,6 +18,7 @@ union tree_node
struct tree_common common; struct tree_common common;
struct tree_decl decl; struct tree_decl decl;
}; };
void record_alias_subset (long);
long long
blah (decl, set) blah (decl, set)
tree decl; tree decl;
......
...@@ -18,6 +18,8 @@ union tree_node ...@@ -18,6 +18,8 @@ union tree_node
struct tree_common common; struct tree_common common;
struct tree_decl decl; struct tree_decl decl;
}; };
long oof (void);
void record_alias_subset (long);
long long
blah (decl, set) blah (decl, set)
tree decl; tree decl;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
/* A test for unreachable blocks removal -- bind_expr whose entry is /* A test for unreachable blocks removal -- bind_expr whose entry is
unreachable, but it contains reachable statements. */ unreachable, but it contains reachable statements. */
void bar (void);
void foo(void) void foo(void)
{ {
if (1) if (1)
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
/* A test for variables getting out of their scope in copy propagation. */ /* A test for variables getting out of their scope in copy propagation. */
void bla (int);
int bar (void);
void foo(void) void foo(void)
{ {
int k; int k;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom1 -fdump-tree-optimized" } */ /* { dg-options "-O1 -fdump-tree-dom1 -fdump-tree-optimized" } */
void dont_remove (void);
void foo(int k) void foo(int k)
{ {
int i = 1; int i = 1;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-options "-O2 -fdump-tree-optimized -std=gnu89" } */
extern int board[]; extern int board[];
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
was never renamed. */ was never renamed. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O -ftree-dominator-opts" } */ /* { dg-options "-O -ftree-dominator-opts -std=gnu89" } */
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
typedef union tree_node *tree; typedef union tree_node *tree;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
extern int printf (const char *, ...); extern int printf (const char *, ...);
int
main () main ()
{ {
int variable = 0; int variable = 0;
......
...@@ -10,6 +10,8 @@ typedef struct basic_block_def ...@@ -10,6 +10,8 @@ typedef struct basic_block_def
edge pred; edge pred;
} *basic_block; } *basic_block;
extern struct basic_block_def entry_exit_blocks[2]; extern struct basic_block_def entry_exit_blocks[2];
void commit_edge_insertions (void);
void foo (edge);
void void
blah (int arf) blah (int arf)
{ {
......
...@@ -19,6 +19,7 @@ char *bar(char *first, char *last) ...@@ -19,6 +19,7 @@ char *bar(char *first, char *last)
return foo(first, last); return foo(first, last);
return 0; return 0;
} }
int
main() { main() {
char *p = "a", *q = "b"; char *p = "a", *q = "b";
if (p) if (p)
......
...@@ -22,6 +22,8 @@ union tree_node ...@@ -22,6 +22,8 @@ union tree_node
}; };
int pedantic; int pedantic;
void foo (tree);
void bar1 (tree *);
void void
finish_struct (tree t, tree fieldlist, tree attributes) finish_struct (tree t, tree fieldlist, tree attributes)
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
struct rtx_def; struct rtx_def;
typedef struct rtx_def *rtx; typedef struct rtx_def *rtx;
extern const char rtx_class[]; extern const char rtx_class[];
void foo (void);
union rtunion_def union rtunion_def
{ {
rtx rtx; rtx rtx;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dse1-details" } */ /* { dg-options "-O1 -fdump-tree-dse1-details" } */
int
foo(int *z, int *y, int xx) foo(int *z, int *y, int xx)
{ {
*z = 1; *z = 1;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1" } */ /* { dg-options "-O1 -std=gnu89" } */
/* Test for .GLOBAL_VAR not being renamed into SSA after alias analysis. /* Test for .GLOBAL_VAR not being renamed into SSA after alias analysis.
provided by Dale Johannesen in PR 14266. */ provided by Dale Johannesen in PR 14266. */
......
...@@ -18,6 +18,7 @@ void foo (struct bar *b) ...@@ -18,6 +18,7 @@ void foo (struct bar *b)
abort (); abort ();
} }
int
main () main ()
{ {
struct bar x; struct bar x;
......
/* { dg-options "-O2 -fno-inline-functions" } */ /* { dg-options "-O2 -fno-inline-functions -std=gnu89" } */
/* { dg-do run } */ /* { dg-do run } */
/* When there are no call-clobbered variables, we should still create /* When there are no call-clobbered variables, we should still create
a .GLOBAL_VAR to model the side effects of functions. Without it, a .GLOBAL_VAR to model the side effects of functions. Without it,
......
...@@ -39,6 +39,7 @@ baz (void) ...@@ -39,6 +39,7 @@ baz (void)
fnptr B[2] = { baz, boz }; fnptr B[2] = { baz, boz };
int
main () main ()
{ {
int b, c; int b, c;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dce2" } */ /* { dg-options "-O1 -fdump-tree-dce2" } */
int
foo () foo ()
{ {
volatile int *p; volatile int *p;
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2 -std=gnu89" } */
struct A { struct A {
int x; int x;
......
...@@ -5,6 +5,7 @@ extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ...@@ -5,6 +5,7 @@ extern void abort (void) __attribute__ ((__nothrow__)) __attribute__
((__noreturn__)); ((__noreturn__));
extern void exit (int __status) __attribute__ ((__nothrow__)) extern void exit (int __status) __attribute__ ((__nothrow__))
__attribute__ ((__noreturn__)); __attribute__ ((__noreturn__));
int useboot (void *);
struct bootLoader { struct bootLoader {
int x; int x;
...@@ -31,6 +32,7 @@ useboot (void *boot) ...@@ -31,6 +32,7 @@ useboot (void *boot)
abort (); abort ();
} }
int
main() main()
{ {
zap (0); zap (0);
......
/* { dg-do link } */ /* { dg-do link } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
void link_error (void);
struct A struct A
{ {
int x; int x;
...@@ -39,6 +41,7 @@ float foo (int i) ...@@ -39,6 +41,7 @@ float foo (int i)
link_error (); link_error ();
} }
int
main(int argc, char **argv) main(int argc, char **argv)
{ {
foo (argc); foo (argc);
......
/* { dg-do link } */ /* { dg-do link } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
void link_failure (void);
struct a struct a
{ {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O3" } */ /* { dg-options "-O3" } */
extern void abort (void); extern void abort (void);
extern void __link_error (void);
extern void *malloc(__SIZE_TYPE__); extern void *malloc(__SIZE_TYPE__);
int * __attribute__((noinline,noclone)) int * __attribute__((noinline,noclone))
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
#endif #endif
#endif #endif
void foo (int);
void bar (int);
static inline int source(void) static inline int source(void)
{ {
register int hardreg __asm__(REGISTER); register int hardreg __asm__(REGISTER);
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
/* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-options "-O2 -fdump-tree-optimized" } */
static int a=4; static int a=4;
static int b __attribute__ ((alias("a"))); static int b __attribute__ ((alias("a")));
int
main() main()
{ {
return b+a; return b+a;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-alias "" } */ /* { dg-require-alias "" } */
/* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-options "-O2 -fdump-tree-optimized -std=gnu89" } */
void abort (void); void abort (void);
__attribute__ ((weak)) __attribute__ ((weak))
int test() int test()
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-gimple" } */ /* { dg-options "-O2 -fdump-tree-gimple" } */
void g (void);
void
f (int i, float j, int i2, float j2) f (int i, float j, int i2, float j2)
{ {
if (__builtin_expect ((i * i2) > 0 && (j * j2), 0)) if (__builtin_expect ((i * i2) > 0 && (j * j2), 0))
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-gimple" } */ /* { dg-options "-O2 -fdump-tree-gimple" } */
void g (void);
void
f (int i, float j, int i2, float j2) f (int i, float j, int i2, float j2)
{ {
if (__builtin_expect ((i * i2) > 0 || (j * j2), 0)) if (__builtin_expect ((i * i2) > 0 || (j * j2), 0))
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-gimple" } */ /* { dg-options "-O2 -fdump-tree-gimple" } */
void a (void);
void b (void);
void
f (int i, float j, int i2, float j2) f (int i, float j, int i2, float j2)
{ {
if (__builtin_expect ((i * i2) > 0 && (j * j2), 0)) if (__builtin_expect ((i * i2) > 0 && (j * j2), 0))
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-gimple" } */ /* { dg-options "-O2 -fdump-tree-gimple" } */
void a (void);
void b (void);
void
f (int i, float j, int i2, float j2) f (int i, float j, int i2, float j2)
{ {
if (__builtin_expect ((i * i2) > 0 || (j * j2), 0)) if (__builtin_expect ((i * i2) > 0 || (j * j2), 0))
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-forwprop" } */ /* { dg-options "-O2 -fdump-tree-forwprop" } */
void a (void);
void b (void);
void
f (int i, float j, int i2, float j2) f (int i, float j, int i2, float j2)
{ {
if (__builtin_expect ((i * i2) > 0 && __builtin_expect ((j * j2) != 0, 1), 0)) if (__builtin_expect ((i * i2) > 0 && __builtin_expect ((j * j2) != 0, 1), 0))
......
...@@ -103,6 +103,7 @@ union gimple_statement_d ...@@ -103,6 +103,7 @@ union gimple_statement_d
struct gimple_statement_phi gimple_phi; struct gimple_statement_phi gimple_phi;
}; };
extern size_t const gimple_ops_offset_[]; extern size_t const gimple_ops_offset_[];
int gimple_statement_structure (gimple);
static __inline__ tree * static __inline__ tree *
gimple_ops (gimple gs) gimple_ops (gimple gs)
{ {
...@@ -155,6 +156,8 @@ struct switch_conv_info ...@@ -155,6 +156,8 @@ struct switch_conv_info
tree *default_values; tree *default_values;
}; };
static struct switch_conv_info info; static struct switch_conv_info info;
void gsi_next (gimple_stmt_iterator *);
int gsi_gsi_start_phis (basic_block);
static void static void
gather_default_values (tree default_case) gather_default_values (tree default_case)
...@@ -178,6 +181,8 @@ gather_default_values (tree default_case) ...@@ -178,6 +181,8 @@ gather_default_values (tree default_case)
} }
} }
unsigned int gimple_switch_num_labels (gimple);
unsigned char unsigned char
process_switch (gimple swtch) process_switch (gimple swtch)
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-cunrolli-details" } */ /* { dg-options "-O3 -fdump-tree-cunrolli-details" } */
int a[2]; int a[2];
void
test(int c) test(int c)
{ {
int i; int i;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-cunroll-details" } */ /* { dg-options "-O3 -fdump-tree-cunroll-details" } */
int a[2]; int a[2];
int test2 (void);
void
test(int c) test(int c)
{ {
int i; int i;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-cunrolli-details" } */ /* { dg-options "-O2 -fdump-tree-cunrolli-details" } */
int a[1]; int a[1];
void
test(int c) test(int c)
{ {
int i; int i;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-ivcanon-details" } */ /* { dg-options "-O3 -fdump-tree-ivcanon-details" } */
int a[1]; int a[1];
void test2 (void);
void
test(int c) test(int c)
{ {
int i=0,j; int i=0,j;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-cunroll-details -fno-tree-vectorize" } */ /* { dg-options "-O3 -fdump-tree-cunroll-details -fno-tree-vectorize" } */
int *a; int *a;
void
test(int c) test(int c)
{ {
int i; int i;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-cunrolli-details" } */ /* { dg-options "-O2 -fdump-tree-cunrolli-details" } */
void abort (void); void abort (void);
int q (void);
int a[10]; int a[10];
int b[11]; int b[11];
int
t (int n) t (int n)
{ {
int i; int i;
......
...@@ -25,6 +25,8 @@ enum tree_index ...@@ -25,6 +25,8 @@ enum tree_index
TI_CURRENT_TARGET_PRAGMA, TI_CURRENT_OPTIMIZE_PRAGMA, TI_MAX TI_CURRENT_TARGET_PRAGMA, TI_CURRENT_OPTIMIZE_PRAGMA, TI_MAX
}; };
extern tree global_trees[TI_MAX]; extern tree global_trees[TI_MAX];
void fancy_abort (const char *file, int line, const char *function);
void
emit_support_tinfos (void) emit_support_tinfos (void)
{ {
static tree *const fundamentals[] = { static tree *const fundamentals[] = {
......
...@@ -31,7 +31,9 @@ union tree_node ...@@ -31,7 +31,9 @@ union tree_node
}; };
const enum tree_code_class tree_code_type[] = const enum tree_code_class tree_code_type[] =
{ tcc_exceptional, 1, 0, 0, 0, 0, 2, }; { tcc_exceptional, 1, 0, 0, 0, 0, 2, };
extern void tree_class_check_failed (const_tree, const char *);
void
int_fits_type_p (const_tree c, const_tree type) int_fits_type_p (const_tree c, const_tree type)
{ {
double_int dc, dd; double_int dc, dd;
......
...@@ -5,6 +5,7 @@ struct a {int a,b;}; ...@@ -5,6 +5,7 @@ struct a {int a,b;};
const static struct a a; const static struct a a;
static int b[10]; static int b[10];
int c; int c;
int
test() test()
{ {
return a.a+b[c]; return a.a+b[c];
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
static const char a[5]="t"; static const char a[5]="t";
static const int b[5]={1,2}; static const int b[5]={1,2};
static const struct a {int a : 6; int b : 6;} c = {5,9}; static const struct a {int a : 6; int b : 6;} c = {5,9};
int
test() test()
{ {
return a[2]+b[1]+b[3]+c.b; return a[2]+b[1]+b[3]+c.b;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-gimple" } */ /* { dg-options "-O1 -fdump-tree-gimple" } */
void blah (void);
void void
arf () arf ()
{ {
......
...@@ -22,6 +22,7 @@ struct rtx_def ...@@ -22,6 +22,7 @@ struct rtx_def
{ {
__extension__ enum machine_mode mode:8; __extension__ enum machine_mode mode:8;
}; };
void fancy_abort (const char *, int, const char *);
void void
convert_move (rtx to, rtx from, int unsignedp) convert_move (rtx to, rtx from, int unsignedp)
{ {
......
...@@ -48,6 +48,8 @@ varpool_externally_visible_p (struct varpool_node *vnode, ...@@ -48,6 +48,8 @@ varpool_externally_visible_p (struct varpool_node *vnode,
return 0; return 0;
} }
unsigned char pointer_set_contains (struct pointer_set_t *, struct varpool_node *);
unsigned int unsigned int
function_and_variable_visibility (unsigned char whole_program) function_and_variable_visibility (unsigned char whole_program)
{ {
......
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
extern char *frob (void); extern char *frob (void);
extern _Bool testit (void); extern _Bool testit (void);
extern void oof (void);
void
test (int code) test (int code)
{ {
char *temp = frob (); char *temp = frob ();
...@@ -14,6 +16,7 @@ test (int code) ...@@ -14,6 +16,7 @@ test (int code)
oof (); oof ();
} }
void
test_2 (int code) test_2 (int code)
{ {
char *temp = frob (); char *temp = frob ();
...@@ -22,7 +25,7 @@ test_2 (int code) ...@@ -22,7 +25,7 @@ test_2 (int code)
oof (); oof ();
} }
void
test_3 (int code) test_3 (int code)
{ {
char *temp = frob (); char *temp = frob ();
...@@ -31,7 +34,7 @@ test_3 (int code) ...@@ -31,7 +34,7 @@ test_3 (int code)
oof (); oof ();
} }
void
test_4 (int code) test_4 (int code)
{ {
char *temp = frob (); char *temp = frob ();
...@@ -40,7 +43,7 @@ test_4 (int code) ...@@ -40,7 +43,7 @@ test_4 (int code)
oof (); oof ();
} }
void
test_5 (int code) test_5 (int code)
{ {
_Bool temp = testit (); _Bool temp = testit ();
...@@ -49,6 +52,7 @@ test_5 (int code) ...@@ -49,6 +52,7 @@ test_5 (int code)
oof (); oof ();
} }
void
test_6 (int code) test_6 (int code)
{ {
_Bool temp = testit (); _Bool temp = testit ();
...@@ -57,7 +61,7 @@ test_6 (int code) ...@@ -57,7 +61,7 @@ test_6 (int code)
oof (); oof ();
} }
void
test_7 (int code) test_7 (int code)
{ {
_Bool temp = testit (); _Bool temp = testit ();
...@@ -66,7 +70,7 @@ test_7 (int code) ...@@ -66,7 +70,7 @@ test_7 (int code)
oof (); oof ();
} }
void
test_8 (int code) test_8 (int code)
{ {
_Bool temp = testit (); _Bool temp = testit ();
......
...@@ -26,6 +26,7 @@ struct cpp_reader ...@@ -26,6 +26,7 @@ struct cpp_reader
{ {
struct ht *hash_table; struct ht *hash_table;
}; };
void
create_iso_definition (cpp_reader *pfile, cpp_macro *macro) create_iso_definition (cpp_reader *pfile, cpp_macro *macro)
{ {
unsigned int num_extra_tokens = 0; unsigned int num_extra_tokens = 0;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-c -O2 -ftree-vectorize" { target *-*-* } } */ /* { dg-options "-c -O2 -ftree-vectorize" { target *-*-* } } */
static int x; static int x;
void
foo (int n, int *A) foo (int n, int *A)
{ {
int i; int i;
......
...@@ -22,6 +22,7 @@ int do_something (int size) ...@@ -22,6 +22,7 @@ int do_something (int size)
do_something_big (size); do_something_big (size);
} }
extern int n; extern int n;
int
main() main()
{ {
do_something (2); do_something (2);
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
/* { dg-options "-Os -fdump-tree-optimized" } */ /* { dg-options "-Os -fdump-tree-optimized" } */
struct a {int a,b,c,d,e,f;}; struct a {int a,b,c,d,e,f;};
void do_something (struct a *);
void
do_inc (struct a *a) do_inc (struct a *a)
{ {
a->a=a->b; a->a=a->b;
...@@ -10,6 +13,7 @@ do_inc (struct a *a) ...@@ -10,6 +13,7 @@ do_inc (struct a *a)
a->e=a->f; a->e=a->f;
} }
void
test(struct a *a) test(struct a *a)
{ {
do_inc (a); do_inc (a);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-Os -fdump-tree-optimized" } */ /* { dg-options "-Os -fdump-tree-optimized" } */
struct a {int a,b,c,d,e,f,g,h,i,j;}; struct a {int a,b,c,d,e,f,g,h,i,j;};
void do_something (struct a *);
void
do_inc (struct a *a) do_inc (struct a *a)
{ {
a->a=1; a->a=1;
...@@ -15,6 +17,7 @@ do_inc (struct a *a) ...@@ -15,6 +17,7 @@ do_inc (struct a *a)
a->j=5; a->j=5;
} }
void
test(struct a *a) test(struct a *a)
{ {
do_inc (a); do_inc (a);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-einline" } */ /* { dg-options "-O -fdump-tree-einline -std=gnu89" } */
void foo0(); void foo0();
inline void bar0() { foo0(); } inline void bar0() { foo0(); }
......
...@@ -14,6 +14,7 @@ int t(int a) ...@@ -14,6 +14,7 @@ int t(int a)
q(a+10); q(a+10);
} }
int
main() main()
{ {
t(5); t(5);
......
...@@ -11,6 +11,7 @@ very_long_function(int a) ...@@ -11,6 +11,7 @@ very_long_function(int a)
return 2 * -a + very_long_function (a)/4; return 2 * -a + very_long_function (a)/4;
} }
int
blah () blah ()
{ {
very_long_function (1); very_long_function (1);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-fnsplit" } */ /* { dg-options "-O3 -fdump-tree-fnsplit" } */
int test2(a)
void do_something_big (void);
int test2(int a)
{ {
if (a<100) if (a<100)
return 1; return 1;
...@@ -20,6 +23,7 @@ int test2(a) ...@@ -20,6 +23,7 @@ int test2(a)
return 0; return 0;
} }
void
test() test()
{ {
test2(10); test2(10);
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
int b; int b;
int c; int c;
int d; int d;
void long_function (int);
void
split_me(int a) split_me(int a)
{ {
int t = 0; int t = 0;
...@@ -29,6 +31,7 @@ split_me(int a) ...@@ -29,6 +31,7 @@ split_me(int a)
goto make_me_irregular; goto make_me_irregular;
} }
int
main() main()
{ {
split_me (1); split_me (1);
......
...@@ -24,6 +24,7 @@ struct a split_me (int a) ...@@ -24,6 +24,7 @@ struct a split_me (int a)
} }
} }
int val; int val;
void
test() test()
{ {
split_me (val); split_me (val);
......
...@@ -43,6 +43,8 @@ VEC_rtx_gc_safe_grow_cleared (VEC_rtx_gc ** vec_, int size_, ...@@ -43,6 +43,8 @@ VEC_rtx_gc_safe_grow_cleared (VEC_rtx_gc ** vec_, int size_,
} }
static VEC_rtx_gc *reg_base_value; static VEC_rtx_gc *reg_base_value;
unsigned int max_reg_num (void);
int arf (void);
void void
init_alias_analysis (void) init_alias_analysis (void)
{ {
......
...@@ -17,6 +17,9 @@ struct d_info ...@@ -17,6 +17,9 @@ struct d_info
int num_comps; int num_comps;
}; };
void foo (int);
void bar (int);
static struct demangle_component * static struct demangle_component *
d_make_empty (struct d_info *di) d_make_empty (struct d_info *di)
{ {
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
long last_data_offset; long last_data_offset;
int store; int store;
char *data; char *data;
void g (long);
void
f () f ()
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-ivopts-details" } */ /* { dg-options "-O2 -fdump-tree-ivopts-details" } */
void main (void) void f2 (void);
int main (void)
{ {
int i; int i;
for (i = 0; i < 10; i++) for (i = 0; i < 10; i++)
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
/* { dg-options "-O2 -fdump-tree-pre-stats" } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */
/* We can't eliminate the *p load here in any sane way, as eshup8 may /* We can't eliminate the *p load here in any sane way, as eshup8 may
change it. */ change it. */
void eshup8 (unsigned short *);
void void
enormlz (x) enormlz (x)
unsigned short x[]; unsigned short x[];
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */ /* { dg-options "-O2 -fdump-tree-pre-stats -std=gnu89" } */
typedef union tree_node *tree; typedef union tree_node *tree;
struct tree_common struct tree_common
{ {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O1 -fdump-tree-local-pure-const1" } */ /* { dg-options "-O1 -fdump-tree-local-pure-const1" } */
/* { dg-add-options bind_pic_locally } */ /* { dg-add-options bind_pic_locally } */
int
t(int a, int b, int c) t(int a, int b, int c)
{ {
int *p; int *p;
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
typedef struct gfc_se { int pre; } gfc_se; typedef struct gfc_se { int pre; } gfc_se;
typedef struct gfc_ss_info { int dim[7]; } gfc_ss_info; typedef struct gfc_ss_info { int dim[7]; } gfc_ss_info;
int gfc_rank_cst[7 + 1]; int gfc_rank_cst[7 + 1];
int a (int, int, int);
int b (int, int);
int c (int, int);
void
gfc_conv_array_transpose (gfc_se * se) { gfc_conv_array_transpose (gfc_se * se) {
int dest, src, dest_index, src_index; int dest, src, dest_index, src_index;
gfc_ss_info *dest_info; gfc_ss_info *dest_info;
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* { dg-options "-O2 -fdump-tree-cunrolli-details" } */ /* { dg-options "-O2 -fdump-tree-cunrolli-details" } */
int a[10]; int a[10];
int b[11]; int b[11];
int q (void);
int
t(int n) t(int n)
{ {
int i; int i;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
extern int a; /* { dg-error "declared weak after being used" } */ extern int a; /* { dg-error "declared weak after being used" } */
int
t() t()
{ {
return &a!=0; return &a!=0;
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
/* { dg-do link } */ /* { dg-do link } */
/* { dg-options "-O2 -fno-tree-dominator-opts" } */ /* { dg-options "-O2 -fno-tree-dominator-opts" } */
void link_error (void);
int int
foo (int a, int b, int c, int d) foo (int a, int b, int c, int d)
{ {
...@@ -28,6 +30,7 @@ foo (int a, int b, int c, int d) ...@@ -28,6 +30,7 @@ foo (int a, int b, int c, int d)
} }
} }
int
main() main()
{ {
foo (1, 2, 3, 4); foo (1, 2, 3, 4);
......
/* { dg-do link } */ /* { dg-do link } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */
void link_error (void);
static inline void do_thing(char *s, int *p, char *q) static inline void do_thing(char *s, int *p, char *q)
{ {
/* This should be folded away. */ /* This should be folded away. */
...@@ -19,6 +21,7 @@ void __attribute__((nonnull (1, 3))) do_other_thing(char *s, int *p, char *q) ...@@ -19,6 +21,7 @@ void __attribute__((nonnull (1, 3))) do_other_thing(char *s, int *p, char *q)
int i; int i;
int
main() main()
{ {
do_other_thing ("xxx", &i, "yyy"); do_other_thing ("xxx", &i, "yyy");
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */
void link_error (void);
void void
foo (int *p, int q) foo (int *p, int q)
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
void
cblas_csyr2k (int N, void *A, int lda, float *B, int ldb, float *C, int k) cblas_csyr2k (int N, void *A, int lda, float *B, int ldb, float *C, int k)
{ {
int i, j; int i, j;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-ccp -fdump-tree-vrp1" } */ /* { dg-options "-O2 -fno-tree-ccp -fdump-tree-vrp1" } */
void h (void);
int g (int i, int j) int g (int i, int j)
{ {
int t = 0; int t = 0;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-options "-O2 -fdump-tree-optimized" } */
void link_error (void);
typedef struct { typedef struct {
int x; int x;
int z; int z;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
void add128 (long long int *);
__inline__ void __inline__ void
shift128Right (int count, long long int *z1Ptr) shift128Right (int count, long long int *z1Ptr)
{ {
...@@ -12,6 +14,7 @@ shift128Right (int count, long long int *z1Ptr) ...@@ -12,6 +14,7 @@ shift128Right (int count, long long int *z1Ptr)
*z1Ptr = z1; *z1Ptr = z1;
} }
void
float128_rem () float128_rem ()
{ {
signed int expDiff; signed int expDiff;
......
...@@ -7,6 +7,7 @@ typedef struct ...@@ -7,6 +7,7 @@ typedef struct
} Object; } Object;
void Err_Handler () __attribute__ ((__noreturn__)); void Err_Handler () __attribute__ ((__noreturn__));
void Wrong_Type (Object, int);
int int
P_Error (int argc, Object * argv) P_Error (int argc, Object * argv)
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
struct list_head { struct list_head {
struct list_head *next; struct list_head *next;
}; };
void __list_del (struct list_head *);
static inline __attribute__((always_inline)) void list_del_init(struct static inline __attribute__((always_inline)) void list_del_init(struct
list_head *entry) list_head *entry)
{ {
......
...@@ -14,6 +14,8 @@ typedef union ...@@ -14,6 +14,8 @@ typedef union
long int a; long int a;
} T; } T;
void test (T *);
void void
foo1 (void) foo1 (void)
{ {
......
...@@ -18,6 +18,7 @@ union lispunion ...@@ -18,6 +18,7 @@ union lispunion
{ {
struct vector v; struct vector v;
}; };
void number_plus (object, object);
void init_code () void init_code ()
{ {
object V659; object V659;
......
...@@ -14,6 +14,7 @@ typedef struct ...@@ -14,6 +14,7 @@ typedef struct
} }
ProtocolOperations; ProtocolOperations;
static const ProtocolOperations *protocol; static const ProtocolOperations *protocol;
int
brl_readCommand (BrailleDisplay * brl) brl_readCommand (BrailleDisplay * brl)
{ {
unsigned long int keys; unsigned long int keys;
......
...@@ -24,6 +24,8 @@ typedef union ...@@ -24,6 +24,8 @@ typedef union
long int a; long int a;
} T; } T;
void test (T *);
void void
foo (void) foo (void)
{ {
......
...@@ -24,6 +24,8 @@ typedef union ...@@ -24,6 +24,8 @@ typedef union
long int a; long int a;
} T; } T;
void test (T *);
void void
foo (void) foo (void)
{ {
......
...@@ -22,6 +22,7 @@ int replace_reloads; ...@@ -22,6 +22,7 @@ int replace_reloads;
int hard_regs_live_known; int hard_regs_live_known;
short* static_reload_reg_p; short* static_reload_reg_p;
struct rd recog_data; struct rd recog_data;
int ix86_preferred_reload_class (rtx, int);
int int
find_reloads (rtx insn, int replace, int ind_levels, int live_known, find_reloads (rtx insn, int replace, int ind_levels, int live_known,
......
...@@ -31,6 +31,8 @@ struct ehca_shca { ...@@ -31,6 +31,8 @@ struct ehca_shca {
u32 hca_cap_mr_pgsize; u32 hca_cap_mr_pgsize;
}; };
int ____ilog2_NaN (void);
static u64 ehca_get_max_hwpage_size(struct ehca_shca *shca) static u64 ehca_get_max_hwpage_size(struct ehca_shca *shca)
{ {
return 1UL << ( __builtin_constant_p(shca->hca_cap_mr_pgsize) ? ( (shca->hca_cap_mr_pgsize) < 1 ? ____ilog2_NaN() : (shca->hca_cap_mr_pgsize) & (1ULL << 63) ? 63 : (shca->hca_cap_mr_pgsize) & (1ULL << 62) ? 62 : (shca->hca_cap_mr_pgsize) & (1ULL << 61) ? 61 : (shca->hca_cap_mr_pgsize) & (1ULL << 60) ? 60 : (shca->hca_cap_mr_pgsize) & (1ULL << 59) ? 59 : (shca->hca_cap_mr_pgsize) & (1ULL << 58) ? 58 : (shca->hca_cap_mr_pgsize) & (1ULL << 57) ? 57 : (shca->hca_cap_mr_pgsize) & (1ULL << 56) ? 56 : (shca->hca_cap_mr_pgsize) & (1ULL << 55) ? 55 : (shca->hca_cap_mr_pgsize) & (1ULL << 54) ? 54 : (shca->hca_cap_mr_pgsize) & (1ULL << 53) ? 53 : (shca->hca_cap_mr_pgsize) & (1ULL << 52) ? 52 : (shca->hca_cap_mr_pgsize) & (1ULL << 51) ? 51 : (shca->hca_cap_mr_pgsize) & (1ULL << 50) ? 50 : (shca->hca_cap_mr_pgsize) & (1ULL << 49) ? 49 : (shca->hca_cap_mr_pgsize) & (1ULL << 48) ? 48 : (shca->hca_cap_mr_pgsize) & (1ULL << 47) ? 47 : (shca->hca_cap_mr_pgsize) & (1ULL << 46) ? 46 : (shca->hca_cap_mr_pgsize) & (1ULL << 45) ? 45 : (shca->hca_cap_mr_pgsize) & (1ULL << 44) ? 44 : (shca->hca_cap_mr_pgsize) & (1ULL << 43) ? 43 : (shca->hca_cap_mr_pgsize) & (1ULL << 42) ? 42 : (shca->hca_cap_mr_pgsize) & (1ULL << 41) ? 41 : (shca->hca_cap_mr_pgsize) & (1ULL << 40) ? 40 : (shca->hca_cap_mr_pgsize) & (1ULL << 39) ? 39 : (shca->hca_cap_mr_pgsize) & (1ULL << 38) ? 38 : (shca->hca_cap_mr_pgsize) & (1ULL << 37) ? 37 : (shca->hca_cap_mr_pgsize) & (1ULL << 36) ? 36 : (shca->hca_cap_mr_pgsize) & (1ULL << 35) ? 35 : (shca->hca_cap_mr_pgsize) & (1ULL << 34) ? 34 : (shca->hca_cap_mr_pgsize) & (1ULL << 33) ? 33 : (shca->hca_cap_mr_pgsize) & (1ULL << 32) ? 32 : (shca->hca_cap_mr_pgsize) & (1ULL << 31) ? 31 : (shca->hca_cap_mr_pgsize) & (1ULL << 30) ? 30 : (shca->hca_cap_mr_pgsize) & (1ULL << 29) ? 29 : (shca->hca_cap_mr_pgsize) & (1ULL << 28) ? 28 : (shca->hca_cap_mr_pgsize) & (1ULL << 27) ? 27 : (shca->hca_cap_mr_pgsize) & (1ULL << 26) ? 26 : (shca->hca_cap_mr_pgsize) & (1ULL << 25) ? 25 : (shca->hca_cap_mr_pgsize) & (1ULL << 24) ? 24 : (shca->hca_cap_mr_pgsize) & (1ULL << 23) ? 23 : (shca->hca_cap_mr_pgsize) & (1ULL << 22) ? 22 : (shca->hca_cap_mr_pgsize) & (1ULL << 21) ? 21 : (shca->hca_cap_mr_pgsize) & (1ULL << 20) ? 20 : (shca->hca_cap_mr_pgsize) & (1ULL << 19) ? 19 : (shca->hca_cap_mr_pgsize) & (1ULL << 18) ? 18 : (shca->hca_cap_mr_pgsize) & (1ULL << 17) ? 17 : (shca->hca_cap_mr_pgsize) & (1ULL << 16) ? 16 : (shca->hca_cap_mr_pgsize) & (1ULL << 15) ? 15 : (shca->hca_cap_mr_pgsize) & (1ULL << 14) ? 14 : (shca->hca_cap_mr_pgsize) & (1ULL << 13) ? 13 : (shca->hca_cap_mr_pgsize) & (1ULL << 12) ? 12 : (shca->hca_cap_mr_pgsize) & (1ULL << 11) ? 11 : (shca->hca_cap_mr_pgsize) & (1ULL << 10) ? 10 : (shca->hca_cap_mr_pgsize) & (1ULL << 9) ? 9 : (shca->hca_cap_mr_pgsize) & (1ULL << 8) ? 8 : (shca->hca_cap_mr_pgsize) & (1ULL << 7) ? 7 : (shca->hca_cap_mr_pgsize) & (1ULL << 6) ? 6 : (shca->hca_cap_mr_pgsize) & (1ULL << 5) ? 5 : (shca->hca_cap_mr_pgsize) & (1ULL << 4) ? 4 : (shca->hca_cap_mr_pgsize) & (1ULL << 3) ? 3 : (shca->hca_cap_mr_pgsize) & (1ULL << 2) ? 2 : (shca->hca_cap_mr_pgsize) & (1ULL << 1) ? 1 : (shca->hca_cap_mr_pgsize) & (1ULL << 0) ? 0 : ____ilog2_NaN() ) : (sizeof(shca->hca_cap_mr_pgsize) <= 4) ? __ilog2_u32(shca->hca_cap_mr_pgsize) : __ilog2_u64(shca->hca_cap_mr_pgsize) ); return 1UL << ( __builtin_constant_p(shca->hca_cap_mr_pgsize) ? ( (shca->hca_cap_mr_pgsize) < 1 ? ____ilog2_NaN() : (shca->hca_cap_mr_pgsize) & (1ULL << 63) ? 63 : (shca->hca_cap_mr_pgsize) & (1ULL << 62) ? 62 : (shca->hca_cap_mr_pgsize) & (1ULL << 61) ? 61 : (shca->hca_cap_mr_pgsize) & (1ULL << 60) ? 60 : (shca->hca_cap_mr_pgsize) & (1ULL << 59) ? 59 : (shca->hca_cap_mr_pgsize) & (1ULL << 58) ? 58 : (shca->hca_cap_mr_pgsize) & (1ULL << 57) ? 57 : (shca->hca_cap_mr_pgsize) & (1ULL << 56) ? 56 : (shca->hca_cap_mr_pgsize) & (1ULL << 55) ? 55 : (shca->hca_cap_mr_pgsize) & (1ULL << 54) ? 54 : (shca->hca_cap_mr_pgsize) & (1ULL << 53) ? 53 : (shca->hca_cap_mr_pgsize) & (1ULL << 52) ? 52 : (shca->hca_cap_mr_pgsize) & (1ULL << 51) ? 51 : (shca->hca_cap_mr_pgsize) & (1ULL << 50) ? 50 : (shca->hca_cap_mr_pgsize) & (1ULL << 49) ? 49 : (shca->hca_cap_mr_pgsize) & (1ULL << 48) ? 48 : (shca->hca_cap_mr_pgsize) & (1ULL << 47) ? 47 : (shca->hca_cap_mr_pgsize) & (1ULL << 46) ? 46 : (shca->hca_cap_mr_pgsize) & (1ULL << 45) ? 45 : (shca->hca_cap_mr_pgsize) & (1ULL << 44) ? 44 : (shca->hca_cap_mr_pgsize) & (1ULL << 43) ? 43 : (shca->hca_cap_mr_pgsize) & (1ULL << 42) ? 42 : (shca->hca_cap_mr_pgsize) & (1ULL << 41) ? 41 : (shca->hca_cap_mr_pgsize) & (1ULL << 40) ? 40 : (shca->hca_cap_mr_pgsize) & (1ULL << 39) ? 39 : (shca->hca_cap_mr_pgsize) & (1ULL << 38) ? 38 : (shca->hca_cap_mr_pgsize) & (1ULL << 37) ? 37 : (shca->hca_cap_mr_pgsize) & (1ULL << 36) ? 36 : (shca->hca_cap_mr_pgsize) & (1ULL << 35) ? 35 : (shca->hca_cap_mr_pgsize) & (1ULL << 34) ? 34 : (shca->hca_cap_mr_pgsize) & (1ULL << 33) ? 33 : (shca->hca_cap_mr_pgsize) & (1ULL << 32) ? 32 : (shca->hca_cap_mr_pgsize) & (1ULL << 31) ? 31 : (shca->hca_cap_mr_pgsize) & (1ULL << 30) ? 30 : (shca->hca_cap_mr_pgsize) & (1ULL << 29) ? 29 : (shca->hca_cap_mr_pgsize) & (1ULL << 28) ? 28 : (shca->hca_cap_mr_pgsize) & (1ULL << 27) ? 27 : (shca->hca_cap_mr_pgsize) & (1ULL << 26) ? 26 : (shca->hca_cap_mr_pgsize) & (1ULL << 25) ? 25 : (shca->hca_cap_mr_pgsize) & (1ULL << 24) ? 24 : (shca->hca_cap_mr_pgsize) & (1ULL << 23) ? 23 : (shca->hca_cap_mr_pgsize) & (1ULL << 22) ? 22 : (shca->hca_cap_mr_pgsize) & (1ULL << 21) ? 21 : (shca->hca_cap_mr_pgsize) & (1ULL << 20) ? 20 : (shca->hca_cap_mr_pgsize) & (1ULL << 19) ? 19 : (shca->hca_cap_mr_pgsize) & (1ULL << 18) ? 18 : (shca->hca_cap_mr_pgsize) & (1ULL << 17) ? 17 : (shca->hca_cap_mr_pgsize) & (1ULL << 16) ? 16 : (shca->hca_cap_mr_pgsize) & (1ULL << 15) ? 15 : (shca->hca_cap_mr_pgsize) & (1ULL << 14) ? 14 : (shca->hca_cap_mr_pgsize) & (1ULL << 13) ? 13 : (shca->hca_cap_mr_pgsize) & (1ULL << 12) ? 12 : (shca->hca_cap_mr_pgsize) & (1ULL << 11) ? 11 : (shca->hca_cap_mr_pgsize) & (1ULL << 10) ? 10 : (shca->hca_cap_mr_pgsize) & (1ULL << 9) ? 9 : (shca->hca_cap_mr_pgsize) & (1ULL << 8) ? 8 : (shca->hca_cap_mr_pgsize) & (1ULL << 7) ? 7 : (shca->hca_cap_mr_pgsize) & (1ULL << 6) ? 6 : (shca->hca_cap_mr_pgsize) & (1ULL << 5) ? 5 : (shca->hca_cap_mr_pgsize) & (1ULL << 4) ? 4 : (shca->hca_cap_mr_pgsize) & (1ULL << 3) ? 3 : (shca->hca_cap_mr_pgsize) & (1ULL << 2) ? 2 : (shca->hca_cap_mr_pgsize) & (1ULL << 1) ? 1 : (shca->hca_cap_mr_pgsize) & (1ULL << 0) ? 0 : ____ilog2_NaN() ) : (sizeof(shca->hca_cap_mr_pgsize) <= 4) ? __ilog2_u32(shca->hca_cap_mr_pgsize) : __ilog2_u64(shca->hca_cap_mr_pgsize) );
......
...@@ -33,6 +33,8 @@ struct ehca_shca { ...@@ -33,6 +33,8 @@ struct ehca_shca {
u32 hca_cap_mr_pgsize; u32 hca_cap_mr_pgsize;
}; };
int ____ilog2_NaN (void);
static u64 ehca_get_max_hwpage_size(struct ehca_shca *shca) static u64 ehca_get_max_hwpage_size(struct ehca_shca *shca)
{ {
return 1UL << ( __builtin_constant_p(shca->hca_cap_mr_pgsize) ? ( (shca->hca_cap_mr_pgsize) < 1 ? ____ilog2_NaN() : (shca->hca_cap_mr_pgsize) & (1ULL << 63) ? 63 : (shca->hca_cap_mr_pgsize) & (1ULL << 62) ? 62 : (shca->hca_cap_mr_pgsize) & (1ULL << 61) ? 61 : (shca->hca_cap_mr_pgsize) & (1ULL << 60) ? 60 : (shca->hca_cap_mr_pgsize) & (1ULL << 59) ? 59 : (shca->hca_cap_mr_pgsize) & (1ULL << 58) ? 58 : (shca->hca_cap_mr_pgsize) & (1ULL << 57) ? 57 : (shca->hca_cap_mr_pgsize) & (1ULL << 56) ? 56 : (shca->hca_cap_mr_pgsize) & (1ULL << 55) ? 55 : (shca->hca_cap_mr_pgsize) & (1ULL << 54) ? 54 : (shca->hca_cap_mr_pgsize) & (1ULL << 53) ? 53 : (shca->hca_cap_mr_pgsize) & (1ULL << 52) ? 52 : (shca->hca_cap_mr_pgsize) & (1ULL << 51) ? 51 : (shca->hca_cap_mr_pgsize) & (1ULL << 50) ? 50 : (shca->hca_cap_mr_pgsize) & (1ULL << 49) ? 49 : (shca->hca_cap_mr_pgsize) & (1ULL << 48) ? 48 : (shca->hca_cap_mr_pgsize) & (1ULL << 47) ? 47 : (shca->hca_cap_mr_pgsize) & (1ULL << 46) ? 46 : (shca->hca_cap_mr_pgsize) & (1ULL << 45) ? 45 : (shca->hca_cap_mr_pgsize) & (1ULL << 44) ? 44 : (shca->hca_cap_mr_pgsize) & (1ULL << 43) ? 43 : (shca->hca_cap_mr_pgsize) & (1ULL << 42) ? 42 : (shca->hca_cap_mr_pgsize) & (1ULL << 41) ? 41 : (shca->hca_cap_mr_pgsize) & (1ULL << 40) ? 40 : (shca->hca_cap_mr_pgsize) & (1ULL << 39) ? 39 : (shca->hca_cap_mr_pgsize) & (1ULL << 38) ? 38 : (shca->hca_cap_mr_pgsize) & (1ULL << 37) ? 37 : (shca->hca_cap_mr_pgsize) & (1ULL << 36) ? 36 : (shca->hca_cap_mr_pgsize) & (1ULL << 35) ? 35 : (shca->hca_cap_mr_pgsize) & (1ULL << 34) ? 34 : (shca->hca_cap_mr_pgsize) & (1ULL << 33) ? 33 : (shca->hca_cap_mr_pgsize) & (1ULL << 32) ? 32 : (shca->hca_cap_mr_pgsize) & (1ULL << 31) ? 31 : (shca->hca_cap_mr_pgsize) & (1ULL << 30) ? 30 : (shca->hca_cap_mr_pgsize) & (1ULL << 29) ? 29 : (shca->hca_cap_mr_pgsize) & (1ULL << 28) ? 28 : (shca->hca_cap_mr_pgsize) & (1ULL << 27) ? 27 : (shca->hca_cap_mr_pgsize) & (1ULL << 26) ? 26 : (shca->hca_cap_mr_pgsize) & (1ULL << 25) ? 25 : (shca->hca_cap_mr_pgsize) & (1ULL << 24) ? 24 : (shca->hca_cap_mr_pgsize) & (1ULL << 23) ? 23 : (shca->hca_cap_mr_pgsize) & (1ULL << 22) ? 22 : (shca->hca_cap_mr_pgsize) & (1ULL << 21) ? 21 : (shca->hca_cap_mr_pgsize) & (1ULL << 20) ? 20 : (shca->hca_cap_mr_pgsize) & (1ULL << 19) ? 19 : (shca->hca_cap_mr_pgsize) & (1ULL << 18) ? 18 : (shca->hca_cap_mr_pgsize) & (1ULL << 17) ? 17 : (shca->hca_cap_mr_pgsize) & (1ULL << 16) ? 16 : (shca->hca_cap_mr_pgsize) & (1ULL << 15) ? 15 : (shca->hca_cap_mr_pgsize) & (1ULL << 14) ? 14 : (shca->hca_cap_mr_pgsize) & (1ULL << 13) ? 13 : (shca->hca_cap_mr_pgsize) & (1ULL << 12) ? 12 : (shca->hca_cap_mr_pgsize) & (1ULL << 11) ? 11 : (shca->hca_cap_mr_pgsize) & (1ULL << 10) ? 10 : (shca->hca_cap_mr_pgsize) & (1ULL << 9) ? 9 : (shca->hca_cap_mr_pgsize) & (1ULL << 8) ? 8 : (shca->hca_cap_mr_pgsize) & (1ULL << 7) ? 7 : (shca->hca_cap_mr_pgsize) & (1ULL << 6) ? 6 : (shca->hca_cap_mr_pgsize) & (1ULL << 5) ? 5 : (shca->hca_cap_mr_pgsize) & (1ULL << 4) ? 4 : (shca->hca_cap_mr_pgsize) & (1ULL << 3) ? 3 : (shca->hca_cap_mr_pgsize) & (1ULL << 2) ? 2 : (shca->hca_cap_mr_pgsize) & (1ULL << 1) ? 1 : (shca->hca_cap_mr_pgsize) & (1ULL << 0) ? 0 : ____ilog2_NaN() ) : (sizeof(shca->hca_cap_mr_pgsize) <= 4) ? __ilog2_u32(shca->hca_cap_mr_pgsize) : __ilog2_u64(shca->hca_cap_mr_pgsize) ); return 1UL << ( __builtin_constant_p(shca->hca_cap_mr_pgsize) ? ( (shca->hca_cap_mr_pgsize) < 1 ? ____ilog2_NaN() : (shca->hca_cap_mr_pgsize) & (1ULL << 63) ? 63 : (shca->hca_cap_mr_pgsize) & (1ULL << 62) ? 62 : (shca->hca_cap_mr_pgsize) & (1ULL << 61) ? 61 : (shca->hca_cap_mr_pgsize) & (1ULL << 60) ? 60 : (shca->hca_cap_mr_pgsize) & (1ULL << 59) ? 59 : (shca->hca_cap_mr_pgsize) & (1ULL << 58) ? 58 : (shca->hca_cap_mr_pgsize) & (1ULL << 57) ? 57 : (shca->hca_cap_mr_pgsize) & (1ULL << 56) ? 56 : (shca->hca_cap_mr_pgsize) & (1ULL << 55) ? 55 : (shca->hca_cap_mr_pgsize) & (1ULL << 54) ? 54 : (shca->hca_cap_mr_pgsize) & (1ULL << 53) ? 53 : (shca->hca_cap_mr_pgsize) & (1ULL << 52) ? 52 : (shca->hca_cap_mr_pgsize) & (1ULL << 51) ? 51 : (shca->hca_cap_mr_pgsize) & (1ULL << 50) ? 50 : (shca->hca_cap_mr_pgsize) & (1ULL << 49) ? 49 : (shca->hca_cap_mr_pgsize) & (1ULL << 48) ? 48 : (shca->hca_cap_mr_pgsize) & (1ULL << 47) ? 47 : (shca->hca_cap_mr_pgsize) & (1ULL << 46) ? 46 : (shca->hca_cap_mr_pgsize) & (1ULL << 45) ? 45 : (shca->hca_cap_mr_pgsize) & (1ULL << 44) ? 44 : (shca->hca_cap_mr_pgsize) & (1ULL << 43) ? 43 : (shca->hca_cap_mr_pgsize) & (1ULL << 42) ? 42 : (shca->hca_cap_mr_pgsize) & (1ULL << 41) ? 41 : (shca->hca_cap_mr_pgsize) & (1ULL << 40) ? 40 : (shca->hca_cap_mr_pgsize) & (1ULL << 39) ? 39 : (shca->hca_cap_mr_pgsize) & (1ULL << 38) ? 38 : (shca->hca_cap_mr_pgsize) & (1ULL << 37) ? 37 : (shca->hca_cap_mr_pgsize) & (1ULL << 36) ? 36 : (shca->hca_cap_mr_pgsize) & (1ULL << 35) ? 35 : (shca->hca_cap_mr_pgsize) & (1ULL << 34) ? 34 : (shca->hca_cap_mr_pgsize) & (1ULL << 33) ? 33 : (shca->hca_cap_mr_pgsize) & (1ULL << 32) ? 32 : (shca->hca_cap_mr_pgsize) & (1ULL << 31) ? 31 : (shca->hca_cap_mr_pgsize) & (1ULL << 30) ? 30 : (shca->hca_cap_mr_pgsize) & (1ULL << 29) ? 29 : (shca->hca_cap_mr_pgsize) & (1ULL << 28) ? 28 : (shca->hca_cap_mr_pgsize) & (1ULL << 27) ? 27 : (shca->hca_cap_mr_pgsize) & (1ULL << 26) ? 26 : (shca->hca_cap_mr_pgsize) & (1ULL << 25) ? 25 : (shca->hca_cap_mr_pgsize) & (1ULL << 24) ? 24 : (shca->hca_cap_mr_pgsize) & (1ULL << 23) ? 23 : (shca->hca_cap_mr_pgsize) & (1ULL << 22) ? 22 : (shca->hca_cap_mr_pgsize) & (1ULL << 21) ? 21 : (shca->hca_cap_mr_pgsize) & (1ULL << 20) ? 20 : (shca->hca_cap_mr_pgsize) & (1ULL << 19) ? 19 : (shca->hca_cap_mr_pgsize) & (1ULL << 18) ? 18 : (shca->hca_cap_mr_pgsize) & (1ULL << 17) ? 17 : (shca->hca_cap_mr_pgsize) & (1ULL << 16) ? 16 : (shca->hca_cap_mr_pgsize) & (1ULL << 15) ? 15 : (shca->hca_cap_mr_pgsize) & (1ULL << 14) ? 14 : (shca->hca_cap_mr_pgsize) & (1ULL << 13) ? 13 : (shca->hca_cap_mr_pgsize) & (1ULL << 12) ? 12 : (shca->hca_cap_mr_pgsize) & (1ULL << 11) ? 11 : (shca->hca_cap_mr_pgsize) & (1ULL << 10) ? 10 : (shca->hca_cap_mr_pgsize) & (1ULL << 9) ? 9 : (shca->hca_cap_mr_pgsize) & (1ULL << 8) ? 8 : (shca->hca_cap_mr_pgsize) & (1ULL << 7) ? 7 : (shca->hca_cap_mr_pgsize) & (1ULL << 6) ? 6 : (shca->hca_cap_mr_pgsize) & (1ULL << 5) ? 5 : (shca->hca_cap_mr_pgsize) & (1ULL << 4) ? 4 : (shca->hca_cap_mr_pgsize) & (1ULL << 3) ? 3 : (shca->hca_cap_mr_pgsize) & (1ULL << 2) ? 2 : (shca->hca_cap_mr_pgsize) & (1ULL << 1) ? 1 : (shca->hca_cap_mr_pgsize) & (1ULL << 0) ? 0 : ____ilog2_NaN() ) : (sizeof(shca->hca_cap_mr_pgsize) <= 4) ? __ilog2_u32(shca->hca_cap_mr_pgsize) : __ilog2_u64(shca->hca_cap_mr_pgsize) );
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
typedef unsigned short u16; typedef unsigned short u16;
typedef unsigned char u8; typedef unsigned char u8;
typedef unsigned int u32; typedef unsigned int u32;
long int random(int);
#define NNN 10 #define NNN 10
u32 f[NNN], t[NNN]; u32 f[NNN], t[NNN];
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* Test inserting in a block that does not contain a division. */ /* Test inserting in a block that does not contain a division. */
extern int f2(); extern int g();
double m, n, o; double m, n, o;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
int *a_p; int *a_p;
int a[1000]; int a[1000];
void
f(int k) f(int k)
{ {
int i; int i;
......
...@@ -9,6 +9,7 @@ typedef struct { ...@@ -9,6 +9,7 @@ typedef struct {
int *a_p; int *a_p;
S a[1000]; S a[1000];
void
f(int k) f(int k)
{ {
int i; int i;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
int *a_p; int *a_p;
int a[1000]; int a[1000];
void
f(int k) f(int k)
{ {
long long i; long long i;
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
/* Tests for SRA. */ /* Tests for SRA. */
void link_error (void);
typedef struct teststruct typedef struct teststruct
{ {
double d; double d;
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
/* Test for SRA. */ /* Test for SRA. */
void link_error (void);
typedef struct teststruct typedef struct teststruct
{ {
double d; double d;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
/* Tests for SRA of unions. */ /* Tests for SRA of unions. */
void link_error (void);
typedef union testunion typedef union testunion
{ {
......
...@@ -11,6 +11,7 @@ typedef struct teststruct ...@@ -11,6 +11,7 @@ typedef struct teststruct
int i2; int i2;
} teststruct; } teststruct;
void link_error (void);
void cow (int i) void cow (int i)
{ {
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
ssa graph. */ ssa graph. */
extern __SIZE_TYPE__ strlen (const char *); extern __SIZE_TYPE__ strlen (const char *);
extern void bar (__SIZE_TYPE__);
extern int bla (void);
void foo(int i) void foo(int i)
{ {
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
void link_error (void);
struct A struct A
{ {
int a; int a;
...@@ -25,6 +27,7 @@ void foo (int i) ...@@ -25,6 +27,7 @@ void foo (int i)
link_error (); link_error ();
} }
int
main () main ()
{ {
foo (3); foo (3);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-options "-O2 -fdump-tree-optimized -std=gnu89" } */
extern void link_error (void); extern void link_error (void);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-ccp1" } */ /* { dg-options "-O -fdump-tree-ccp1" } */
void h (void);
int g (int i, int j) int g (int i, int j)
{ {
int t = 0; int t = 0;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O1 -fdump-tree-dce2" } */ /* { dg-options "-O1 -fdump-tree-dce2" } */
int t() __attribute__ ((const)); int t() __attribute__ ((const));
void
q() q()
{ {
int i = t(); int i = t();
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dom1-details" } */ /* { dg-options "-O2 -fdump-tree-dom1-details -std=gnu89" } */
struct bitmap_head_def; struct bitmap_head_def;
typedef struct bitmap_head_def *bitmap; typedef struct bitmap_head_def *bitmap;
typedef const struct bitmap_head_def *const_bitmap; typedef const struct bitmap_head_def *const_bitmap;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dse1" } */ /* { dg-options "-O2 -fdump-tree-dse1" } */
void
foo( int *a) foo( int *a)
{ {
*a = 5; *a = 5;
*a = 3; *a = 3;
} }
/* We should eliminate the first assignment to *p, but not the second. */ /* We should eliminate the first assignment to *p, but not the second. */
/* { dg-final { scan-tree-dump-times "= 5" 0 "dse1"} } */ /* { dg-final { scan-tree-dump-times "= 5" 0 "dse1"} } */
/* { dg-final { scan-tree-dump-times "= 3" 1 "dse1"} } */ /* { dg-final { scan-tree-dump-times "= 3" 1 "dse1"} } */
/* { dg-final { cleanup-tree-dump "dse1" } } */ /* { dg-final { cleanup-tree-dump "dse1" } } */
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O2 -fdump-tree-dse1-vops" } */ /* { dg-options "-O2 -fdump-tree-dse1-vops" } */
struct { int a, b; } soup1, soup2; struct { int a, b; } soup1, soup2;
void
foo () foo ()
{ {
soup1 = soup2; soup1 = soup2;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-options "-O2 -fdump-tree-optimized" } */
extern __SIZE_TYPE__ strlen (const char *) __attribute__ ((__pure__)); extern __SIZE_TYPE__ strlen (const char *) __attribute__ ((__pure__));
extern void link_error (void);
void void
foo (const char *str) foo (const char *str)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-details" } */ /* { dg-options "-O2 -fdump-tree-pre-details" } */
void bark (void);
int flag, hoist, y, z; int flag, hoist, y, z;
void void
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1-details" } */ /* { dg-options "-O2 -fdump-tree-vrp1-details" } */
void oof (void);
struct basic_block_def; struct basic_block_def;
typedef struct basic_block_def *basic_block; typedef struct basic_block_def *basic_block;
enum gimple_code enum gimple_code
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */
int
foo (int *p, int i) foo (int *p, int i)
{ {
int x; int x;
......
...@@ -7,6 +7,7 @@ struct A ...@@ -7,6 +7,7 @@ struct A
int b; int b;
}; };
int
foo (struct A *p, struct A *q) foo (struct A *p, struct A *q)
{ {
int x = p->a; int x = p->a;
......
...@@ -7,6 +7,7 @@ struct A ...@@ -7,6 +7,7 @@ struct A
int b; int b;
}; };
int
foo (struct A *p, struct A *q) foo (struct A *p, struct A *q)
{ {
int *r = 0; int *r = 0;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */
int
foo (int a, int b) foo (int a, int b)
{ {
if (a == b) if (a == b)
......
...@@ -11,6 +11,7 @@ inline int zero() ...@@ -11,6 +11,7 @@ inline int zero()
return 0; return 0;
} }
int
foo (int k, int j) foo (int k, int j)
{ {
if (k >= ten()) if (k >= ten())
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */
int baz (void);
int
foo (int i, int j, int a) foo (int i, int j, int a)
{ {
if (i >= 10) if (i >= 10)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1-details" } */ /* { dg-options "-O2 -fdump-tree-vrp1-details" } */
int
foo (int i, int *p) foo (int i, int *p)
{ {
int j; int j;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* { dg-options "-O2 -fno-tree-fre -fdump-tree-vrp1-details" } */ /* { dg-options "-O2 -fno-tree-fre -fdump-tree-vrp1-details" } */
/* Compile with -fno-tree-fre -O2 to prevent CSEing *p. */ /* Compile with -fno-tree-fre -O2 to prevent CSEing *p. */
int
foo (int a, int *p) foo (int a, int *p)
{ {
int x = *p + 2; int x = *p + 2;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */ /* { dg-options "-O2 -fdump-tree-vrp1 -std=gnu89" } */
foo (int *p) foo (int *p)
{ {
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
extern void abort (void); extern void abort (void);
int
foo (int k, int j) foo (int k, int j)
{ {
if (k >= 10) if (k >= 10)
...@@ -18,6 +19,7 @@ foo (int k, int j) ...@@ -18,6 +19,7 @@ foo (int k, int j)
return j; return j;
} }
int
main() main()
{ {
foo (10, 3); foo (10, 3);
......
...@@ -7,6 +7,7 @@ bounce (int arg) ...@@ -7,6 +7,7 @@ bounce (int arg)
return arg; return arg;
} }
int
foo (int k, int j, int z) foo (int k, int j, int z)
{ {
if (k > z) if (k > z)
......
/* { dg-do link } */ /* { dg-do link } */
/* { dg-options -O2 } */ /* { dg-options -O2 } */
extern void link_error (void);
int
foo (int i) foo (int i)
{ {
int x; int x;
...@@ -17,6 +20,7 @@ foo (int i) ...@@ -17,6 +20,7 @@ foo (int i)
return x; return x;
} }
int
main() main()
{ {
foo (-30); foo (-30);
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
/* { dg-options -O2 } */ /* { dg-options -O2 } */
extern void abort (void); extern void abort (void);
extern void link_error (void);
int
foo_div (int i, int j) foo_div (int i, int j)
{ {
int k; int k;
...@@ -111,7 +113,7 @@ foo_div (int i, int j) ...@@ -111,7 +113,7 @@ foo_div (int i, int j)
abort (); abort ();
} }
int
foo_mult (int i, int j) foo_mult (int i, int j)
{ {
int k; int k;
...@@ -209,7 +211,7 @@ foo_mult (int i, int j) ...@@ -209,7 +211,7 @@ foo_mult (int i, int j)
abort (); abort ();
} }
int
main() main()
{ {
if (foo_div (-10, 5) != -2) if (foo_div (-10, 5) != -2)
......
...@@ -36,6 +36,7 @@ assemble_variable (struct tree_decl decl) ...@@ -36,6 +36,7 @@ assemble_variable (struct tree_decl decl)
return decl.u1.a.align; return decl.u1.a.align;
} }
int
main () main ()
{ {
struct tree_decl decl; struct tree_decl decl;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1-details" } */ /* { dg-options "-O2 -fdump-tree-vrp1-details" } */
void aa (void);
void aos (void);
void aob (void);
void
blah (int code1, int code2) blah (int code1, int code2)
{ {
int i; int i;
......
...@@ -18,6 +18,11 @@ struct rtx_def ...@@ -18,6 +18,11 @@ struct rtx_def
} u; } u;
}; };
void arf (void);
void nit (void);
void frob (void);
void
sss (rtx insn, int code1, int code2, int code3) sss (rtx insn, int code1, int code2, int code3)
{ {
_Bool D1562; _Bool D1562;
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
/* { dg-options "-O2 -fdump-tree-vrp1-details" } */ /* { dg-options "-O2 -fdump-tree-vrp1-details" } */
extern void abort (); extern void abort ();
extern void arf ();
int tree_code_length[100]; int tree_code_length[100];
void
blah (int code1) blah (int code1)
{ {
unsigned char D18670; unsigned char D18670;
......
/* PR middle-end/26361. */ /* PR middle-end/26361. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2 -std=gnu89" } */
void abort(void); void abort(void);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */
int func_81 (int);
int func_98 (int);
void void
func_18 ( int t ) func_18 ( int t )
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1-blocks-vops-details" } */ /* { dg-options "-O2 -fdump-tree-vrp1-blocks-vops-details" } */
void arf (void);
void
fu (char *p, int x) fu (char *p, int x)
{ {
if (x) if (x)
......
...@@ -26,6 +26,7 @@ struct basic_block_def ...@@ -26,6 +26,7 @@ struct basic_block_def
{ {
VEC_edge_gc *succs; VEC_edge_gc *succs;
}; };
void foo (void);
unsigned char unsigned char
cleanup_empty_eh (basic_block bb) cleanup_empty_eh (basic_block bb)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */
extern void link_error (void);
unsigned foo (unsigned i) unsigned foo (unsigned i)
{ {
if (i == 2) if (i == 2)
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
typedef __INTPTR_TYPE__ intptr_t; typedef __INTPTR_TYPE__ intptr_t;
typedef unsigned long long uint64_t; typedef unsigned long long uint64_t;
extern void linker_error (void);
static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val) static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val)
{ {
......
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
__extension__ typedef __INTPTR_TYPE__ intptr_t; __extension__ typedef __INTPTR_TYPE__ intptr_t;
extern void linker_error (void);
typedef unsigned long long uint64_t; typedef unsigned long long uint64_t;
static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val) static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val)
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
__extension__ typedef __INTPTR_TYPE__ intptr_t; __extension__ typedef __INTPTR_TYPE__ intptr_t;
typedef unsigned long long uint64_t; typedef unsigned long long uint64_t;
extern void linker_error (void);
static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val) static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val)
{ {
......
...@@ -11,6 +11,7 @@ large_function () ...@@ -11,6 +11,7 @@ large_function ()
abort (); abort ();
} }
int
main () main ()
{ {
large_function (); large_function ();
......
...@@ -6,6 +6,7 @@ static struct b {int a,b,c,d,e,f;} magic3; ...@@ -6,6 +6,7 @@ static struct b {int a,b,c,d,e,f;} magic3;
struct b foo(); struct b foo();
void
t() t()
{ {
a.magic1 = 1; a.magic1 = 1;
......
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