Commit 0edc11f5 by Kai Tietz Committed by Kai Tietz

struct-layout-1_x1.h: Add __SIZE_TYPE__ cast to avoid pointer truncation warning.

2008-09-26  Kai Tietz  <kai.tietz@onevision.com>

	* g++.dg/compat/struct-layout-1_x1.h: Add __SIZE_TYPE__ cast
	to avoid pointer truncation warning.

From-SVN: r140686
parent 4ee279f2
2008-09-26 Kai Tietz <kai.tietz@onevision.com>
* g++.dg/compat/struct-layout-1_x1.h: Add __SIZE_TYPE__ cast
to avoid pointer truncation warning.
2008-09-26 Dorit Nuzman <dorit@il.ibm.com>
PR tree-optimization/37574
......
......@@ -56,7 +56,7 @@ void test##n (void) \
info.als = __alignof__ (s##n); \
info.ala0 = __alignof__ (a##n[0]); \
info.ala3 = __alignof__ (a##n[3]); \
if (((long) &a##n[3]) & (info.als - 1)) \
if (((long) (__SIZE_TYPE__) &a##n[3]) & (info.als - 1)) \
FAIL (n, 1); \
i = 0; j = 0; \
ops \
......
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