re PR c++/71973 (c++ handles built-in functions inconsistently)
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Nov 2016 18:55:11 +0000 (19:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Nov 2016 18:55:11 +0000 (19:55 +0100)
PR c++/71973
* g++.dg/torture/pr53321.C (size_t): Use __SIZE_TYPE__ instead of
long unsigned int.
* g++.dg/torture/pr63512.C (::strlen): Use __SIZE_TYPE__ instead of
unsigned long.

From-SVN: r242677

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr53321.C
gcc/testsuite/g++.dg/torture/pr63512.C

index 7dbfcaa8c30dd9248abf0bfcc2f5da07acff52bd..d672a47a8e7faff440654ec382854dd512a997dc 100644 (file)
@@ -1,3 +1,11 @@
+2016-11-21  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/71973
+       * g++.dg/torture/pr53321.C (size_t): Use __SIZE_TYPE__ instead of
+       long unsigned int.
+       * g++.dg/torture/pr63512.C (::strlen): Use __SIZE_TYPE__ instead of
+       unsigned long.
+
 2016-11-20  Jeff Law  <law@redhat.com>
 
        PR target/25128
index 40a2de731d7849b2b229d2d824d7984c8a45204f..4dd5af8443d8ea3a23a10d60601175699bd91fb4 100644 (file)
@@ -2,7 +2,7 @@
 // { dg-require-profiling "-fprofile-generate" }
 // { dg-options "-fprofile-generate" }
 
-typedef long unsigned int size_t;
+typedef __SIZE_TYPE__ size_t;
 
 extern "C"
 {
index 954901443fdacca15d5458734e5b183716428793..1c1899dc6d82792e25378f0fd11cca4c1ee89366 100644 (file)
@@ -2,7 +2,7 @@
 
 extern "C" {
 void __assert_fail ();
-unsigned long strlen (const char *);
+__SIZE_TYPE__ strlen (const char *);
 }
 class A
 {