[Bug testsuite/20767] gcc.dg/tree-ssa/ssa-pre-8.c scan-tree-dump-times Eliminated: 4 1 fails on 64-bit systems

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 5 18:14:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-05 18:14 -------
The problem is that we eliminate 5 instead of 4.
Eliminated: 5

The easy fix to make sure that this does not fail on any target is the following:
Index: gcc.dg/tree-ssa/ssa-pre-8.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-8.c,v
retrieving revision 1.1
diff -u -p -r1.1 ssa-pre-8.c
--- gcc.dg/tree-ssa/ssa-pre-8.c 4 Apr 2005 19:02:16 -0000       1.1
+++ gcc.dg/tree-ssa/ssa-pre-8.c 5 Apr 2005 18:14:07 -0000
@@ -5,7 +5,7 @@ struct s {
 };
 
 int
-foo (unsigned int i, struct s *array)
+foo (__SIZE_TYPE__ i, struct s *array)
 {
   int *p = array[i].n;
   if (p)


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|tree-optimization           |testsuite
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-05 18:14:38
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20767



More information about the Gcc-bugs mailing list