This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C: Proposal: Warning using char* a; if(a == "")
- To: dstarner98 at aasaa dot ofe dot org, dalecki at cs dot net dot pl
- Subject: Re: C: Proposal: Warning using char* a; if(a == "")
- From: John Marshall <john_w_marshall at palm dot com>
- Date: Fri, 5 Nov 1999 21:12:57 -0800 (PST)
- Cc: gcc at gcc dot gnu dot org (gcc)
David Starner wrote:
> Martin Dalecki wrote:
>> Joe Buck wrote:
>>> I do not believe that you can name me a platform where code of this form
>>> is safe. Even if the compiler collapses matching strings in the same
>>
>> PalmOS.
Rather no. The Palm OS ports of GCC/gld work as Joe described, just as
anyone would expect. But then I've only been working on the Palm OS port
for a year or so -- perhaps you have some stunning linker patches to share?
> (Also, is it documented that that's the way PalmOS works? Stuff like that
> can come around and bite you when they change it, and all the code that
> made assumations break.)
Indeed, it is not so documented.
John