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: [PATCH] Partial mode enumerals in signed_or_unsigned_type


Roger Sayle wrote:

Ok for mainline? If not, would Mark's C++-only fix be preferred?

Yes, that's certainly better than my version.


Although I'm somewhat disturbed by the concept of flipping the signedness of an enumeration type, despite RTH's comments. An enumeration type has the signedness it has. If the middle end wants to convert it to an integer type, and then be clever, I'm perfectly comfortable with that -- but in my opinion we shouldn't need this patch at all.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com


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