[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] Re: posible issue on ia64 with va_args.
From: |
Andrew Suffield |
Subject: |
Re: [Gnu-arch-users] Re: posible issue on ia64 with va_args. |
Date: |
Thu, 18 Mar 2004 15:41:33 +0000 |
User-agent: |
Mutt/1.5.5.1+cvs20040105i |
On Tue, Mar 16, 2004 at 09:26:29AM -0500, Stefan Monnier wrote:
> > It happens with some debugging systems (which I believe was the
> > original intent), where they use a tagged NULL pointer so that instead
> > of "Dereferenced NULL <segfault>", you get "Dereferenced NULL from
> > foo.c:63 <segfault>", which can be very useful on occasion.
>
> Wouldn't that tend to cause problems where
>
> assert (NULL
> ==
> NULL);
>
> can fail?
No, it's all handled by the compiler. == on pointers is true for two
NULL pointers even if they have different tags. Usually they just
carve out a chunk of the address space for the "tag" value and do
pointer comparisons only on the other part.
--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : http://www.debian.org/ |
`. `' |
`- -><- |
signature.asc
Description: Digital signature
- [Gnu-arch-users] posible issue on ia64 with va_args., Robert Collins, 2004/03/10
- Re: [Gnu-arch-users] posible issue on ia64 with va_args., Tom Lord, 2004/03/11
- [Gnu-arch-users] Re: posible issue on ia64 with va_args., Miles Bader, 2004/03/11
- Re: [Gnu-arch-users] posible issue on ia64 with va_args., Andrew Suffield, 2004/03/11
- Re: [Gnu-arch-users] posible issue on ia64 with va_args., Jan Hudec, 2004/03/11
- [Gnu-arch-users] Re: posible issue on ia64 with va_args., Miles Bader, 2004/03/12
- [Gnu-arch-users] Re: posible issue on ia64 with va_args., Jan Hudec, 2004/03/12
- [Gnu-arch-users] Re: posible issue on ia64 with va_args., Miles Bader, 2004/03/12
- Re: [Gnu-arch-users] Re: posible issue on ia64 with va_args., Andrew Suffield, 2004/03/16
- [Gnu-arch-users] Re: posible issue on ia64 with va_args., Stefan Monnier, 2004/03/16
- Re: [Gnu-arch-users] Re: posible issue on ia64 with va_args.,
Andrew Suffield <=
- Re: [Gnu-arch-users] Re: posible issue on ia64 with va_args., Jan Hudec, 2004/03/18