]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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:09:37 +0000 (21:09 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 20 Dec 2004 21:09:37 +0000 (13:09 -0800)
2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>

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

From-SVN: r92432

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

index d3b6dcd2d145364a3f7da9b905f7d5116010f010..77835acc15c2e0daa6eb798be7ff486cd44e4b47 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-19  Roger Sayle  <roger@eyesopen.com>
 
        PR middle-end/19068
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;