re PR testsuite/47954 (gcc.dg/tree-ssa/ssa-ccp-33.c fails with link error on m68k...
authorMikael Pettersson <mikpe@it.uu.se>
Tue, 8 Mar 2011 10:45:46 +0000 (11:45 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 8 Mar 2011 10:45:46 +0000 (10:45 +0000)
2011-03-08  Mikael Pettersson  <mikpe@it.uu.se>

PR testsuite/47954
* gcc.dg/tree-ssa/ssa-ccp-33.c: Use __alignof__ not
sizeof to compute alignment.

From-SVN: r170773

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-33.c

index 7c8aad31abd1e2f163fa286e977d89081fa44cee..5a7c3f1ac01d316f21e021e68216a6fe50ea03ac 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-08  Mikael Pettersson  <mikpe@it.uu.se>
+
+       PR testsuite/47954
+       * gcc.dg/tree-ssa/ssa-ccp-33.c: Use __alignof__ not
+       sizeof to compute alignment.
+
 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/48022
index 5a890cae69f0be58258598350715660274760cdf..753676994e43de0084c2cfa4745e221944faa771 100644 (file)
@@ -8,7 +8,7 @@ void foo(int n)
   int *p;
   for (p = a; n != 0; --n, ++p)
     ;
-  if ((__SIZE_TYPE__)p & (sizeof (int) - 1))
+  if ((__SIZE_TYPE__)p & (__alignof__ (int) - 1))
     link_error ();
 }
 int main()