[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: segfault on solaris10/sparc
From: |
Richard Frith-Macdonald |
Subject: |
Re: segfault on solaris10/sparc |
Date: |
Fri, 20 Jun 2014 10:02:18 +0100 |
On 20 Jun 2014, at 09:14, Riccardo Mottola <riccardo.mottola@libero.it> wrote:
> Hi,
>
> Wolfgang Lux wrote:
>> Does it still segfault if you compile the program with "gcc -O2
>> config.align.c" and then run "a.out"? It's about a decade ago that I have
>> been using a Sparc machine, but I recall having a similar problem where gcc
>> was generating code with different alignment constraints depending on
>> whether optimization was turned on or not. Though in my case the problem was
>> for floating point numbers.
> so it is! the version compiled with gcc -O2 does not crash.
>
> I wonder if we can foce executing the test without opt. flags or complicate
> so that it doesn't get optimized..
Adding -O0 should turn off optimisation (cancelling the effect of the -O2) ...
I made that change to the configure script ion svn.
Please could you give it a try.