Commit 370ef46b by Mikael Pettersson Committed by Richard Biener

re PR testsuite/47954 (gcc.dg/tree-ssa/ssa-ccp-33.c fails with link error on m68k-linux)

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
parent 32bd2409
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
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment