This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Runtime SEGV from gcc -O3 -march=native
- From: Huang Bambo <bambo dot huang at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 27 Jul 2010 07:29:48 +0800
- Subject: Re: Runtime SEGV from gcc -O3 -march=native
- References: <5658D512251040778D1DF5B5D583ADC9@LeakyCauldron>
Use -O2 instead, I also have trouble on use -O3.
2010/7/27 Joseph Quinsey <jquinsey@entrenet.com>:
> Again, just FYI, with a simpler example, and with -march=native replaced by
> k8 or athlon64.
>
> Source code:
>
> int main(void) {
> ? ?static int foo[4];
> ? ?int i;
> ? ?for (i = 0; i < 4; i++)
> ? ? ? ?foo[i] = 0;
> ? ?return 0;
> }
>
> Compile and run, using Cygwin's current gcc version 4.3.4:
>
> ? ?gcc -O3 -march=athlon64 foobar.c
> ? ?./a.exe
> ? ?Segmentation fault (core dumped)
>
>
> --
> Problem reports: ? ? ? http://cygwin.com/problems.html
> FAQ: ? ? ? ? ? ? ? ? ? http://cygwin.com/faq/
> Documentation: ? ? ? ? http://cygwin.com/docs.html
> Unsubscribe info: ? ? ?http://cygwin.com/ml/#unsubscribe-simple
>
>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple