diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-06-29 03:10:01 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-06-29 03:10:01 +0000 |
commit | 3be6ce4646b9ba06cd6b41804925a93ec5b33583 (patch) | |
tree | bf592ea9ef8fe4cce25dd21e3a2267e5658d7371 /gcc/testsuite/gcc.c-torture | |
parent | 628f05b4c155039e5ebf5f85bb71bb75fcae63af (diff) | |
download | gcc-3be6ce4646b9ba06cd6b41804925a93ec5b33583.zip gcc-3be6ce4646b9ba06cd6b41804925a93ec5b33583.tar.gz gcc-3be6ce4646b9ba06cd6b41804925a93ec5b33583.tar.bz2 |
Rearrange lots of files...
Rearrange lots of files, removing entirely the
gcc.c-torture/special, gcc.c-torture/code-quality, and gcc.failure
directories.
* Deleted files:
gcc.c-torture/code_quality/code_quality.exp
gcc.c-torture/special/special.exp
gcc.failure/failure.exp
gcc.failure/940409-1.x
gcc.c-torture/compile/961203-1.x
* New files:
gcc.misc-tests/linkage.exp
gcc.c-torture/execute/920730-1t.c
gcc.c-torture/execute/920730-1t.x
gcc.c-torture/compile/920520-1.x
gcc.c-torture/compile/920521-1.x
gcc.c-torture/compile/981006-1.x
gcc.c-torture/execute/eeprof-1.x
* Moved files (possibly with modifications to fit a new harness):
Old name New name
gcc.c-torture/code_quality/920608-1.c gcc.c-torture/compile/920608-1.c
gcc.c-torture/special/920413-1.c gcc.dg/920413-1.c
gcc.c-torture/special/920520-1.c gcc.c-torture/compile/920520-1.c
gcc.c-torture/special/920521-1.c gcc.c-torture/compile/920521-1.c
gcc.c-torture/special/920717-x.c gcc.misc-tests/linkage-x.c
gcc.c-torture/special/920717-y.c gcc.misc-tests/linkage-y.c
gcc.c-torture/special/920730-1.c gcc.c-torture/execute/920730-1.c
gcc.c-torture/special/930510-1.c gcc.dg/cpp/19930510-1.c
gcc.c-torture/special/951130-1.c gcc.dg/951130-1.c
gcc.c-torture/special/960224-1.c gcc.dg/cpp/19960224-1.c
gcc.c-torture/special/960224-2.c gcc.dg/cpp/19960224-2.c
gcc.c-torture/special/981006-1.c gcc.c-torture/compile/981006-1.c
gcc.c-torture/special/eeprof-1.c gcc.c-torture/execute/eeprof-1.c
gcc.failure/940409-1.c gcc.dg/940409-1.c
From-SVN: r34775
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
21 files changed, 23 insertions, 189 deletions
diff --git a/gcc/testsuite/gcc.c-torture/code_quality/code_quality.exp b/gcc/testsuite/gcc.c-torture/code_quality/code_quality.exp deleted file mode 100644 index b8b72ea..0000000 --- a/gcc/testsuite/gcc.c-torture/code_quality/code_quality.exp +++ /dev/null @@ -1,55 +0,0 @@ -# -# Expect driver script for GCC Regression Tests -# Copyright (C) 1993, 1997 Free Software Foundation -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Written by Jeffrey Wheat (cassidy@cygnus.com) -# - -# -# These tests come from Torbjorn Granlund's (tege@cygnus.com) -# C torture test suite, and other contributors. -# - -if $tracelevel then { - strace $tracelevel -} - -# load support procs -load_lib c-torture.exp - -# -# This loop will run c-torture on any *.c file found in this directory. -# If a *.c has a corresponding *.exp file, then the test is skipped as -# as the *.exp will drive the test itself. I did things this way so that -# generic tests did not need a seperate .exp for it. Only the tests that -# required unique options would need it's own .exp file. -# - -foreach testcase [glob -nocomplain $srcdir/$subdir/*.c] { - if [file exists [file rootname $testcase].exp] then { - verbose "INFO:\"[file rootname $testcase].exp\" exists, skipping test" 3 - continue - } - - # If we're only testing specific files and this isn't one of them, skip it. - if ![runtest_file_p $runtests $testcase] then { - continue - } - - c-torture $testcase -} - diff --git a/gcc/testsuite/gcc.c-torture/special/920520-1.c b/gcc/testsuite/gcc.c-torture/compile/920520-1.c index 6b1cd7b..6b1cd7b 100644 --- a/gcc/testsuite/gcc.c-torture/special/920520-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920520-1.c diff --git a/gcc/testsuite/gcc.c-torture/compile/920520-1.x b/gcc/testsuite/gcc.c-torture/compile/920520-1.x new file mode 100644 index 0000000..4cfce33 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/920520-1.x @@ -0,0 +1,2 @@ +set options "-S" +return 0 diff --git a/gcc/testsuite/gcc.c-torture/special/920521-1.c b/gcc/testsuite/gcc.c-torture/compile/920521-1.c index 95b9497..95b9497 100644 --- a/gcc/testsuite/gcc.c-torture/special/920521-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920521-1.c diff --git a/gcc/testsuite/gcc.c-torture/compile/920521-1.x b/gcc/testsuite/gcc.c-torture/compile/920521-1.x new file mode 100644 index 0000000..4cfce33 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/920521-1.x @@ -0,0 +1,2 @@ +set options "-S" +return 0 diff --git a/gcc/testsuite/gcc.c-torture/code_quality/920608-1.c b/gcc/testsuite/gcc.c-torture/compile/920608-1.c index cae1978..cae1978 100644 --- a/gcc/testsuite/gcc.c-torture/code_quality/920608-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920608-1.c diff --git a/gcc/testsuite/gcc.c-torture/special/981006-1.c b/gcc/testsuite/gcc.c-torture/compile/981006-1.c index 6af6d9a..6af6d9a 100644 --- a/gcc/testsuite/gcc.c-torture/special/981006-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/981006-1.c diff --git a/gcc/testsuite/gcc.c-torture/compile/981006-1.x b/gcc/testsuite/gcc.c-torture/compile/981006-1.x new file mode 100644 index 0000000..5c8d9f0 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/981006-1.x @@ -0,0 +1,12 @@ +# For MIPS at least, pic is needed to trigger the problem. +if { [istarget rs6000-*-aix*] + || [istarget powerpc*-*-aix*] + || [istarget arm*-*-*] + || [istarget strongarm*-*-*] + || [istarget fr30-*-*] +} { + set options "-Wuninitialized -Werror" +} else { + set options "-Wuninitialized -Werror -fpic" +} +return 0 diff --git a/gcc/testsuite/gcc.c-torture/special/920730-1.c b/gcc/testsuite/gcc.c-torture/execute/920730-1.c index d97d873..d97d873 100644 --- a/gcc/testsuite/gcc.c-torture/special/920730-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920730-1.c diff --git a/gcc/testsuite/gcc.c-torture/execute/920730-1t.c b/gcc/testsuite/gcc.c-torture/execute/920730-1t.c new file mode 100644 index 0000000..bc5e413 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/920730-1t.c @@ -0,0 +1,3 @@ +/* This is just 920730-1.c compiled with -traditional. + See 920730-1t.x. */ +#include "920730-1.c" diff --git a/gcc/testsuite/gcc.c-torture/execute/920730-1t.x b/gcc/testsuite/gcc.c-torture/execute/920730-1t.x new file mode 100644 index 0000000..cf05b31 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/920730-1t.x @@ -0,0 +1,2 @@ +set additional_flags "-traditional" +return 0 diff --git a/gcc/testsuite/gcc.c-torture/special/eeprof-1.c b/gcc/testsuite/gcc.c-torture/execute/eeprof-1.c index 6dad7ec..6dad7ec 100644 --- a/gcc/testsuite/gcc.c-torture/special/eeprof-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/eeprof-1.c diff --git a/gcc/testsuite/gcc.c-torture/execute/eeprof-1.x b/gcc/testsuite/gcc.c-torture/execute/eeprof-1.x new file mode 100644 index 0000000..0098d56 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/eeprof-1.x @@ -0,0 +1,2 @@ +set additional_flags "-finstrument-functions" +return 0 diff --git a/gcc/testsuite/gcc.c-torture/special/920413-1.c b/gcc/testsuite/gcc.c-torture/special/920413-1.c deleted file mode 100644 index a3e0613..0000000 --- a/gcc/testsuite/gcc.c-torture/special/920413-1.c +++ /dev/null @@ -1 +0,0 @@ -x(b){unsigned long c;c=4294967295U/(unsigned long)b;} diff --git a/gcc/testsuite/gcc.c-torture/special/920717-x.c b/gcc/testsuite/gcc.c-torture/special/920717-x.c deleted file mode 100644 index 07601e3..0000000 --- a/gcc/testsuite/gcc.c-torture/special/920717-x.c +++ /dev/null @@ -1,3 +0,0 @@ -/* 920717-1.c */ - -const char s[]="foo"; diff --git a/gcc/testsuite/gcc.c-torture/special/920717-y.c b/gcc/testsuite/gcc.c-torture/special/920717-y.c deleted file mode 100644 index eaffa5e..0000000 --- a/gcc/testsuite/gcc.c-torture/special/920717-y.c +++ /dev/null @@ -1,8 +0,0 @@ -/* 920717-y.c */ - -extern const char s[]; - -main() -{ - puts(s); -} diff --git a/gcc/testsuite/gcc.c-torture/special/930510-1.c b/gcc/testsuite/gcc.c-torture/special/930510-1.c deleted file mode 100644 index 54ad858..0000000 --- a/gcc/testsuite/gcc.c-torture/special/930510-1.c +++ /dev/null @@ -1,3 +0,0 @@ -#define ugly 3 -#ugly "foobar" 3 /* { dg-error "invalid" "invalid directive" } */ -int main() { exit (0); } diff --git a/gcc/testsuite/gcc.c-torture/special/951130-1.c b/gcc/testsuite/gcc.c-torture/special/951130-1.c deleted file mode 100644 index c06ba07..0000000 --- a/gcc/testsuite/gcc.c-torture/special/951130-1.c +++ /dev/null @@ -1,2 +0,0 @@ -unsigned long long x = -(unsigned long long)(-(long long)(((unsigned long -long)0 - 1) >> 1) - 1); diff --git a/gcc/testsuite/gcc.c-torture/special/960224-1.c b/gcc/testsuite/gcc.c-torture/special/960224-1.c deleted file mode 100644 index de0a6ae..0000000 --- a/gcc/testsuite/gcc.c-torture/special/960224-1.c +++ /dev/null @@ -1,6 +0,0 @@ -#if 0 -#if 0 -#endif \ -\ - -#endif diff --git a/gcc/testsuite/gcc.c-torture/special/960224-2.c b/gcc/testsuite/gcc.c-torture/special/960224-2.c deleted file mode 100644 index 3d69694..0000000 --- a/gcc/testsuite/gcc.c-torture/special/960224-2.c +++ /dev/null @@ -1,4 +0,0 @@ -#if 0 -#if 0 -#endif / -#endif diff --git a/gcc/testsuite/gcc.c-torture/special/special.exp b/gcc/testsuite/gcc.c-torture/special/special.exp deleted file mode 100644 index cc5b812..0000000 --- a/gcc/testsuite/gcc.c-torture/special/special.exp +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright (C) 1988, 90-96, 1997 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -# Please email any bugs, comments, and/or additions to this file to: -# bug-gcc@prep.ai.mit.edu - -# This file was written by Rob Savoye. (rob@cygnus.com) - -# -# These tests come from Torbjorn Granlund (tege@cygnus.com) -# C torture test suite. -# - -if $tracelevel then { - strace $tracelevel -} - -# load support procs -load_lib c-torture.exp -load_lib gcc-dg.exp - -################## ADD NEXT CASE HERE (NOT AT THE END) ################## - -# 981006-1 -# For MIPS at least, pic is needed to trigger the problem. -dg-init -if { [istarget rs6000-*-aix*] - || [istarget powerpc*-*-aix*] - || [istarget arm*-*-*] - || [istarget strongarm*-*-*] - || [istarget fr30-*-*] -} { - set extra_flags "" -} else { - set extra_flags "-fpic" -} -dg-runtest $srcdir/$subdir/981006-1.c "-Wuninitialized -O2 $extra_flags" "" -dg-finish - -# 920521-1 -c-torture 920521-1.c "-S" - -# 920520-1 -c-torture 920520-1.c "-S" - -# 920717-1 -if [isnative] then { - set lines [gcc_target_compile "$srcdir/$subdir/920717-x.c" "920717-x.o" object {additional_flags="-w"}] - if ![string match "" $lines] then { - fail "920717-x.c" - } else { - # This is a completely bogus test. Sorry. - catch exec "rm -f 920717-y.o" - send_log "cc -c $srcdir/$subdir/920717-y.c 2>/dev/null >/dev/null\n" - catch exec "cc -c $srcdir/$subdir/920717-y.c 2>/dev/null >/dev/null" - if ![file exists "920717-y.o"] then { - send_log "c89 -c $srcdir/$subdir/920717-y.c 2>/dev/null >/dev/null\n" - catch exec "c89 -c $srcdir/$subdir/920717-y.c 2>/dev/null >/dev/null" - } - if [file exists "920717-y.o"] then { - set lines [gcc_target_compile "920717-y.o x.o" "x" executable ""] - if [string match "" $lines] then { - pass "920717-1.c" - } else { - fail "920717-1.c" - } - } - } -} - -# 920730-1 -if [isnative] then { - c-torture "920730-1.c" - c-torture "920730-1.c" "-traditional" -} - -# 920413-1 -c-torture 920413-1.c "-Wtraditional" - -# 930510-1 -dg-init -dg-runtest $srcdir/$subdir/930510-1.c "" "" -dg-finish - -# 951130-1 -c-torture 951130-1.c "-Werror" - -# 960224-1 -c-torture 960224-1.c "-E -ansi -pedantic-errors" - -# 960224-2 -#c-torture 960224-2.c "-E -ansi -pedantic-errors" - -c-torture-execute $srcdir/$subdir/eeprof-1.c "-finstrument-functions" |