This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch, committed as obvious] PR 58190
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>, wmi at google dot com
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 20 Aug 2013 13:48:06 +0200
- Subject: Re: [C++ Patch, committed as obvious] PR 58190
- References: <521355CB dot 9060803 at oracle dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Aug 20, 2013 at 01:40:59PM +0200, Paolo Carlini wrote:
> simply matter of using __SIZE_TYPE__. Committed to mainline.
Please apply it to branches/gcc-4_8-branch too.
Also note that the ChangeLog entry for it was wrong originally (both on
trunk and the branch):
2013-07-18 Wei Mi <wmi@google.com>
PR rtl-optimization/57878
* g++.dg/pr57518.C: New test.
518 instead of 878 (the testcase name is correct though).
> 2013-08-20 Paolo Carlini <paolo.carlini@oracle.com>
>
> PR c++/58190
> * g++.dg/pr57878.C: Use __SIZE_TYPE__.
> Index: g++.dg/pr57878.C
> ===================================================================
> --- g++.dg/pr57878.C (revision 201871)
> +++ g++.dg/pr57878.C (working copy)
> @@ -6,7 +6,7 @@ typedef long long int64;
> typedef unsigned int uint32;
> typedef unsigned long long uint64;
> namespace std {
> - typedef unsigned int size_t;
> + typedef __SIZE_TYPE__ size_t;
> template<class _CharT>
> struct char_traits;
> template<typename _Tp>
> @@ -22,7 +22,7 @@ namespace std {
> return static_cast<_Tp&&>(__t);
> }
> }
> -typedef unsigned int size_t;
> +typedef __SIZE_TYPE__ size_t;
> extern "C++" {
> inline void* operator new(std::size_t, void* __p) noexcept {
> return __p;
Jakub