re PR testsuite/34821 (new gcc.dg testsuite failures)

2008-01-17  Sebastian Pop  <sebastian.pop@amd.com>

	PR testsuite/34821
	* gcc.dg/autopar/autopar.exp: New.
	* g++.dg/tree-ssa/pr34355.C: Require pthread.
	* lib/target-supports.exp (check_effective_target_pthread): New.

	* gcc.dg/tree-ssa/parallelization-1.c: Moved to gcc.dg/autopar.
	* gcc.dg/tree-ssa/reduc-1short.c: Same.
	* gcc.dg/tree-ssa/reduc-1.c: Same.
	* gcc.dg/tree-ssa/reduc-2short.c: Same.
	* gcc.dg/tree-ssa/reduc-2.c: Same
	* gcc.dg/tree-ssa/reduc-3.c: Same.
	* gcc.dg/tree-ssa/reduc-1char.c: Same.
	* gcc.dg/tree-ssa/reduc-6.c: Same.
	* gcc.dg/tree-ssa/reduc-7.c: Same.
	* gcc.dg/tree-ssa/reduc-2char.c: Same.
	* gcc.dg/tree-ssa/reduc-8.c: Same.
	* gcc.dg/tree-ssa/reduc-9.c: Same.

From-SVN: r131605
This commit is contained in:
Sebastian Pop 2008-01-17 17:54:56 +00:00 committed by Sebastian Pop
parent 806631075b
commit 86595dba6c
16 changed files with 70 additions and 0 deletions

View File

@ -1,3 +1,23 @@
2008-01-17 Sebastian Pop <sebastian.pop@amd.com>
PR testsuite/34821
* gcc.dg/autopar/autopar.exp: New.
* g++.dg/tree-ssa/pr34355.C: Require pthread.
* lib/target-supports.exp (check_effective_target_pthread): New.
* gcc.dg/tree-ssa/parallelization-1.c: Moved to gcc.dg/autopar.
* gcc.dg/tree-ssa/reduc-1short.c: Same.
* gcc.dg/tree-ssa/reduc-1.c: Same.
* gcc.dg/tree-ssa/reduc-2short.c: Same.
* gcc.dg/tree-ssa/reduc-2.c: Same
* gcc.dg/tree-ssa/reduc-3.c: Same.
* gcc.dg/tree-ssa/reduc-1char.c: Same.
* gcc.dg/tree-ssa/reduc-6.c: Same.
* gcc.dg/tree-ssa/reduc-7.c: Same.
* gcc.dg/tree-ssa/reduc-2char.c: Same.
* gcc.dg/tree-ssa/reduc-8.c: Same.
* gcc.dg/tree-ssa/reduc-9.c: Same.
2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/discr5.adb: New test.

View File

@ -1,3 +1,4 @@
// { dg-require-effective-target pthread }
// { dg-do compile }
// { dg-options "-O3 -ftree-parallelize-loops=4" }

View File

@ -0,0 +1,40 @@
# Copyright (C) 2008 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 3 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 GCC; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>.
# GCC testsuite that uses the `dg.exp' driver.
# Load support procs.
load_lib gcc-dg.exp
if ![check_effective_target_pthread] {
return
}
# If a testcase doesn't have special options, use these.
global DEFAULT_CFLAGS
if ![info exists DEFAULT_CFLAGS] then {
set DEFAULT_CFLAGS " -ansi -pedantic-errors"
}
# Initialize `dg'.
dg-init
# Main loop.
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] \
"" $DEFAULT_CFLAGS
# All done.
dg-finish

View File

@ -509,6 +509,15 @@ proc check_effective_target_fopenmp {} {
} "-fopenmp"]
}
# Return 1 if compilation with -pthread is error-free for trivial
# code, 0 otherwise.
proc check_effective_target_pthread {} {
return [check_no_compiler_messages pthread object {
void foo (void) { }
} "-pthread"]
}
# Return 1 if the target supports -fstack-protector
proc check_effective_target_fstack_protector {} {
return [check_runtime fstack_protector {