re PR other/19093 (g++.dg/opt/max1.C fails on ia64 and x86_64)
authorAndrew Pinski <pinskia@physics.uc.edu>
Mon, 20 Dec 2004 21:07:13 +0000 (21:07 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 20 Dec 2004 21:07:13 +0000 (13:07 -0800)
2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>

        PR other/19093
        * g++.dg/opt/max1.C: Fix for 64bit targets.

From-SVN: r92430

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/max1.C

index 19bbb9ad0d37361d4c5230b428343178846b144e..d05d4ef1422b8724ad294f162ab9bfd9cd1d20a8 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR other/19093
+       * g++.dg/opt/max1.C: Fix for 64bit targets.
+
 2004-12-20  Matt Austern  <austern@apple.com>
 
        PR c++/19044
index 714116bfb03eb09247337f37fca306b884b34783..61b7021da66d704883bb9219f8deb534961b1a48 100644 (file)
@@ -10,7 +10,7 @@ long fff[10];
 void f(long a)
 {
   int i;
-  a =  *((long*)(a+5)) >? *((long*)(a+1)); 
+  a =  *((long*)(a+1+sizeof(long))) >? *((long*)(a+1)); 
 
   for(i=0;i<10;i++)
    fff[i] = a;