gcc -O2 error

Jeremy Chadwick koitsu at freebsd.org
Sun Mar 23 13:06:52 PDT 2008


On Sun, Mar 23, 2008 at 09:27:45PM +0200, Mikael Ikivesi wrote:
> On Sun, 23 Mar 2008 04:58:01 -0700
> Jeremy Chadwick <koitsu at freebsd.org> wrote:
> > 
> > There's an off-by-one error in your code, which is very likely
> > tickling a bug in gcc.
> 
> Thanks..
> I know...took me a while to find it.
> And as code still seemed to work when built without -O2 it was hard
> to spot. I sent bug report to gcc team as the -O2 did bork it,
> regardless of my buggy coding :)

Thumbs up!  :-)  Despite the error, gcc still shouldn't behave that way,
so I do hope they fix it.

-- 
| Jeremy Chadwick                                    jdc at parodius.com |
| Parodius Networking                           http://www.parodius.com/ |
| UNIX Systems Administrator                      Mountain View, CA, USA |
| Making life hard for others since 1977.                  PGP: 4BD6C0CB |



More information about the freebsd-stable mailing list