This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Multichar charconst changes
Jonathan Lennox wrote:-
> MacOS (OS <= 9 and Carbon) depends heavily on it. Four-char constants are
> used to name resources, and for file / creator codes, so they're part of the
> system API. I imagine Mac programmers would scream heavily if their
> valuation changed. (And yes, 8-bit chars are commonly used in
> four-character codes, and chars are signed.)
>
> I've added Stan Shebs to the CC line so he can contradict me if he likes, or
> scream.
When I apply my patch in a couple of hours time, I'd appreciate it if
someone could test that GCC gives the correct answers there. If not,
we need to create some more testcases.
Were 2-char charconsts with bit 16 set expected to sign-extend to
32-bits?
Neil.