Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2010 16:37:46 +0100 (CET)
From:      Harald Hanche-Olsen <hanche@math.ntnu.no>
To:        pav@FreeBSD.org
Cc:        freebsd-ports-bugs@FreeBSD.org, ljrittle@acm.org
Subject:   Re: ports/152499: Redirections in es may take effect in the shell itself
Message-ID:  <20101124.163746.749301332968390730.hanche@math.ntnu.no>
In-Reply-To: <4CEBDB55.2010407@FreeBSD.org>
References:  <201011231326.oANDQWxv034019@freefall.freebsd.org> <20101123.154942.2128064273763517342.hanche@math.ntnu.no> <4CEBDB55.2010407@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I figured this one out: It seems to be a gcc optimization bug.

The problem goes away if I do

  cd /usr/ports/shells/es
  make build
  cd work/es-0.9-beta1
  rm prim-io.o
  make 'CFLAGS=-I. -pipe -fno-strict-aliasing'
  cd ../..
  make deinstall
  make reinstall

The CLAGS above are the usual CFLAGS for the build but without -O2.
Changing -O2 to -O1 is not sufficient.

What to do next? Report it to the gcc folks? What to do about the
shells/es port?

- Harald



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101124.163746.749301332968390730.hanche>