Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bad optimisations: (Was: Test version zsh-3.1.6-test-1)



Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> typed:
:Geoff Wing wrote:
:> What about just expanding it slightly (with appropriate comments of course)
:> instead of duplicating it.
:> e.g.
:>     if (*args && **args == '?')
:>         args++;
:>     /* default result parameter */
:>     if (*args)
:>         reply = *args++;
:>     else
:>         reply = ops['A'] ? "reply" : "REPLY";
:Note this isn't intended as an optimisation (of course), but to work
:around a bug in gcc-2.8.1 under DU.

I thought it may be a gcc optimisation bug.  i.e. Does it appear at -O0 or
-01 or -O2?  All of them?

Regards,
-- 
Geoff Wing : <gcw@xxxxxxxxx>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@xxxxxxxx>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@xxxxxxx>       Phone   : (Australia) 0413 431 874



Messages sorted by: Reverse Date, Date, Thread, Author