I've extracted a selfcontained testcase, seems like a gcc bug. I
reported it here:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63661

On Mon, Oct 27, 2014 at 5:04 PM, Volker Braun <[email protected]> wrote:
> Ok, my mistake. Passing CFLAGS optimization works, I just had it wrong.
>
> The testsuite passes for -O0 and -O1, but fails in specfunc with -O2
> as reported.
>
> On Sun, Oct 26, 2014 at 11:16 PM, Peter Johansson <[email protected]> wrote:
>> On 10/25/2014 02:32 AM, Volker Braun wrote:
>>>
>>> I tried to make a non-optimized build
>>> ("export CFLAGS=-O0") to debug this but gsl is overriding the
>>> optimization flags.
>>
>> When do you export? If you export before running configure, I'd consider it
>> a bug.
>>
>> Also, 'make CFLAGS=-O0' should work without overriding if GSL follows GNU
>> Coding Standard (which it is supposed to do I suppose).
>>
>> Cheers,
>>
>> --
>> Peter Johansson
>>

Reply via email to