summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-03 08:22:26 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-03 08:22:26 +0000
commit135813e566a6918fec966abfff8d18b5ccb31708 (patch)
tree0dbbb69cb1e7a5f5767663d609d297409a79b362 /gcc/testsuite/gcc.dg/tree-ssa
parent7657dcb9ff3f63747b3e659ab6501a9344101346 (diff)
downloadgcc-135813e566a6918fec966abfff8d18b5ccb31708.tar.gz
* gcc.dg/20001023-1.c, gcc.dg/20001108-1.c, gcc.dg/20001117-1.c,
gcc.dg/20010202-1.c, gcc.dg/20011008-2.c, gcc.dg/20011214-1.c, gcc.dg/20020201-1.c, gcc.dg/20020312-2.c, gcc.dg/20020426-2.c, gcc.dg/20030331-2.c, gcc.dg/20030612-1.c, gcc.dg/20030926-1.c, gcc.dg/20031216-1.c, gcc.dg/20031218-3.c, gcc.dg/20040305-2.c, gcc.dg/980226-1.c, gcc.dg/Wreturn-type2.c, gcc.dg/Wunreachable-6.c, gcc.dg/Wunreachable-7.c, gcc.dg/align-1.c, gcc.dg/builtin-prefetch-1.c, gcc.dg/builtins-17.c, gcc.dg/builtins-19.c, gcc.dg/builtins-2.c, gcc.dg/builtins-20.c, gcc.dg/builtins-21.c, gcc.dg/builtins-7.c, gcc.dg/builtins-8.c, gcc.dg/cpp/19930510-1.c, gcc.dg/cpp/charconst-3.c, gcc.dg/cpp/charconst-4.c, gcc.dg/cpp/mi6.c, gcc.dg/cpp/tr-paste.c, gcc.dg/cpp/trad/mi6.c, gcc.dg/cpp/trad/paste.c, gcc.dg/cpp/trad/strify.c, gcc.dg/fastmath-1.c, gcc.dg/fshort-wchar.c, gcc.dg/i386-387-7.c, gcc.dg/i386-387-8.c, gcc.dg/i386-asm-1.c, gcc.dg/i386-cadd.c, gcc.dg/i386-fpcvt-3.c, gcc.dg/i386-loop-3.c, gcc.dg/i386-memset-1.c, gcc.dg/loop-2.c, gcc.dg/nest.c, gcc.dg/noncompile/971104-1.c, gcc.dg/noncompile/990416-1.c, gcc.dg/noncompile/scope.c, gcc.dg/pack-test-4.c, gcc.dg/pack-test-5.c, gcc.dg/pch/inline-4.c, gcc.dg/postincr-1.c, gcc.dg/pr10392-1.c, gcc.dg/pragma-align.c, gcc.dg/profile-generate-1.c, gcc.dg/sibcall-1.c, gcc.dg/sibcall-2.c, gcc.dg/sibcall-3.c, gcc.dg/sibcall-4.c, gcc.dg/sibcall-5.c, gcc.dg/sibcall-6.c, gcc.dg/switch-warn-1.c, gcc.dg/switch-warn-2.c, gcc.dg/torture/builtin-attr-1.c, gcc.dg/torture/builtin-math-1.c, gcc.dg/torture/builtin-noret-2.c, gcc.dg/trampoline-1.c, gcc.dg/tree-ssa/20030703-1.c, gcc.dg/tree-ssa/20030703-2.c, gcc.dg/tree-ssa/20030708-1.c, gcc.dg/tree-ssa/20030709-3.c, gcc.dg/tree-ssa/20030710-1.c, gcc.dg/tree-ssa/20030711-1.c, gcc.dg/tree-ssa/20030729-1.c, gcc.dg/tree-ssa/20030730-1.c, gcc.dg/tree-ssa/20030730-2.c, gcc.dg/tree-ssa/20030731-1.c, gcc.dg/tree-ssa/20030807-11.c, gcc.dg/tree-ssa/20030807-2.c, gcc.dg/tree-ssa/20030807-5.c, gcc.dg/tree-ssa/20030807-7.c, gcc.dg/tree-ssa/20030808-1.c, gcc.dg/tree-ssa/20030814-1.c, gcc.dg/tree-ssa/20030814-2.c, gcc.dg/tree-ssa/20030814-3.c, gcc.dg/tree-ssa/20030814-4.c, gcc.dg/tree-ssa/20030814-5.c, gcc.dg/tree-ssa/20030814-6.c, gcc.dg/tree-ssa/20030814-7.c, gcc.dg/tree-ssa/20030815-1.c, gcc.dg/tree-ssa/20030907-1.c, gcc.dg/tree-ssa/20030917-3.c, gcc.dg/tree-ssa/20030922-1.c, gcc.dg/tree-ssa/20031113-1.c, gcc.dg/tree-ssa/20040121-1.c, gcc.dg/tree-ssa/20040319-1.c, gcc.dg/tree-ssa/20040324-1.c, gcc.dg/tree-ssa/20040326-1.c, gcc.dg/tree-ssa/20040326-2.c, gcc.dg/tree-ssa/20040517-1.c, gcc.dg/tree-ssa/ssa-ccp-10.c, gcc.dg/tree-ssa/ssa-pre-1.c, gcc.dg/tree-ssa/tailcall-1.c, gcc.dg/tree-ssa/tailrecursion-5.c, gcc.dg/ultrasp3.c, gcc.dg/winline-7.c, gcc.misc-tests/bprob-1.c, gcc.misc-tests/bprob-2.c, gcc.misc-tests/gcov-3.c, gcc.misc-tests/gcov-4.c, gcc.misc-tests/gcov-4b.c, gcc.misc-tests/gcov-6.c, gcc.misc-tests/gcov-7.c, gcc.misc-tests/i386-pf-3dnow-1.c, gcc.misc-tests/i386-pf-athlon-1.c, gcc.misc-tests/i386-pf-none-1.c, gcc.misc-tests/i386-pf-sse-1.c, objc.dg/nested-func-1.m, objc.dg/special/unclaimed-category-1.m: Declare built-in functions used. * gcc.dg/torture/builtin-attr-1.c (nexttoward): Use FPTEST2ARG2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85465 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c4
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030730-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030730-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c3
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030814-7.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030907-1.c3
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c3
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030922-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20031113-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20040324-1.c3
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c3
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/tailcall-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-5.c3
37 files changed, 52 insertions, 5 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c
index f5b3db3460d..44cf3d2b0e9 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
-
+extern void abort (void);
extern int blah[];
foo(int index)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c
index a73150a06a3..d1251c103a2 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c
@@ -1,6 +1,8 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
-
+
+extern void abort (void);
+
union tree_node;
typedef union tree_node *tree;
extern const char tree_code_type[];
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c
index 65c8026a341..717c8affd73 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
struct rtx_def;
typedef struct rtx_def *rtx;
enum rtx_code
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c
index 98681c088c9..2bc21cae70b 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
union tree_node;
typedef union tree_node *tree;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c
index 53e3d5992cf..4b1d18120e1 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
union tree_node;
typedef union tree_node *tree;
struct tree_vec
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c
index eba207a25e5..a1ef017dfda 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
union tree_node;
typedef union tree_node *tree;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c
index b4b1a819ff4..8ac20d5c614 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
union tree_node;
typedef union tree_node *tree;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030730-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030730-1.c
index 643b5e79271..3dd95eabbcd 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030730-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030730-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dom3" } */
+extern void exit (int);
extern void *ggc_alloc (__SIZE_TYPE__);
typedef struct dw_attr_struct *dw_attr_ref;
typedef struct dw_attr_struct
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030730-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030730-2.c
index 06b5710f65f..7fd0c181945 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030730-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030730-2.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dom3" } */
+extern void exit (int);
extern void *ggc_alloc (__SIZE_TYPE__);
typedef struct dw_attr_struct *dw_attr_ref;
typedef struct dw_attr_struct
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c
index 82634da1c5b..c622c98dcf1 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
struct rtx_def;
typedef struct rtx_def *rtx;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c
index 6296346095d..6df4702c70c 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
struct rtx_def;
typedef struct rtx_def *rtx;
struct rtx_def
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c
index e9837d38814..cd518eba914 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
oof ()
{
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c
index b530c841a7f..49f3a997d50 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
-
+
+extern void abort (void);
struct rtx_def;
typedef struct rtx_def *rtx;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c
index 7f31578307a..f1e0d00c235 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dom3" } */
-
+extern void abort (void);
union tree_node;
typedef union tree_node *tree;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c
index 08f8f15f706..11781f9d387 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-cddce" } */
+extern void abort (void);
struct rtx_def;
typedef struct rtx_def *rtx;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c
index d165b19bfda..da48d2255a4 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
com(int *blah)
{
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c
index a3f2ae6b70b..5acc6e1dbb8 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
void
foo (int value)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c
index 2058c0c987a..bcebd075d6f 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
void
foo (int value)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c
index 81711dd75cd..7bdaaebed62 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3 -fdump-tree-optimized" } */
+extern void abort (void);
union tree_node;
typedef union tree_node *tree;
extern const char tree_code_type[];
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c
index bab21a3cae8..c34c2dc8bbf 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3 -fdump-tree-optimized" } */
+extern void abort (void);
union tree_node;
typedef union tree_node *tree;
extern const char tree_code_type[];
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c
index c16fda9155c..49b526ccc13 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
union tree_node;
typedef union tree_node *tree;
enum tree_code
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-7.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-7.c
index cbefbb33c1a..440794d6ae3 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-7.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-7.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
struct rtx_def;
typedef struct rtx_def *rtx;
struct rtvec_def;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c
index 13a4917e912..ba0cf6b16a0 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
typedef unsigned int size_t;
struct rtx_def;
typedef struct rtx_def *rtx;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030907-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030907-1.c
index 3bc5557cf00..6fb37c34349 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030907-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030907-1.c
@@ -6,6 +6,9 @@
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
+extern void abort (void);
+extern void exit (int);
+
int main()
{
int i;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c
index f7fabe5008c..478933b3f48 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fno-tree-dominator-opts -fdump-tree-ccp" } */
-
+
+extern int printf (const char *, ...);
main ()
{
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030922-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030922-1.c
index 8876071c81f..f216125eae1 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030922-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030922-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
+extern void abort (void);
union tree_node;
typedef union tree_node *tree;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031113-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20031113-1.c
index a114379a7ad..865915f4fb3 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20031113-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20031113-1.c
@@ -7,6 +7,8 @@
/* { dg-do compile } */
/* { dg-options "-O1" } */
+extern __SIZE_TYPE__ strlen (const char *);
+
int i;
static void
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c
index 6987e17d907..6225bcdc8a3 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c
@@ -4,6 +4,7 @@
not boolean */
/* { dg-options "-O3" } */
/* { dg-do run } */
+extern void abort (void);
char *foo(char *p, char *q) {
int x = (p !=0) + (q != 0);
if (x==2) return "a"; else return 0;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c
index 571c2aeabad..d6e54497169 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c
@@ -6,6 +6,8 @@
were not being processed by the type based alias analyzer,
resulting in optimizations removing a non-redundant load. */
+extern void abort (void);
+
struct bar { int count; int *arr;};
void foo (struct bar *b)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040324-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040324-1.c
index 15eb0d62381..be718aba692 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20040324-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20040324-1.c
@@ -10,6 +10,9 @@
Therefore, DOM did not see that i was modified between the two ifs
and optimized away the second if. */
+extern void abort (void);
+extern void exit (int);
+
struct x
{
unsigned b:1;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c
index c29655a24fd..4be6049e909 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c
@@ -4,6 +4,9 @@
a .GLOBAL_VAR to model the side effects of functions. Without it,
we were moving the call to Faref() inside the second call to
Faset(). */
+extern void abort (void);
+extern void exit (int);
+
main ()
{
int table, c, elt;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c
index a3e16ad451e..b1bed75dad2 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c
@@ -4,6 +4,7 @@
/* Gimplification problem exposed by zsh. All the side-effects in
function arguments and in the called expression should happen
before the actual function call. */
+extern void abort (void);
int A;
typedef void (*fnptr) (void);
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c
index d3d0100a02c..5f99be2874e 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-ssa-vops" } */
+extern void abort (void);
int a;
extern void __attribute__ ((malloc)) *foo ();
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c
index 091703a1017..b5e702c57ea 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c
@@ -5,6 +5,8 @@
fail to terminate when there is a nontrivial cycle in the corresponding
ssa graph. */
+extern __SIZE_TYPE__ strlen (const char *);
+
void foo(int i)
{
char *s = "abcde";
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c
index d3c9d42152e..ca1b81c5f02 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
+extern int printf (const char *, ...);
int main(int argc, char **argv)
{
int a;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tailcall-1.c b/gcc/testsuite/gcc.dg/tree-ssa/tailcall-1.c
index c2a85940a30..33901523fb3 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/tailcall-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/tailcall-1.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-tailc-details" } */
+extern void *alloca (__SIZE_TYPE__);
int q(int a);
int *v;
int
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-5.c b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-5.c
index 2940a5019bd..d0d4f3a1e45 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-5.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-5.c
@@ -1,6 +1,9 @@
/* { dg-do run } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
+extern void abort (void);
+extern void exit (int);
+
int sum (int n)
{
if (n == 0)