This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Runtime SEGV from gcc -O3 -march=native
- From: "Joseph Quinsey" <jquinsey at entrenet dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 22 Jul 2010 22:16:24 -0400
- Subject: Runtime SEGV from gcc -O3 -march=native
FYI. Source code:
int main(void) {
static int foo[4];
int bar[4];
int i;
for (i = 0; i < 4; i++)
foo[i] = bar[i];
return 0;
}
Compile and run, using Cygwin's current gcc version 4.3.4:
gcc -O3 -march=native foobar.c
a.exe
Segmentation fault (core dumped)
I've submitted a bug report to gcc, and it has been flagged as a duplicate
of the 2008 report: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216
--
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