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)
Robert Dewar <dewar@adacore.com> writes:
| Gabriel Dos Reis wrote:
|
| > The strict aliasing rule by itself does not show it is not a high level
| > assembly language. There are chips out there where you cannot access
| > data willy-nilly through random register types.
|
| And there are chips for which signed arithmetic is not wrap around!
yes, but that is irrelevant, the assumptin was made that
one knows what the chip provides.
numeric_limits<T> is target dependent.
-- Gaby