Commit c9edd8f4 by Kai Tietz Committed by Kai Tietz

pr31579.C: Cast pointer via __SIZE_TYPE__ instead of 'unsigned long'.

2009-06-10  Kai Tietz  <kai.tietz@onevision.com>

        * g++.dg/torture/pr31579.C: Cast pointer
        via __SIZE_TYPE__ instead of 'unsigned long'.

From-SVN: r148342
parent 412ac8d5
2009-06-10 Kai Tietz <kai.tietz@onevision.com>
* g++.dg/torture/pr31579.C: Cast pointer
via __SIZE_TYPE__ instead of 'unsigned long'.
2009-06-10 Anthony Green <green@moxielogic.com> 2009-06-10 Anthony Green <green@moxielogic.com>
* testsuite/lib/target-supports.exp (check_profiling_available): * testsuite/lib/target-supports.exp (check_profiling_available):
......
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
struct Industry { struct Industry {
unsigned char produced_cargo[2]; unsigned char produced_cargo[2];
}; };
unsigned int a = (((unsigned long)&reinterpret_cast<const volatile unsigned int a = (((__SIZE_TYPE__)&reinterpret_cast<const volatile
char&>((((Industry*)(char*)8)->produced_cargo[0]))) - 8); char&>((((Industry*)(char*)8)->produced_cargo[0]))) - 8);
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