| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=0.8 required=5.0 tests=BAYES_50,SPF_HELO_PASS |
| X-Spam-Check-By: | sourceware.org |
| From: | "Joseph Quinsey" <jquinsey AT entrenet DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| References: | |
| Subject: | RE: Runtime SEGV from gcc -O3 -march=native |
| Date: | Mon, 26 Jul 2010 12:16:03 -0400 |
| Message-ID: | <5658D512251040778D1DF5B5D583ADC9@LeakyCauldron> |
| MIME-Version: | 1.0 |
| In-Reply-To: | |
| X-Declude-Sender: | jquinsey AT entrenet DOT com [199.246.24.8] |
| X-Declude-Spoolname: | Db4bc00d500000bec.smd |
| X-Declude-RefID: | str=0001.0A090209.4C4DB4C6.00DB,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 [-5] at 12:16:11 on 26 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: | firemagma2.entrenet.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 |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |