From 830976a1de6c15df6498dcd91b36e1fdd549945a Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 2 Oct 2014 18:22:09 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 158 ++++++++++++++++++ gcc/testsuite/gcc.dg/tree-ssa/20030530-2.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030611-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c | 8 +- gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c | 4 + gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/20030820-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20030820-2.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/20030821-1.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/20030917-2.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20031022-1.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20040209-1.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/20040211-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20040216-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20040302-1.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20040729-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/20041008-1.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/20050719-1.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/alias-13.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/alias-28.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/asm-3.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/attr-alias.c | 2 +- .../gcc.dg/tree-ssa/builtin-expect-1.c | 3 + .../gcc.dg/tree-ssa/builtin-expect-2.c | 3 + .../gcc.dg/tree-ssa/builtin-expect-3.c | 4 + .../gcc.dg/tree-ssa/builtin-expect-4.c | 4 + .../gcc.dg/tree-ssa/builtin-expect-5.c | 4 + gcc/testsuite/gcc.dg/tree-ssa/coalesce-1.c | 5 + gcc/testsuite/gcc.dg/tree-ssa/cunroll-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/cunroll-2.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/cunroll-3.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/cunroll-4.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/cunroll-5.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/cunroll-9.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/foldconst-2.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/foldconst-3.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/foldconst-4.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/foldconst-5.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/forwprop-25.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/forwprop-28.c | 14 +- gcc/testsuite/gcc.dg/tree-ssa/ifc-4.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/ifc-6.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/inline-10.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/inline-5.c | 4 + gcc/testsuite/gcc.dg/tree-ssa/inline-6.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/inline-7.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/inline-9.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/ipa-cp-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/ipa-split-1.c | 6 +- gcc/testsuite/gcc.dg/tree-ssa/ipa-split-2.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/ipa-split-5.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/isolate-3.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/isolate-5.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/ivopts-2.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/ivopts-3.c | 4 +- gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c | 2 +- .../gcc.dg/tree-ssa/local-pure-const.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/loop-20.c | 4 + gcc/testsuite/gcc.dg/tree-ssa/loop-38.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/pr20913.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/pr21582.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/pr22117.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/pr23434.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/pr23744.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/pr24117.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/pr24670.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/pr24840.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/pr25734.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/pr33723.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/pr33920.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/pr33922.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/pr34146-2.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/pr34146.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/pr38385.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/pr49642-1.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/pr49642-2.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/pr59597.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/recip-6.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/scev-3.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/scev-4.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/scev-5.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/sra-1.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/sra-2.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/sra-5.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/sra-6.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-12.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-2.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-31.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-1.c | 1 + .../gcc.dg/tree-ssa/ssa-dom-thread-4.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-4.c | 6 +- gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-9.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-14.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-29.c | 1 + .../gcc.dg/tree-ssa/ssa-vrp-thread-1.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/vrp01.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp02.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp03.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp04.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp05.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp06.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/vrp07.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp08.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp09.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/vrp10.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/vrp11.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp12.c | 4 + gcc/testsuite/gcc.dg/tree-ssa/vrp13.c | 6 +- gcc/testsuite/gcc.dg/tree-ssa/vrp14.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp23.c | 5 + gcc/testsuite/gcc.dg/tree-ssa/vrp24.c | 5 + gcc/testsuite/gcc.dg/tree-ssa/vrp25.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/vrp27.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/vrp46.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/vrp55.c | 3 + gcc/testsuite/gcc.dg/tree-ssa/vrp56.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp67.c | 2 + gcc/testsuite/gcc.dg/tree-ssa/vrp72.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vrp73.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/vrp75.c | 1 + .../gcc.dg/tree-ssa/wholeprogram-1.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/writeonly.c | 1 + 155 files changed, 431 insertions(+), 38 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6e2b6376e6e..d90b8f3c801 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,161 @@ +2014-10-02 Marek Polacek + + * 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 * gcc.dg/tm/20091013.c: Fix defaulting to int. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030530-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030530-2.c index 3d4ba4f9157..c16196b3d17 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030530-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030530-2.c @@ -7,6 +7,7 @@ typedef struct rs6000_stack { } rs6000_stack_t; extern char regs_ever_live[113]; extern rs6000_stack_t *rs6000_stack_info (void); +extern void gen_rtx_REG (int); void rs6000_emit_prologue (int i, rs6000_stack_t *info) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030611-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030611-1.c index fac91be70c5..c419094ddc9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030611-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030611-1.c @@ -2,6 +2,7 @@ /* { dg-options "-O1 -fdump-tree-dom2" } */ extern int square (int) __attribute__ ((__const__)); +int shit(int a) { return square (a) + square (a); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c index fa599237246..8a397732792 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c @@ -4,6 +4,7 @@ extern void abort (void); extern int blah[]; +void foo(int index) { if (blah [(unsigned int)index] != 0) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c index b3be8a9394e..5d083fb98db 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c @@ -17,6 +17,8 @@ struct rtx_def enum rtx_code code:16; }; +extern void blah (rtx *); + int nonlocal_mentioned_p (x) rtx x; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c index f99598d73cf..74014ba8330 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c @@ -27,6 +27,7 @@ union tree_node { struct tree_decl decl; }; +int make_decl_rtl (tree, int); void * get_alias_set (t) tree t; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c index c344d48e919..edf51c56af7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c @@ -2,6 +2,7 @@ /* { dg-options "-O1 -fdump-tree-dom2" } */ extern void abort (void); +extern void blah (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 1855580d571..32901a211e1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c @@ -2,6 +2,7 @@ /* { dg-options "-O1 -fdump-tree-dom2" } */ extern void abort (void); +extern void blah (void); union tree_node; typedef union tree_node *tree; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c index 44dd2535577..10396dd4528 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c @@ -31,6 +31,7 @@ union tree_node { struct tree_decl decl; }; +void make_decl_rtl (tree, int); long get_alias_set (t,z) tree t; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c index ec04e17541e..099ba8b3661 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c @@ -31,6 +31,7 @@ union tree_node { struct tree_decl decl; }; +int make_decl_rtl (tree, void *); long get_alias_set (t) tree t; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c index 93a7979c56f..a11ddeaf218 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c @@ -16,17 +16,13 @@ struct tree_common enum tree_code code:8; }; - - - - union tree_node { struct tree_common common; }; - - +int foo (int); +int get_alias_set (tree); int objects_must_conflict_p (t1, t2) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c index 59b48397c4b..cf3923c5321 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-O1 -fdump-tree-dom2 -std=gnu89" } */ extern void abort (void); union tree_node; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c index f90acd078ec..e1609fdd993 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-O1 -fdump-tree-dom2 -std=gnu89" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c index 8300320c8cf..84353a5c785 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-dce1" } */ +void foo (void); + void bar (int i, int partial, int args_addr) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c index 84344e36cf9..ead99e1da26 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c @@ -22,6 +22,7 @@ struct rtx_def static int *uid_cuid; static int max_uid_cuid; +int insn_cuid (rtx); rtx bar (rtx r) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c index 0711053bc37..c49645f8b24 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c @@ -8,6 +8,7 @@ struct rtx_def { int code; }; +void foo (reg) rtx reg; { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c index a12d718408b..0b55b9bd0db 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c @@ -2,7 +2,10 @@ /* { dg-options "-O1 -ftree-vrp -fdump-tree-dom2" } */ extern void abort (void); +extern void bitmap_clear (int *); +extern void bar (int *); +void oof () { int live_head; @@ -12,6 +15,7 @@ oof () bitmap_clear (live); } +void foo(int n) { int *space = (int *)__builtin_alloca (n); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c index 9a3c23163f8..2c1b3332123 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c @@ -2,6 +2,8 @@ /* { dg-options "-O1 -fdump-tree-dom2" } */ typedef unsigned int cppchar_t; +void foo (void); +cppchar_t oof (void); cppchar_t cpp_parse_escape (pstr, limit, wide) const unsigned char **pstr; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c index f9f5fb798ef..044e1c2ec17 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c @@ -18,6 +18,7 @@ union tree_node struct tree_common common; struct tree_list list; }; +void c_simplify_stmt (tree *); void simplify_condition (cond_p) tree *cond_p; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c index 77fd3e59a1f..9be4503ebcd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-O1 -fdump-tree-dom2 -std=gnu89" } */ struct die_struct; typedef struct die_struct *dw_die_ref; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c index 4f0b7cbafe9..2506989901d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c @@ -1,6 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-dom2" } */ +void oof (const char *); +void foo (void); + static void bar () { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c index aad53c33907..44c804364e7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c @@ -2,7 +2,9 @@ /* { dg-options "-O1 -fdump-tree-dom2" } */ extern void abort (void); +extern void oof (int); +int com(int *blah) { int z = *blah; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c index 7f60b27830d..035b4ad3c2a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c @@ -2,6 +2,7 @@ /* { dg-options "-O1 -fdump-tree-dom2" } */ extern void abort (void); +extern void blah (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 2746415e59b..e69b0ee5408 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c @@ -2,6 +2,7 @@ /* { dg-options "-O1 -fdump-tree-dom2" } */ extern void abort (void); +extern void blah (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 2c2142cbcaa..1b941d6654f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c @@ -18,6 +18,7 @@ union tree_node struct tree_common common; struct tree_decl decl; }; +void record_alias_subset (long); long blah (decl, set) tree decl; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c index 41aa1482d43..c4592106758 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c @@ -18,6 +18,8 @@ union tree_node struct tree_common common; struct tree_decl decl; }; +long oof (void); +void record_alias_subset (long); long blah (decl, set) tree decl; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030820-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030820-1.c index 4b659ca3411..bfd1b509636 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030820-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030820-1.c @@ -4,6 +4,7 @@ /* A test for unreachable blocks removal -- bind_expr whose entry is unreachable, but it contains reachable statements. */ +void bar (void); void foo(void) { if (1) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030820-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030820-2.c index 9ca9fbb59c6..e857a0d6b09 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030820-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030820-2.c @@ -3,6 +3,9 @@ /* A test for variables getting out of their scope in copy propagation. */ +void bla (int); +int bar (void); + void foo(void) { int k; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030821-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030821-1.c index 5de503ed64d..8cf74d59210 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030821-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030821-1.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-dom1 -fdump-tree-optimized" } */ +void dont_remove (void); + void foo(int k) { int i = 1; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c index eb1f5ec7d68..94d13365438 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-options "-O2 -fdump-tree-optimized -std=gnu89" } */ extern int board[]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030917-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030917-2.c index 2c08050c975..372853c2820 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030917-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030917-2.c @@ -4,7 +4,7 @@ was never renamed. */ /* { dg-do compile } */ -/* { dg-options "-O -ftree-dominator-opts" } */ +/* { dg-options "-O -ftree-dominator-opts -std=gnu89" } */ typedef __SIZE_TYPE__ size_t; typedef union tree_node *tree; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c index e74bd08da90..6a4d30cf07e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c @@ -3,6 +3,7 @@ extern int printf (const char *, ...); +int main () { int variable = 0; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031022-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20031022-1.c index 27de6e90e9c..55769248b77 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031022-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031022-1.c @@ -10,6 +10,8 @@ typedef struct basic_block_def edge pred; } *basic_block; extern struct basic_block_def entry_exit_blocks[2]; +void commit_edge_insertions (void); +void foo (edge); void blah (int arf) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c index 6225bcdc8a3..11eec50b0f2 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040121-1.c @@ -19,6 +19,7 @@ char *bar(char *first, char *last) return foo(first, last); return 0; } +int main() { char *p = "a", *q = "b"; if (p) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040209-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040209-1.c index 087715322b7..a6850481672 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040209-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040209-1.c @@ -22,6 +22,8 @@ union tree_node }; int pedantic; +void foo (tree); +void bar1 (tree *); void finish_struct (tree t, tree fieldlist, tree attributes) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040211-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040211-1.c index 34a5926796e..1ca231656ad 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040211-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040211-1.c @@ -4,6 +4,7 @@ struct rtx_def; typedef struct rtx_def *rtx; extern const char rtx_class[]; +void foo (void); union rtunion_def { rtx rtx; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040216-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040216-1.c index c770340a767..a2edc9904ef 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040216-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040216-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-dse1-details" } */ +int foo(int *z, int *y, int xx) { *z = 1; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040302-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040302-1.c index 8b80128cd60..0e8821203ce 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040302-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040302-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1" } */ +/* { dg-options "-O1 -std=gnu89" } */ /* Test for .GLOBAL_VAR not being renamed into SSA after alias analysis. provided by Dale Johannesen in PR 14266. */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c index d6e54497169..839cc3ab271 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040319-1.c @@ -18,6 +18,7 @@ void foo (struct bar *b) abort (); } +int main () { struct bar x; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c index 4be6049e909..587bd6d3007 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040326-1.c @@ -1,4 +1,4 @@ -/* { dg-options "-O2 -fno-inline-functions" } */ +/* { dg-options "-O2 -fno-inline-functions -std=gnu89" } */ /* { dg-do run } */ /* When there are no call-clobbered variables, we should still create a .GLOBAL_VAR to model the side effects of functions. Without it, diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c index b1bed75dad2..cfb7c60135b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040326-2.c @@ -39,6 +39,7 @@ baz (void) fnptr B[2] = { baz, boz }; +int main () { int b, c; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040729-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040729-1.c index ef94096fa0d..147584983d4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040729-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040729-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-dce2" } */ +int foo () { volatile int *p; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20041008-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20041008-1.c index ca24427b65c..0cf83a2f627 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20041008-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20041008-1.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -std=gnu89" } */ struct A { int x; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20050719-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20050719-1.c index 8dc4c7e5be7..2c1e33513ec 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20050719-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20050719-1.c @@ -5,6 +5,7 @@ extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); +int useboot (void *); struct bootLoader { int x; @@ -31,6 +32,7 @@ useboot (void *boot) abort (); } +int main() { zap (0); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c index 4b148f23df5..884f5f6e317 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c @@ -1,6 +1,8 @@ /* { dg-do link } */ /* { dg-options "-O2" } */ +void link_error (void); + struct A { int x; @@ -39,6 +41,7 @@ float foo (int i) link_error (); } +int main(int argc, char **argv) { foo (argc); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/alias-13.c b/gcc/testsuite/gcc.dg/tree-ssa/alias-13.c index ae7cc82148a..69e00eb2196 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/alias-13.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/alias-13.c @@ -1,6 +1,7 @@ /* { dg-do link } */ /* { dg-options "-O2" } */ +void link_failure (void); struct a { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/alias-28.c b/gcc/testsuite/gcc.dg/tree-ssa/alias-28.c index 8413230eaf4..c15ca0549be 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/alias-28.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/alias-28.c @@ -2,6 +2,7 @@ /* { dg-options "-O3" } */ extern void abort (void); +extern void __link_error (void); extern void *malloc(__SIZE_TYPE__); int * __attribute__((noinline,noclone)) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c b/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c index 29b27f4ff56..a32dbc0f8d7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c @@ -12,6 +12,9 @@ #endif #endif +void foo (int); +void bar (int); + static inline int source(void) { register int hardreg __asm__(REGISTER); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c b/gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c index 89477d92f23..b7c4831ae02 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c @@ -3,6 +3,7 @@ /* { dg-options "-O2 -fdump-tree-optimized" } */ static int a=4; static int b __attribute__ ((alias("a"))); +int main() { return b+a; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/attr-alias.c b/gcc/testsuite/gcc.dg/tree-ssa/attr-alias.c index fe4084d2131..3dee34c24f7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/attr-alias.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/attr-alias.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-alias "" } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-options "-O2 -fdump-tree-optimized -std=gnu89" } */ void abort (void); __attribute__ ((weak)) int test() diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-1.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-1.c index 4c3888fd237..696ef269ced 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-1.c @@ -1,6 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-gimple" } */ +void g (void); + +void f (int i, float j, int i2, float j2) { if (__builtin_expect ((i * i2) > 0 && (j * j2), 0)) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-2.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-2.c index d8f344f7826..9267084de3e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-2.c @@ -1,6 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-gimple" } */ +void g (void); + +void f (int i, float j, int i2, float j2) { if (__builtin_expect ((i * i2) > 0 || (j * j2), 0)) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-3.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-3.c index b9e6cfb8ff9..548d6745eb9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-3.c @@ -1,6 +1,10 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-gimple" } */ +void a (void); +void b (void); + +void f (int i, float j, int i2, float j2) { if (__builtin_expect ((i * i2) > 0 && (j * j2), 0)) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-4.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-4.c index 2d2b206683b..103d531d13c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-4.c @@ -1,6 +1,10 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-gimple" } */ +void a (void); +void b (void); + +void f (int i, float j, int i2, float j2) { if (__builtin_expect ((i * i2) > 0 || (j * j2), 0)) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-5.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-5.c index d0b251db17b..4adc0cc403b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-5.c @@ -1,6 +1,10 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-forwprop" } */ +void a (void); +void b (void); + +void f (int i, float j, int i2, float j2) { if (__builtin_expect ((i * i2) > 0 && __builtin_expect ((j * j2) != 0, 1), 0)) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/coalesce-1.c b/gcc/testsuite/gcc.dg/tree-ssa/coalesce-1.c index 5cae9ae2a35..2eedbce8a76 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/coalesce-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/coalesce-1.c @@ -103,6 +103,7 @@ union gimple_statement_d struct gimple_statement_phi gimple_phi; }; extern size_t const gimple_ops_offset_[]; +int gimple_statement_structure (gimple); static __inline__ tree * gimple_ops (gimple gs) { @@ -155,6 +156,8 @@ struct switch_conv_info tree *default_values; }; static struct switch_conv_info info; +void gsi_next (gimple_stmt_iterator *); +int gsi_gsi_start_phis (basic_block); static void 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 process_switch (gimple swtch) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-1.c b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-1.c index 0bea9a9f00b..e1281fd7d87 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O3 -fdump-tree-cunrolli-details" } */ int a[2]; +void test(int c) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-2.c b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-2.c index e16d0086fab..09605b2c1bc 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-2.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O3 -fdump-tree-cunroll-details" } */ int a[2]; +int test2 (void); +void test(int c) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-3.c b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-3.c index dd6ce506744..72e9f1bddda 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-3.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-cunrolli-details" } */ int a[1]; +void test(int c) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-4.c b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-4.c index 86e12bbb419..ce2fc5af1eb 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-4.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O3 -fdump-tree-ivcanon-details" } */ int a[1]; +void test2 (void); +void test(int c) { int i=0,j; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-5.c b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-5.c index 2739c290af6..da890193219 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-5.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O3 -fdump-tree-cunroll-details -fno-tree-vectorize" } */ int *a; +void test(int c) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-9.c b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-9.c index f3b59f9fe3f..f6d5c605a1a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-9.c @@ -1,8 +1,10 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-cunrolli-details" } */ void abort (void); +int q (void); int a[10]; int b[11]; +int t (int n) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/foldconst-2.c b/gcc/testsuite/gcc.dg/tree-ssa/foldconst-2.c index 0eff197bf4a..9d4e0256e55 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/foldconst-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/foldconst-2.c @@ -25,6 +25,8 @@ enum tree_index TI_CURRENT_TARGET_PRAGMA, TI_CURRENT_OPTIMIZE_PRAGMA, TI_MAX }; extern tree global_trees[TI_MAX]; +void fancy_abort (const char *file, int line, const char *function); +void emit_support_tinfos (void) { static tree *const fundamentals[] = { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/foldconst-3.c b/gcc/testsuite/gcc.dg/tree-ssa/foldconst-3.c index 9f1088687d8..a6bb4312eea 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/foldconst-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/foldconst-3.c @@ -31,7 +31,9 @@ union tree_node }; const enum tree_code_class tree_code_type[] = { 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) { double_int dc, dd; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/foldconst-4.c b/gcc/testsuite/gcc.dg/tree-ssa/foldconst-4.c index b416d371e98..445d415cf54 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/foldconst-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/foldconst-4.c @@ -5,6 +5,7 @@ struct a {int a,b;}; const static struct a a; static int b[10]; int c; +int test() { return a.a+b[c]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/foldconst-5.c b/gcc/testsuite/gcc.dg/tree-ssa/foldconst-5.c index 1dad931ed7b..68b29a3c377 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/foldconst-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/foldconst-5.c @@ -5,6 +5,7 @@ static const char a[5]="t"; static const int b[5]={1,2}; static const struct a {int a : 6; int b : 6;} c = {5,9}; +int test() { return a[2]+b[1]+b[3]+c.b; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c b/gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c index e738a44ab00..b49bb3f8ee9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-gimple" } */ +void blah (void); + void arf () { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-25.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-25.c index cf0c504275f..16743b0541f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-25.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-25.c @@ -22,6 +22,7 @@ struct rtx_def { __extension__ enum machine_mode mode:8; }; +void fancy_abort (const char *, int, const char *); void convert_move (rtx to, rtx from, int unsignedp) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c index 108b1bcaaea..676f7b57821 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c @@ -48,6 +48,8 @@ varpool_externally_visible_p (struct varpool_node *vnode, return 0; } +unsigned char pointer_set_contains (struct pointer_set_t *, struct varpool_node *); + unsigned int function_and_variable_visibility (unsigned char whole_program) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-28.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-28.c index ae1a00b90c7..4f006a85bc9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-28.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-28.c @@ -5,7 +5,9 @@ extern char *frob (void); extern _Bool testit (void); +extern void oof (void); +void test (int code) { char *temp = frob (); @@ -14,6 +16,7 @@ test (int code) oof (); } +void test_2 (int code) { char *temp = frob (); @@ -22,7 +25,7 @@ test_2 (int code) oof (); } - +void test_3 (int code) { char *temp = frob (); @@ -31,7 +34,7 @@ test_3 (int code) oof (); } - +void test_4 (int code) { char *temp = frob (); @@ -40,7 +43,7 @@ test_4 (int code) oof (); } - +void test_5 (int code) { _Bool temp = testit (); @@ -49,6 +52,7 @@ test_5 (int code) oof (); } +void test_6 (int code) { _Bool temp = testit (); @@ -57,7 +61,7 @@ test_6 (int code) oof (); } - +void test_7 (int code) { _Bool temp = testit (); @@ -66,7 +70,7 @@ test_7 (int code) oof (); } - +void test_8 (int code) { _Bool temp = testit (); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ifc-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ifc-4.c index beb1a0e6071..4f7c3ab6c82 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ifc-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ifc-4.c @@ -26,6 +26,7 @@ struct cpp_reader { struct ht *hash_table; }; +void create_iso_definition (cpp_reader *pfile, cpp_macro *macro) { unsigned int num_extra_tokens = 0; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ifc-6.c b/gcc/testsuite/gcc.dg/tree-ssa/ifc-6.c index a9c5db3873f..d7c884a735b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ifc-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ifc-6.c @@ -2,6 +2,7 @@ /* { dg-options "-c -O2 -ftree-vectorize" { target *-*-* } } */ static int x; +void foo (int n, int *A) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/inline-10.c b/gcc/testsuite/gcc.dg/tree-ssa/inline-10.c index 1d7aeef2aa0..fe6c77f0850 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/inline-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/inline-10.c @@ -22,6 +22,7 @@ int do_something (int size) do_something_big (size); } extern int n; +int main() { do_something (2); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/inline-5.c b/gcc/testsuite/gcc.dg/tree-ssa/inline-5.c index 1a6faf4c500..dfaf7dc2e25 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/inline-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/inline-5.c @@ -2,6 +2,9 @@ /* { dg-options "-Os -fdump-tree-optimized" } */ struct a {int a,b,c,d,e,f;}; +void do_something (struct a *); + +void do_inc (struct a *a) { a->a=a->b; @@ -10,6 +13,7 @@ do_inc (struct a *a) a->e=a->f; } +void test(struct a *a) { do_inc (a); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/inline-6.c b/gcc/testsuite/gcc.dg/tree-ssa/inline-6.c index ae6c41f5da3..aa9656d4bd9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/inline-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/inline-6.c @@ -1,7 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-Os -fdump-tree-optimized" } */ struct a {int a,b,c,d,e,f,g,h,i,j;}; +void do_something (struct a *); +void do_inc (struct a *a) { a->a=1; @@ -15,6 +17,7 @@ do_inc (struct a *a) a->j=5; } +void test(struct a *a) { do_inc (a); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/inline-7.c b/gcc/testsuite/gcc.dg/tree-ssa/inline-7.c index 16c3c86bdeb..7d7f49c9b68 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/inline-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/inline-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-einline" } */ +/* { dg-options "-O -fdump-tree-einline -std=gnu89" } */ void foo0(); inline void bar0() { foo0(); } diff --git a/gcc/testsuite/gcc.dg/tree-ssa/inline-9.c b/gcc/testsuite/gcc.dg/tree-ssa/inline-9.c index 678dd852db6..45f0fecdb49 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/inline-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/inline-9.c @@ -14,6 +14,7 @@ int t(int a) q(a+10); } +int main() { t(5); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ipa-cp-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ipa-cp-1.c index ec628b777a9..9fbacdeb81e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ipa-cp-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ipa-cp-1.c @@ -11,6 +11,7 @@ very_long_function(int a) return 2 * -a + very_long_function (a)/4; } +int blah () { very_long_function (1); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-1.c index a31e8ea7a47..e1efa4e4f17 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-1.c @@ -1,6 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O3 -fdump-tree-fnsplit" } */ -int test2(a) + +void do_something_big (void); + +int test2(int a) { if (a<100) return 1; @@ -20,6 +23,7 @@ int test2(a) return 0; } +void test() { test2(10); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-2.c index bbde73d6c7c..b2d50a4c373 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-2.c @@ -3,6 +3,8 @@ int b; int c; int d; +void long_function (int); +void split_me(int a) { int t = 0; @@ -29,6 +31,7 @@ split_me(int a) goto make_me_irregular; } +int main() { split_me (1); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-5.c b/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-5.c index 8fc1244e1ad..aacf369291a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ipa-split-5.c @@ -24,6 +24,7 @@ struct a split_me (int a) } } int val; +void test() { split_me (val); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/isolate-3.c b/gcc/testsuite/gcc.dg/tree-ssa/isolate-3.c index 1a10e334a45..8dd2f2bdc2f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/isolate-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/isolate-3.c @@ -43,6 +43,8 @@ VEC_rtx_gc_safe_grow_cleared (VEC_rtx_gc ** vec_, int size_, } static VEC_rtx_gc *reg_base_value; +unsigned int max_reg_num (void); +int arf (void); void init_alias_analysis (void) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/isolate-5.c b/gcc/testsuite/gcc.dg/tree-ssa/isolate-5.c index e6ae37a7f74..131d319ae0d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/isolate-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/isolate-5.c @@ -17,6 +17,9 @@ struct d_info int num_comps; }; +void foo (int); +void bar (int); + static struct demangle_component * d_make_empty (struct d_info *di) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ivopts-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ivopts-2.c index 369f082e8db..dbeaff29e0f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ivopts-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ivopts-2.c @@ -4,7 +4,9 @@ long last_data_offset; int store; char *data; +void g (long); +void f () { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ivopts-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ivopts-3.c index 202ad1f4e2f..94e3c52ed7e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ivopts-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ivopts-3.c @@ -1,7 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-ivopts-details" } */ -void main (void) +void f2 (void); + +int main (void) { int i; for (i = 0; i < 10; i++) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c index 6f68f3ae212..7e67c9d2c77 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c @@ -2,6 +2,9 @@ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ /* We can't eliminate the *p load here in any sane way, as eshup8 may change it. */ + +void eshup8 (unsigned short *); + void enormlz (x) unsigned short x[]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c index 056c3fd6354..0dfc2b04e4a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-pre-stats" } */ +/* { dg-options "-O2 -fdump-tree-pre-stats -std=gnu89" } */ typedef union tree_node *tree; struct tree_common { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/local-pure-const.c b/gcc/testsuite/gcc.dg/tree-ssa/local-pure-const.c index afb7ca4b0df..356ad7b2c78 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/local-pure-const.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/local-pure-const.c @@ -2,6 +2,7 @@ /* { dg-options "-O1 -fdump-tree-local-pure-const1" } */ /* { dg-add-options bind_pic_locally } */ +int t(int a, int b, int c) { int *p; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-20.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-20.c index 24524a02b4b..6f2b5d0f919 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-20.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-20.c @@ -6,6 +6,10 @@ typedef struct gfc_se { int pre; } gfc_se; typedef struct gfc_ss_info { int dim[7]; } gfc_ss_info; 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) { int dest, src, dest_index, src_index; gfc_ss_info *dest_info; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-38.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-38.c index 714696e87ad..3c515aa1e79 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-38.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-38.c @@ -2,6 +2,8 @@ /* { dg-options "-O2 -fdump-tree-cunrolli-details" } */ int a[10]; int b[11]; +int q (void); +int t(int n) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c b/gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c index 52e4a9a3474..e94ad5f14ca 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ extern int a; /* { dg-error "declared weak after being used" } */ +int t() { return &a!=0; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr20913.c b/gcc/testsuite/gcc.dg/tree-ssa/pr20913.c index fb5461a2609..3c0eceb2e1a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr20913.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr20913.c @@ -5,6 +5,8 @@ /* { dg-do link } */ /* { dg-options "-O2 -fno-tree-dominator-opts" } */ +void link_error (void); + int foo (int a, int b, int c, int d) { @@ -28,6 +30,7 @@ foo (int a, int b, int c, int d) } } +int main() { foo (1, 2, 3, 4); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr21582.c b/gcc/testsuite/gcc.dg/tree-ssa/pr21582.c index 0f5dc9ec1d4..8675fbff3b1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr21582.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr21582.c @@ -1,6 +1,8 @@ /* { dg-do link } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ +void link_error (void); + static inline void do_thing(char *s, int *p, char *q) { /* This should be folded away. */ @@ -19,6 +21,7 @@ void __attribute__((nonnull (1, 3))) do_other_thing(char *s, int *p, char *q) int i; +int main() { do_other_thing ("xxx", &i, "yyy"); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr22117.c b/gcc/testsuite/gcc.dg/tree-ssa/pr22117.c index d265d5e2c13..377539f892d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr22117.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr22117.c @@ -5,6 +5,8 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ +void link_error (void); + void foo (int *p, int q) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23434.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23434.c index a21b955666e..e57f6f6a426 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr23434.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23434.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ +void cblas_csyr2k (int N, void *A, int lda, float *B, int ldb, float *C, int k) { int i, j; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23744.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23744.c index 53813967663..23fc3a24a46 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr23744.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23744.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-tree-ccp -fdump-tree-vrp1" } */ +void h (void); + int g (int i, int j) { int t = 0; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr24117.c b/gcc/testsuite/gcc.dg/tree-ssa/pr24117.c index ffa5dd04c46..df19d976c68 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr24117.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr24117.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ +void link_error (void); + typedef struct { int x; int z; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr24670.c b/gcc/testsuite/gcc.dg/tree-ssa/pr24670.c index a5ff800d925..75b92fd018c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr24670.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr24670.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ +void add128 (long long int *); + __inline__ void shift128Right (int count, long long int *z1Ptr) { @@ -12,6 +14,7 @@ shift128Right (int count, long long int *z1Ptr) *z1Ptr = z1; } +void float128_rem () { signed int expDiff; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr24840.c b/gcc/testsuite/gcc.dg/tree-ssa/pr24840.c index 736dafdec59..0ce9ed3a620 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr24840.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr24840.c @@ -7,6 +7,7 @@ typedef struct } Object; void Err_Handler () __attribute__ ((__noreturn__)); +void Wrong_Type (Object, int); int P_Error (int argc, Object * argv) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr25734.c b/gcc/testsuite/gcc.dg/tree-ssa/pr25734.c index a71c7f01a66..9d569d1cb4b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr25734.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr25734.c @@ -4,6 +4,7 @@ struct list_head { struct list_head *next; }; +void __list_del (struct list_head *); static inline __attribute__((always_inline)) void list_del_init(struct list_head *entry) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr33723.c b/gcc/testsuite/gcc.dg/tree-ssa/pr33723.c index 32a3aad9c1c..7b5aefcedad 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr33723.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr33723.c @@ -14,6 +14,8 @@ typedef union long int a; } T; +void test (T *); + void foo1 (void) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr33920.c b/gcc/testsuite/gcc.dg/tree-ssa/pr33920.c index e6a9e711881..858a95de434 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr33920.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr33920.c @@ -18,6 +18,7 @@ union lispunion { struct vector v; }; +void number_plus (object, object); void init_code () { object V659; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr33922.c b/gcc/testsuite/gcc.dg/tree-ssa/pr33922.c index 7429eb161e6..5e59a3f429f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr33922.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr33922.c @@ -14,6 +14,7 @@ typedef struct } ProtocolOperations; static const ProtocolOperations *protocol; +int brl_readCommand (BrailleDisplay * brl) { unsigned long int keys; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr34146-2.c b/gcc/testsuite/gcc.dg/tree-ssa/pr34146-2.c index 31007b07f81..2378e3e64fd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr34146-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr34146-2.c @@ -24,6 +24,8 @@ typedef union long int a; } T; +void test (T *); + void foo (void) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr34146.c b/gcc/testsuite/gcc.dg/tree-ssa/pr34146.c index 99fdeb5edfe..73894a0ccd3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr34146.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr34146.c @@ -24,6 +24,8 @@ typedef union long int a; } T; +void test (T *); + void foo (void) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr38385.c b/gcc/testsuite/gcc.dg/tree-ssa/pr38385.c index a49c93e2610..c3e5ac66c2e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr38385.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr38385.c @@ -22,6 +22,7 @@ int replace_reloads; int hard_regs_live_known; short* static_reload_reg_p; struct rd recog_data; +int ix86_preferred_reload_class (rtx, int); int find_reloads (rtx insn, int replace, int ind_levels, int live_known, diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr49642-1.c b/gcc/testsuite/gcc.dg/tree-ssa/pr49642-1.c index 65a0b128a94..487c42bf832 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr49642-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr49642-1.c @@ -31,6 +31,8 @@ struct ehca_shca { u32 hca_cap_mr_pgsize; }; +int ____ilog2_NaN (void); + 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) ); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr49642-2.c b/gcc/testsuite/gcc.dg/tree-ssa/pr49642-2.c index c96a87a4015..8c8d5e98a28 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr49642-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr49642-2.c @@ -33,6 +33,8 @@ struct ehca_shca { u32 hca_cap_mr_pgsize; }; +int ____ilog2_NaN (void); + 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) ); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr59597.c b/gcc/testsuite/gcc.dg/tree-ssa/pr59597.c index bc9d7304994..989e5f1ac3f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr59597.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr59597.c @@ -4,6 +4,7 @@ typedef unsigned short u16; typedef unsigned char u8; typedef unsigned int u32; +long int random(int); #define NNN 10 u32 f[NNN], t[NNN]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/recip-6.c b/gcc/testsuite/gcc.dg/tree-ssa/recip-6.c index b3334fb862a..a4cf444b43b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/recip-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/recip-6.c @@ -3,7 +3,7 @@ /* Test inserting in a block that does not contain a division. */ -extern int f2(); +extern int g(); double m, n, o; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-3.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-3.c index 5cac1cefb5c..4aeb511ef74 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-3.c @@ -4,6 +4,7 @@ int *a_p; int a[1000]; +void f(int k) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-4.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-4.c index 5f15d622d5c..a4905f2d082 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-4.c @@ -9,6 +9,7 @@ typedef struct { int *a_p; S a[1000]; +void f(int k) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-5.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-5.c index b9de36a4784..8c917aeaf75 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-5.c @@ -4,6 +4,7 @@ int *a_p; int a[1000]; +void f(int k) { long long i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/sra-1.c b/gcc/testsuite/gcc.dg/tree-ssa/sra-1.c index e5af2475115..fbf7ba65ad7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/sra-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/sra-1.c @@ -3,6 +3,8 @@ /* Tests for SRA. */ +void link_error (void); + typedef struct teststruct { double d; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/sra-2.c b/gcc/testsuite/gcc.dg/tree-ssa/sra-2.c index 5682b8afbcf..5306a3d37b8 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/sra-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/sra-2.c @@ -3,6 +3,8 @@ /* Test for SRA. */ +void link_error (void); + typedef struct teststruct { double d; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/sra-5.c b/gcc/testsuite/gcc.dg/tree-ssa/sra-5.c index 869d2f55f95..5ed7a754053 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/sra-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/sra-5.c @@ -3,6 +3,7 @@ /* Tests for SRA of unions. */ +void link_error (void); typedef union testunion { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/sra-6.c b/gcc/testsuite/gcc.dg/tree-ssa/sra-6.c index e59b536c12d..90d9a7d7cee 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/sra-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/sra-6.c @@ -11,6 +11,7 @@ typedef struct teststruct int i2; } teststruct; +void link_error (void); void cow (int i) { 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 9eecf94e20d..572ad34eed2 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c @@ -6,6 +6,8 @@ ssa graph. */ extern __SIZE_TYPE__ strlen (const char *); +extern void bar (__SIZE_TYPE__); +extern int bla (void); void foo(int i) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-12.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-12.c index 8ee9eb8d0e4..42e3a2edb51 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-12.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-12.c @@ -1,6 +1,8 @@ /* { dg-do run } */ /* { dg-options "-O2" } */ +void link_error (void); + struct A { int a; @@ -25,6 +27,7 @@ void foo (int i) link_error (); } +int main () { foo (3); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-2.c index 19975a39215..a52fd6e80a7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-options "-O2 -fdump-tree-optimized -std=gnu89" } */ extern void link_error (void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-31.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-31.c index c155e921c78..d4bc1990526 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-31.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-31.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O -fdump-tree-ccp1" } */ +void h (void); + int g (int i, int j) { int t = 0; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-1.c index 12d9826293f..80d8d6ba315 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-1.c @@ -2,6 +2,7 @@ /* { dg-options "-O1 -fdump-tree-dce2" } */ int t() __attribute__ ((const)); +void q() { int i = t(); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c index cafdf13909e..510118818b0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-dom1-details" } */ +/* { dg-options "-O2 -fdump-tree-dom1-details -std=gnu89" } */ struct bitmap_head_def; typedef struct bitmap_head_def *bitmap; typedef const struct bitmap_head_def *const_bitmap; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-4.c index 39fc85e6926..19b33903021 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-4.c @@ -1,19 +1,15 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-dse1" } */ +void foo( int *a) { *a = 5; *a = 3; } - - - /* 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 "= 3" 1 "dse1"} } */ /* { dg-final { cleanup-tree-dump "dse1" } } */ - - diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-9.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-9.c index 4cb67f0ae23..f249b2da3a4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-9.c @@ -2,6 +2,7 @@ /* { dg-options "-O2 -fdump-tree-dse1-vops" } */ struct { int a, b; } soup1, soup2; +void foo () { soup1 = soup2; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-14.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-14.c index 2371cfa1a58..8c9285bfbe2 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-14.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-14.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ extern __SIZE_TYPE__ strlen (const char *) __attribute__ ((__pure__)); +extern void link_error (void); void foo (const char *str) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-29.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-29.c index f2d2c4107ce..b70fa58a1c3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-29.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-29.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-details" } */ +void bark (void); int flag, hoist, y, z; void diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-vrp-thread-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-vrp-thread-1.c index 476ee5e9411..a4fdf89958f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-vrp-thread-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-vrp-thread-1.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1-details" } */ - +void oof (void); struct basic_block_def; typedef struct basic_block_def *basic_block; enum gimple_code diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp01.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp01.c index 3f8e820611c..1fc7e99ac48 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp01.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp01.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ +int foo (int *p, int i) { int x; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp02.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp02.c index 56fca97116c..4373d524c25 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp02.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp02.c @@ -7,6 +7,7 @@ struct A int b; }; +int foo (struct A *p, struct A *q) { int x = p->a; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp03.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp03.c index 9b7c08256da..7ec51e47661 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp03.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp03.c @@ -7,6 +7,7 @@ struct A int b; }; +int foo (struct A *p, struct A *q) { int *r = 0; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp04.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp04.c index bf5d683cb79..b98fda90769 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp04.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp04.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ +int foo (int a, int b) { if (a == b) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp05.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp05.c index 7b8b61b4443..80f05ea2105 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp05.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp05.c @@ -11,6 +11,7 @@ inline int zero() return 0; } +int foo (int k, int j) { if (k >= ten()) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp06.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp06.c index cb6df0dcac9..6d0f6459071 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp06.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp06.c @@ -1,6 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ +int baz (void); + +int foo (int i, int j, int a) { if (i >= 10) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp07.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp07.c index 6584919b560..ba813f271f7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp07.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp07.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1-details" } */ +int foo (int i, int *p) { int j; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp08.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp08.c index 193199fbf70..b7111dbad96 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp08.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp08.c @@ -2,6 +2,7 @@ /* { dg-options "-O2 -fno-tree-fre -fdump-tree-vrp1-details" } */ /* Compile with -fno-tree-fre -O2 to prevent CSEing *p. */ +int foo (int a, int *p) { int x = *p + 2; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp09.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp09.c index 9ff0f14f725..d8f1f4a0d8b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp09.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp09.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-vrp1" } */ +/* { dg-options "-O2 -fdump-tree-vrp1 -std=gnu89" } */ foo (int *p) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp10.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp10.c index 5a745845948..6d07caff015 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp10.c @@ -3,6 +3,7 @@ extern void abort (void); +int foo (int k, int j) { if (k >= 10) @@ -18,6 +19,7 @@ foo (int k, int j) return j; } +int main() { foo (10, 3); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp11.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp11.c index 591507c22f7..4d0e93d537c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp11.c @@ -7,6 +7,7 @@ bounce (int arg) return arg; } +int foo (int k, int j, int z) { if (k > z) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp12.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp12.c index 1714a561cd5..50552efa284 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp12.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp12.c @@ -1,6 +1,9 @@ /* { dg-do link } */ /* { dg-options -O2 } */ +extern void link_error (void); + +int foo (int i) { int x; @@ -17,6 +20,7 @@ foo (int i) return x; } +int main() { foo (-30); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp13.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp13.c index 4b3afdbc8c6..33941a35d2c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp13.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp13.c @@ -2,7 +2,9 @@ /* { dg-options -O2 } */ extern void abort (void); +extern void link_error (void); +int foo_div (int i, int j) { int k; @@ -111,7 +113,7 @@ foo_div (int i, int j) abort (); } - +int foo_mult (int i, int j) { int k; @@ -209,7 +211,7 @@ foo_mult (int i, int j) abort (); } - +int main() { if (foo_div (-10, 5) != -2) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp14.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp14.c index a65d8a16d70..89f931639f3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp14.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp14.c @@ -36,6 +36,7 @@ assemble_variable (struct tree_decl decl) return decl.u1.a.align; } +int main () { struct tree_decl decl; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp23.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp23.c index 77899a65fca..d27b12595ea 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp23.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp23.c @@ -1,6 +1,11 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1-details" } */ +void aa (void); +void aos (void); +void aob (void); + +void blah (int code1, int code2) { int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp24.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp24.c index 85e5b62d148..b60ee0569aa 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp24.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp24.c @@ -18,6 +18,11 @@ struct rtx_def } u; }; +void arf (void); +void nit (void); +void frob (void); + +void sss (rtx insn, int code1, int code2, int code3) { _Bool D1562; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp25.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp25.c index fa8bbfd4c0e..79813e848fa 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp25.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp25.c @@ -2,8 +2,10 @@ /* { dg-options "-O2 -fdump-tree-vrp1-details" } */ extern void abort (); +extern void arf (); int tree_code_length[100]; +void blah (int code1) { unsigned char D18670; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp27.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp27.c index 09b96f9199f..b6350b0e5bb 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp27.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp27.c @@ -1,6 +1,6 @@ /* PR middle-end/26361. */ /* { dg-do run } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -std=gnu89" } */ void abort(void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp46.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp46.c index a67e839ded5..33ce239c7f4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp46.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp46.c @@ -1,6 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ +int func_81 (int); +int func_98 (int); + void func_18 ( int t ) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp55.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp55.c index 7a3e726b206..7d1825f24fd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp55.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp55.c @@ -1,6 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1-blocks-vops-details" } */ +void arf (void); + +void fu (char *p, int x) { if (x) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp56.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp56.c index 912d28e0f64..24ad23e60c0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp56.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp56.c @@ -26,6 +26,7 @@ struct basic_block_def { VEC_edge_gc *succs; }; +void foo (void); unsigned char cleanup_empty_eh (basic_block bb) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp67.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp67.c index f02d83780a6..9269ca5acda 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp67.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp67.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ +extern void link_error (void); + unsigned foo (unsigned i) { if (i == 2) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp72.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp72.c index 0b12aad0e2b..f4ce82d8686 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp72.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp72.c @@ -2,6 +2,7 @@ typedef __INTPTR_TYPE__ intptr_t; typedef unsigned long long uint64_t; +extern void linker_error (void); static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp73.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp73.c index ea557fd9b69..16b0a814ed8 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp73.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp73.c @@ -1,7 +1,7 @@ /* { dg-options "-O2" } */ __extension__ typedef __INTPTR_TYPE__ intptr_t; - +extern void linker_error (void); typedef unsigned long long uint64_t; static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp75.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp75.c index 42b33870777..7b423bd8304 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp75.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp75.c @@ -2,6 +2,7 @@ __extension__ typedef __INTPTR_TYPE__ intptr_t; typedef unsigned long long uint64_t; +extern void linker_error (void); static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/wholeprogram-1.c b/gcc/testsuite/gcc.dg/tree-ssa/wholeprogram-1.c index 9d0af1f2391..6c976d57c15 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/wholeprogram-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/wholeprogram-1.c @@ -11,6 +11,7 @@ large_function () abort (); } +int main () { large_function (); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/writeonly.c b/gcc/testsuite/gcc.dg/tree-ssa/writeonly.c index 156cf3ef6a8..7a8b7991c19 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/writeonly.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/writeonly.c @@ -6,6 +6,7 @@ static struct b {int a,b,c,d,e,f;} magic3; struct b foo(); +void t() { a.magic1 = 1; -- 2.30.2