This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: signed is undefined and has been since 1992 (in GCC)
Paul Koning <pkoning@equallogic.com> writes:
>>>>>> "Gabriel" == Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
>
> Gabriel> When it comes down for the compiler writer to chose
> Gabriel> something for undefined behaviour, it is hardly solely based
> Gabriel> on the C standard. In fact, the C standard is of much less
> Gabriel> help because it gaves up.
>
> That's my reaction as well. The standard says "do something". The
> compiler has to pick a "something".
But it does not have to be consistent.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."