Re: gcc -O2 error

2008-03-23 Thread Mikael Ikivesi
On Sat, 22 Mar 2008 19:39:32 +0100 Kris Kennaway [EMAIL PROTECTED] wrote: So, did you consider perhaps following this advice? ;-) Kris Yes I did. The reason I send to this list also is that in make.conf manual says: CFLAGS(str) Controls the compiler setting when compiling C code.

Re: gcc -O2 error

2008-03-23 Thread Mikael Ikivesi
On Sun, 23 Mar 2008 04:58:01 -0700 Jeremy Chadwick [EMAIL PROTECTED] 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

gcc -O2 error

2008-03-22 Thread Mikael Ikivesi
Hi I am running uptodate RELENG_7. It has gcc (GCC) 4.2.1 20070719 [FreeBSD]. I tried to track down segfaults from my code and I accidentaly found a optimization error. Code did not segfault when compiled without optimization but crashed when -O2 was used. I tried to track it I could make the