This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] [C++ ABI] support non-standard integer types in mangle.c
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "Markus F.X.J. Oberhumer" <markus at oberhumer dot com>
- Cc: Geoffrey Keating <geoffk at geoffk dot org>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Apr 2005 08:30:41 -0700
- Subject: Re: [RFC] [C++ ABI] support non-standard integer types in mangle.c
- Organization: CodeSourcery, LLC
- References: <4226377B.8000500@oberhumer.com> <m2650847ep.fsf@greed.local> <4227A868.6070502@oberhumer.com> <4227B63A.2050207@codesourcery.com> <425BCAD6.5030809@oberhumer.com>
Markus F.X.J. Oberhumer wrote:
! if (TYPE_UNSIGNED (type))
! {
! write_unsigned_number (4 + len);
! write_string ("uint");
! }
! else
! {
! write_unsigned_number (3 + len);
! write_string ("int");
! }
Do this part as:
prefix = TYPE_UNSIGNED (type) ? "uint" : "int";
write_unsigned_number (strlen (prefix) + len);
write_string (prefix);
With that change, this patch is OK.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304