This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
S/390: Fix invalid gcc.dg/weak/typeof-2.c failure
- From: "Ulrich Weigand" <Ulrich dot Weigand at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Oct 2002 23:28:04 +0200
- Subject: S/390: Fix invalid gcc.dg/weak/typeof-2.c failure
- Sensitivity:
Hello,
I've committed this patch to the gcc.dg/weak/typeof-2.c testcase
to avoid invalid failures on s390 targets (for the same reason as
on sh targets).
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/ChangeLog,v
retrieving revision 1.2146
diff -c -p -r1.2146 ChangeLog
*** ChangeLog 16 Oct 2002 18:58:36 -0000 1.2146
--- ChangeLog 16 Oct 2002 21:23:31 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2002-10-16 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * gcc.dg/weak/typeof-2.c: For S/390 targets, return before baz3 test.
+
2002-10-16 Mark Mitchell <mark@codesourcery.com>
PR c++/7524
Index: gcc.dg/weak/typeof-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/weak/typeof-2.c,v
retrieving revision 1.2
diff -c -p -r1.2 typeof-2.c
*** gcc.dg/weak/typeof-2.c 15 Oct 2002 13:25:16 -0000 1.2
--- gcc.dg/weak/typeof-2.c 16 Oct 2002 21:23:37 -0000
*************** int bar3 (int x)
*** 31,34 ****
--- 31,36 ----
// { dg-final { global target_triplet } }
// { dg-final { if [string match sh-*-* $target_triplet ] {return} } }
// { dg-final { if [string match {sh[elb1-9]*-*-*} $target_triplet ]
{return} } }
+ // Likewise for S/390 targets
+ // { dg-final { if [string match s390-*-* $target_triplet ] {return} } }
// { dg-final { scan-assembler "baz3.*baz3.*baz3.*baz3.*baz3.*baz3" } }
Mit freundlichen Gruessen / Best Regards
Ulrich Weigand
--
Dr. Ulrich Weigand
Linux for S/390 Design & Development
IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
Phone: +49-7031/16-3727 --- Email: Ulrich.Weigand@de.ibm.com