OSDN Git Service

2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Dec 2004 21:07:13 +0000 (21:07 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Dec 2004 21:07:13 +0000 (21:07 +0000)
        PR other/19093
        * g++.dg/opt/max1.C: Fix for 64bit targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92430 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 19bbb9a..d05d4ef 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 714116b..61b7021 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;