Boost logo

Boost-Build :

Subject: Re: [Boost-build] Anyone know what's up with bug #7212?
From: Kim Rasmussen (rasmussen74_at_[hidden])
Date: 2012-08-30 04:46:59


Hi!

>> If I had to make a guess I'd suspect -ftree-vrp
>> or possibly -ftree-pre.

That would be my guess too.

> We'll see if Kim finds the time and the will to do some more digging...
> :-)

Well, I did a bit more digging, 'cause it's really annoying me... ...
and because I have lost a bit of faith in gcc 4.6.0.

> Kim, can you also try compiling the same code with a bit newer gcc
> version? Possibly 4.6.1?

I have tried compiling with gcc 4.6.1 and gcc 4.6.2. The target
system is a production system, so for various reasons, I cannot yet
use gcc 4.7 series.

Anyway, to cut to the chase, both gcc 4.6.1 and gcc 4.6.2 successfully
compile the small test case described earlier in this thread :-) So
gcc 4.6.0 is definitely broken for the loop/while/goto construct when
using -Os, -O2 or -O3.

I have now thrown Boost 1.51 at gcc 4.6.2 and will report the results shortly.

Best regards
Kim


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk