OSDN Git Service

2009-06-10 Kai Tietz <kai.tietz@onevision.com>
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jun 2009 11:41:30 +0000 (11:41 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jun 2009 11:41:30 +0000 (11:41 +0000)
        * g++.dg/torture/pr31579.C: Cast pointer
        via __SIZE_TYPE__ instead of 'unsigned long'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148342 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr31579.C

index d23e58e..da1fef2 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * testsuite/lib/target-supports.exp (check_profiling_available):
index 1effa66..131532e 100644 (file)
@@ -5,6 +5,6 @@
 struct Industry {
  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);