From afb34582771843f86e72c4d7dca60220d0591c95 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 21 Nov 2016 19:55:11 +0100 Subject: [PATCH] re PR c++/71973 (c++ handles built-in functions inconsistently) 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 | 8 ++++++++ gcc/testsuite/g++.dg/torture/pr53321.C | 2 +- gcc/testsuite/g++.dg/torture/pr63512.C | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7dbfcaa8c30..d672a47a8e7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2016-11-21 Jakub Jelinek + + 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 PR target/25128 diff --git a/gcc/testsuite/g++.dg/torture/pr53321.C b/gcc/testsuite/g++.dg/torture/pr53321.C index 40a2de731d7..4dd5af8443d 100644 --- a/gcc/testsuite/g++.dg/torture/pr53321.C +++ b/gcc/testsuite/g++.dg/torture/pr53321.C @@ -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" { diff --git a/gcc/testsuite/g++.dg/torture/pr63512.C b/gcc/testsuite/g++.dg/torture/pr63512.C index 954901443fd..1c1899dc6d8 100644 --- a/gcc/testsuite/g++.dg/torture/pr63512.C +++ b/gcc/testsuite/g++.dg/torture/pr63512.C @@ -2,7 +2,7 @@ extern "C" { void __assert_fail (); -unsigned long strlen (const char *); +__SIZE_TYPE__ strlen (const char *); } class A { -- 2.30.2