| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-0.6 required=5.0 tests=AWL,BAYES_40,SPF_HELO_PASS |
| X-Spam-Check-By: | sourceware.org |
| From: | "Joseph Quinsey" <jquinsey AT entrenet DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | Runtime SEGV from gcc -O3 -march=native |
| Date: | Thu, 22 Jul 2010 22:16:24 -0400 |
| Message-ID: | <61B489A657B04867A1F3F67BD171C4D0@LeakyCauldron> |
| MIME-Version: | 1.0 |
| X-Declude-Sender: | jquinsey AT entrenet DOT com [199.246.24.8] |
| X-Declude-Spoolname: | Dfb8000fd0000f661.smd |
| X-Declude-RefID: | str=0001.0A090202.4C48FB7E.0079,ss=1,fgs=0 |
| X-Declude-Note: | Scanned by Declude 4.10.53 "http://www.declude.com/x-note.htm" |
| X-Declude-Scan: | Outgoing Score [-2] at 22:16:45 on 22 Jul 2010 |
| X-Declude-Tests: | NOPOSTMASTER [1], SPFPASS [-2], FILTER_COUNTRY [0] |
| X-Country-Chain: | CANADA->destination |
| X-Declude-Code: | e |
| X-Declude-Recipcount: | 1 |
| X-Helo: | relay.thehostingservice.com |
| X-RevDNS: | relay.thehostingservice.com |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |