This is the mail archive of the gcc@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: Serious code generation/optimisation bug (I think)


On Wednesday 28 of January 2009 17:39:39 Andrew Haley wrote:
> ZoltÃn KÃcsi wrote:
> >> No, this is since C90; nothing has changed in this area.  NULL
> >> doesn't mean "address 0", it means "nothing".  The C statement
> >>
> >>   if (ptr)
> >>
> >> doesn't mean "if ptr does not point to address zero", it means "if ptr
> >> points to something".
> >
> > A question then:
> >
> > How can I make a pointer to point to the integer located at address
> > 0x0?
>
> Didn't we address this before?  You can't.

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.


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