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
This commit is contained in:
Mikael Pettersson 2011-03-08 11:45:46 +01:00 committed by Richard Biener
parent 32bd240907
commit 370ef46b1a
2 changed files with 7 additions and 1 deletions

View 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

View 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()