This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: avoid NULL pointer ambiguity in mn10300 sim
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Jeff Johnston <jjohnstn at redhat dot com>
- Cc: newlib at sources dot redhat dot com
- Date: 02 Jun 2004 23:25:57 -0300
- Subject: Re: avoid NULL pointer ambiguity in mn10300 sim
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <oru0xtsnaq.fsf@free.redhat.lsd.ic.unicamp.br><40BE3F6D.5010506@redhat.com>
On Jun 2, 2004, Jeff Johnston <jjohnstn@redhat.com> wrote:
> Should that offset be aligned (i.e. 4 or 8)?
It could, but it would just increase the waste. If any of the other
sections needs alignment, it shall require alignment itself.
> Alexandre Oliva wrote:
>> GDB gets thoroughly confused if the address of the start symbol looks
>> like a NULL pointer. ISO C requires no other pointer to compare equal
>> to the NULL pointer as well, so make sure we don't have any objects at
>> address zero.
>> Ok to install?
>> ------------------------------------------------------------------------
>>
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}