From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joern Rennecke To: donn@interix.com (Donn Terry) Cc: egcs@egcs.cygnus.com, egcs-bugs@egcs.cygnus.com, kenner@gnat.com Subject: Re: Pointers Extend Unsigned Question Date: Fri, 30 Apr 1999 23:15:00 -0000 Message-ID: <199904291721.SAA16912@phal.cygnus.co.uk> References: <37287C0D.4AFC5D1D@interix.com> X-SW-Source: 1999-04n/msg01056.html Message-ID: <19990430231500.KNqHxpClRxvqqtp05g0nVjWFkFnneRO15EtCXM6Bmwg@z> > 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.