]> 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:12:34 +0000 (21:12 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 20 Dec 2004 21:12:34 +0000 (13:12 -0800)
2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>

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

From-SVN: r92434

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

index 383a8e6082a44c8e754374eedb91b2b84485f41c..66d3d33a4b041c1ddddc2b39bf1484dd98177078 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;