This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix tree-ssa/loop-5.c for 64-bit


For a 64-bit target, we did still end up with a single iterator variable
(and the second derived from it) but the it was neither "iter" nor "jter",
but a new synthetic "long unsigned int ivtmp.3".  Which is actually k00l
because that *does* tend to be most efficient.

But I didn't want to overcomplicate the regexp's by trying to match both
of these conditions.  It seemed easiest to just use long all the time.


r~


        * gcc.dg/tree-ssa/loop-5.c: Use long instead of int.

Index: gcc.dg/tree-ssa/loop-5.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/loop-5.c,v
retrieving revision 1.1
diff -c -p -d -u -r1.1 loop-5.c
--- gcc.dg/tree-ssa/loop-5.c	5 Sep 2004 09:25:37 -0000	1.1
+++ gcc.dg/tree-ssa/loop-5.c	5 Dec 2004 01:39:03 -0000
@@ -3,11 +3,11 @@
 /* { dg-do compile } */
 /* { dg-options "-O1 -fdump-tree-vars" } */
 
-void foo(int);
+void foo(long);
 
 void xxx(void)
 {
-  int iter, jter;
+  long iter, jter;
 
   for (iter = 0, jter = 2; iter < 100; iter++, jter++)
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]