From: Mikael Pettersson Date: Tue, 8 Mar 2011 10:45:46 +0000 (+0100) Subject: re PR testsuite/47954 (gcc.dg/tree-ssa/ssa-ccp-33.c fails with link error on m68k... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=370ef46b1adf6423f385e345de571c34fc430994;p=gcc.git re PR testsuite/47954 (gcc.dg/tree-ssa/ssa-ccp-33.c fails with link error on m68k-linux) 2011-03-08 Mikael Pettersson PR testsuite/47954 * gcc.dg/tree-ssa/ssa-ccp-33.c: Use __alignof__ not sizeof to compute alignment. From-SVN: r170773 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7c8aad31abd..5a7c3f1ac01 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-03-08 Mikael Pettersson + + PR testsuite/47954 + * gcc.dg/tree-ssa/ssa-ccp-33.c: Use __alignof__ not + sizeof to compute alignment. + 2011-03-08 Jakub Jelinek PR tree-optimization/48022 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-33.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-33.c index 5a890cae69f..753676994e4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-33.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-33.c @@ -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()