segfault with -O3
Andrew Haley
aph@redhat.com
Tue Feb 1 15:15:00 GMT 2011
On 02/01/2011 02:40 PM, manju k wrote:
> I am getting segfault in my application if i compile it using -O3 flag ,
> removing this flag during compilation resolves the problem
>
> I am using gcc 4.1.2 on intel 64bit system.
>
> The core file does not point to anything that I suppect of in my application.
>
> How do I isolate if it is gcc problem or my application problem ?
Is this GNU/Linux? Run with Valgind memcheck.
If that doesn't help, check compiler warnings and use gdb.
Andrew.
More information about the Gcc-help
mailing list