From 370ef46b1adf6423f385e345de571c34fc430994 Mon Sep 17 00:00:00 2001 From: Mikael Pettersson Date: Tue, 8 Mar 2011 11:45:46 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-33.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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() -- 2.30.2