Serious code generation/optimisation bug (I think)
Robert Dewar
dewar@adacore.com
Wed Jan 28 21:42:00 GMT 2009
PaweÅ Sikora wrote:
> do you say that we can't write a valid/defined program in C for
> e.g. arm architercture? on some arms, the object (vector interrupt table)
> starts at adress 0x0.
If 0 is a valid address, then it is improper for the compiler to use
0 to represent the null pointer. You may have in mind the idea that
the null pointer has a representation of all zero bits, but there is
no such requirement or suggestion in the C language.
More information about the Gcc
mailing list