Program that segfaults with-Ofast
Andrew Haley
aph@redhat.com
Wed Jan 3 13:59:00 GMT 2018
On 03/01/18 12:28, Christer Solskogen wrote:
> ... but works fine with O2.
> How can I debug that?
In GDB.
> It does not with happen on 6.3.0, but it does with 7.2.0. Or.. say in
> another way: It works in Raspbian, but not in Arch Linux ARM. And it's
> quite easy to make the assumption that the compiler is to blame (it
> might not be!)
>
> So the question is... How can I debug it?
Run it in GDB, and look at where the segfault happens. It's probably
not a compiler bug. Come back when you have more info.
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the Gcc-help
mailing list