This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C: Proposal: Warning using char* a; if(a == "")


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]