This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Pointers Extend Unsigned Question
- To: donn at interix dot com (Donn Terry)
- Subject: Re: Pointers Extend Unsigned Question
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Thu, 29 Apr 1999 18:21:34 +0100 (BST)
- Cc: egcs at egcs dot cygnus dot com, egcs-bugs at egcs dot cygnus dot com, kenner at gnat dot com
> This is an extract of a trivial function returning a pointer,
> where the value is (ptr) (HOST_WIDE_INT) -1. (Don't say
> "don't do that": it's from gcc/calls.c!)
If the value is compared against (ptr) (HOST_WIDE_INT) -1 ,
and the compiler does the extensions consistently, this should
work regardless of whether it zero extends or sign extends.