X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <5658D512251040778D1DF5B5D583ADC9@LeakyCauldron> References: <5658D512251040778D1DF5B5D583ADC9 AT LeakyCauldron> Date: Tue, 27 Jul 2010 07:29:48 +0800 Message-ID: Subject: Re: Runtime SEGV from gcc -O3 -march=native From: Huang Bambo To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Use -O2 instead, I also have trouble on use -O3. 2010/7/27 Joseph Quinsey : > Again, just FYI, with a simpler example, and with -march=3Dnative replace= d by > k8 or athlon64. > > Source code: > > int main(void) { > =A0 =A0static int foo[4]; > =A0 =A0int i; > =A0 =A0for (i =3D 0; i < 4; i++) > =A0 =A0 =A0 =A0foo[i] =3D 0; > =A0 =A0return 0; > } > > Compile and run, using Cygwin's current gcc version 4.3.4: > > =A0 =A0gcc -O3 -march=3Dathlon64 foobar.c > =A0 =A0./a.exe > =A0 =A0Segmentation fault (core dumped) > > > -- > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/ > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html > Unsubscribe info: =A0 =A0 =A0http://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