This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] [C++ ABI] support non-standard integer types in mangle.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]