This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unreachable code warning conflicts with optomisation


On Fri, Sep 26, 2003 at 11:51:30AM +0200, David Brown wrote:
> The optomiser will combine the "sendNewline()" calls, which is good.
> However, two of the three calls are now flagged as "unreachable", which is
> not the case.

I can't reproduce this at all, using your code and -Wall on
gcc 2.95.4. What version do you use and how do you compile
it?
 
> I suppose this problem is a general gcc one rather than a crossgcc issue,
> but maybe someone here has come across this and has some ideas?  Or should I
> ask on a gcc list (I don't know if it really counts as a "bug" for a bug
> report)?

IMO it's definitely a gcc bug: it warns you of something
that really isn't there.

/Y

-- 
This signature left empty.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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