On 2/28/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote:
> On 2/27/06, Hiroshi SAKURAI <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm using fish-1.21.1 on NetBSD 3.0.
> >
> > Fish exits when it receives SIGWINCH if it was built with -O2.
> > If built with -O1, the problem does not occur.
>
> Stange. Fish has a handler for WINCH, so it should definitely not
> exit. Does this mean fish exits when you change the window size of a
> virtual terminal?

Yes, fish exits when you change the window size.
I have not noticed the problem as I rarely resize windows with
tiling window manager called 'larswm'.

It seems that 'sibling call optimization' of gcc caused the problem.
Fish built with '-O2 -fno-optimize-sibling-calls' does not exit on SIGWINCH.

> > http://mail-index.NetBSD.org/netbsd-users/2006/02/26/0001.html
> >
> > I think it's not fish's problem, but it would be nice if
> > Makefile uses -O1 instead of -O2.
>
> The fish Makefile does not explicitly set any optimization level. -O2
> comes from Autoconf. I don't know how to ask Autoconf how to change
> the default optimization level, and the Autoconf manual doesn't say.
> Does anybody know?

I think Adding -fno-optimize-sibling-calls to CFLAGS in Makefile.in should
prevent the problem.
Will you add the flag in the next release?

--
Hiroshi SAKURAI
http://vimrc.hp.infoseek.co.jp/


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to