This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] More Tru64 UNIX V5.1 testsuite fixes
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Apr 2010 17:36:53 +0200
- Subject: [testsuite] More Tru64 UNIX V5.1 testsuite fixes
This patch fixes a couple of additional Tru64 UNIX V5.1 testsuite
failures:
FAIL: g++.dg/cdce3.C (test for excess errors)
WARNING: g++.dg/cdce3.C compilation failed to produce executable
FAIL: g++.dg/cdce3.C scan-tree-dump cdce "cdce3.C:95: note: function
call is shrink-wrapped into error conditions.": dump file does not exist
[...]
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cdce3.C:74:1: error: 'exp2f' was not declared in this scope
[...]
While Tru64 UNIX V5.1 has a fairly complete C99 runtime, the exp2*
functions are missing, thus skip the testcase to avoid the `compilation
failed' and `dump file does not exist' warnings.
FAIL: g++.dg/warn/miss-format-1.C scanf attribute warning (test for warnings, line 26)
FAIL: g++.dg/warn/miss-format-1.C (test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/warn/miss-format-1.C:26:18: error: 'vscanf' was not declared in this scope
XFAIL as on other platforms without vscanf.
FAIL: gcc.c-torture/compile/limits-declparen.c -O3 -g (test for excess errors)
Excess errors:
mips-tfile, /tmp//cceinZCT.s:33 string too big (58957 bytes)
Excess errors:
mips-tfile, /tmp//cceinZCT.s:33 string too big (58957 bytes)
line: #.stabs "q4_var:G16=*17=*18=*19=*20=*21=*22=*23=*24=*25=*26=*27
[...]
This is an inherent limitation of the current implementation of
mips-tfile, which limits strings to the pagesize. I'll try to get gas
working to avoid that ugly hack, until then XFAIL.
FAIL: gcc.dg/c99-tgmath-1.c (test for excess errors)
FAIL: gcc.dg/c99-tgmath-2.c (test for excess errors)
ERROR: gcc.dg/c99-tgmath-2.c: error executing dg-final: couldn't open "c99-tgmath-2.s": no such file or directory
UNRESOLVED: gcc.dg/c99-tgmath-2.c: error executing dg-final: couldn't open "c99-tgmath-2.s": no such file or directory
Excess errors:
In file included from /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/c99-tgmath-1.c:8:0:
/vol/gcc/obj/regression/trunk/5.1b-gcc/build/gcc/include/tgmath.h:35:21: fatal error: complex.h: No such file or directory
compilation terminated.
Again, the C99 runtime is incomplete and lacks <complex.h> completely,
thus skip to avoid the dg-final errors.
Bootstrapped without regressions on alpha-dec-osf5.1b.
Ok for mainline and 4.5 branch?
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* g++.dg/cdce3.C: Skip on alpha*-dec-osf5*.
* g++.dg/warn/miss-format-1.C (bar): xfail dg-warning on
alpha*-dec-osf5*.
* gcc.c-torture/compile/limits-declparen.c: xfail on
alpha*-dec-osf5* with -g.
* gcc.c-torture/compile/limits-pointer.c: Likewise.
* gcc.dg/c99-tgmath-1.c: Skip on alpha*-dec-osf5*.
* gcc.dg/c99-tgmath-2.c: Likewise.
* gcc.dg/c99-tgmath-3.c: Likewise.
* gcc.dg/c99-tgmath-4.c: Likewise.
diff -r 2d0d7273f8b2 gcc/testsuite/g++.dg/cdce3.C
--- a/gcc/testsuite/g++.dg/cdce3.C Thu Apr 08 13:27:29 2010 +0200
+++ b/gcc/testsuite/g++.dg/cdce3.C Fri Apr 16 17:19:12 2010 +0200
@@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-require-effective-target c99_runtime } */
+/* { dg-skip-if "exp2* missing despite C99 runtime" { alpha*-dec-osf5* }} */
/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -DGNU_EXTENSION -DLARGE_LONG_DOUBLE -lm" { target { pow10 && large_long_double } } } */
/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -DLARGE_LONG_DOUBLE -lm" { target { {! pow10 } && large_long_double } } } */
/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -DGNU_EXTENSION -lm" { target { pow10 && {! large_long_double } } } } */
diff -r 2d0d7273f8b2 gcc/testsuite/g++.dg/warn/miss-format-1.C
--- a/gcc/testsuite/g++.dg/warn/miss-format-1.C Thu Apr 08 13:27:29 2010 +0200
+++ b/gcc/testsuite/g++.dg/warn/miss-format-1.C Fri Apr 16 17:19:12 2010 +0200
@@ -23,7 +23,7 @@
{
va_list ap;
va_start (ap, fmt);
- vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" { xfail *-*-solaris2.[7-8] *-*-vxworks* } } */
+ vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" { xfail *-*-solaris2.[7-8] *-*-vxworks* alpha*-dec-osf5* } } */
va_end (ap);
}
diff -r 2d0d7273f8b2 gcc/testsuite/gcc.c-torture/compile/limits-declparen.c
--- a/gcc/testsuite/gcc.c-torture/compile/limits-declparen.c Thu Apr 08 13:27:29 2010 +0200
+++ b/gcc/testsuite/gcc.c-torture/compile/limits-declparen.c Fri Apr 16 17:19:12 2010 +0200
@@ -1,3 +1,4 @@
+/* { dg-xfail-if "" { alpha*-dec-osf5* } { "-g" } { "" } } */
#define PTR1 (* (* (* (* (* (* (* (* (* (*
#define PTR2 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1
#define PTR3 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2
diff -r 2d0d7273f8b2 gcc/testsuite/gcc.c-torture/compile/limits-pointer.c
--- a/gcc/testsuite/gcc.c-torture/compile/limits-pointer.c Thu Apr 08 13:27:29 2010 +0200
+++ b/gcc/testsuite/gcc.c-torture/compile/limits-pointer.c Fri Apr 16 17:19:12 2010 +0200
@@ -1,3 +1,4 @@
+/* { dg-xfail-if "" { alpha*-dec-osf5* } { "-g" } { "" } } */
#define PTR1 * * * * * * * * * *
#define PTR2 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1 PTR1
#define PTR3 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2 PTR2
diff -r 2d0d7273f8b2 gcc/testsuite/gcc.dg/c99-tgmath-1.c
--- a/gcc/testsuite/gcc.dg/c99-tgmath-1.c Thu Apr 08 13:27:29 2010 +0200
+++ b/gcc/testsuite/gcc.dg/c99-tgmath-1.c Fri Apr 16 17:19:12 2010 +0200
@@ -3,6 +3,7 @@
/* { dg-do preprocess { target c99_runtime } } */
/* { dg-options "-std=iso9899:1999" } */
/* { dg-add-options c99_runtime } */
+/* { dg-skip-if "<complex.h> missing" { alpha*-dec-osf5* } } */
/* Test that tgmath defines the macros it's supposed to. */
#include <tgmath.h>
diff -r 2d0d7273f8b2 gcc/testsuite/gcc.dg/c99-tgmath-2.c
--- a/gcc/testsuite/gcc.dg/c99-tgmath-2.c Thu Apr 08 13:27:29 2010 +0200
+++ b/gcc/testsuite/gcc.dg/c99-tgmath-2.c Fri Apr 16 17:19:12 2010 +0200
@@ -3,6 +3,7 @@
/* { dg-do compile { target c99_runtime } } */
/* { dg-options "-std=iso9899:1999" } */
/* { dg-add-options c99_runtime } */
+/* { dg-skip-if "<complex.h> missing" { alpha*-dec-osf5* } } */
/* Test that invoking type-generic sin on a float invokes sinf. */
#include <tgmath.h>
diff -r 2d0d7273f8b2 gcc/testsuite/gcc.dg/c99-tgmath-3.c
--- a/gcc/testsuite/gcc.dg/c99-tgmath-3.c Thu Apr 08 13:27:29 2010 +0200
+++ b/gcc/testsuite/gcc.dg/c99-tgmath-3.c Fri Apr 16 17:19:12 2010 +0200
@@ -3,6 +3,7 @@
/* { dg-do compile { target c99_runtime } } */
/* { dg-options "-std=iso9899:1999" } */
/* { dg-add-options c99_runtime } */
+/* { dg-skip-if "<complex.h> missing" { alpha*-dec-osf5* } } */
/* Test that invoking type-generic exp on a complex invokes cexp. */
#include <tgmath.h>
diff -r 2d0d7273f8b2 gcc/testsuite/gcc.dg/c99-tgmath-4.c
--- a/gcc/testsuite/gcc.dg/c99-tgmath-4.c Thu Apr 08 13:27:29 2010 +0200
+++ b/gcc/testsuite/gcc.dg/c99-tgmath-4.c Fri Apr 16 17:19:12 2010 +0200
@@ -3,6 +3,7 @@
/* { dg-do compile { target c99_runtime } } */
/* { dg-options "-std=iso9899:1999" } */
/* { dg-add-options c99_runtime } */
+/* { dg-skip-if "<complex.h> missing" { alpha*-dec-osf5* } } */
/* Test that invoking type-generic pow on complex float invokes cpowf. */
#include <tgmath.h>