From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19008 invoked by alias); 22 Oct 2011 05:21:34 -0000 Received: (qmail 18999 invoked by uid 22791); 22 Oct 2011 05:21:33 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_GJ,TW_NX X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 22 Oct 2011 05:21:19 +0000 Received: by pzd13 with SMTP id 13so12191993pzd.6 for ; Fri, 21 Oct 2011 22:21:19 -0700 (PDT) Received: by 10.68.65.199 with SMTP id z7mr4664348pbs.111.1319260879281; Fri, 21 Oct 2011 22:21:19 -0700 (PDT) Received: from [192.168.1.4] ([112.94.251.175]) by mx.google.com with ESMTPS id d8sm6208285pbb.6.2011.10.21.22.21.15 (version=SSLv3 cipher=OTHER); Fri, 21 Oct 2011 22:21:18 -0700 (PDT) Message-ID: <4EA252C9.9060900@gmail.com> Date: Sat, 22 Oct 2011 13:18:00 -0000 From: xunxun User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20110929 Thunderbird/7.0 MIME-Version: 1.0 To: jojelino CC: gcc@gcc.gnu.org, qemu-devel@nongnu.org, Kai Tietz Subject: Re: gcc auto-omit-frame-pointer vs msvc longjmp References: <4E9BB180.6080506@mc.net> <4E9C0497.2000605@siriusit.co.uk> <4E9C3703.3040109@mc.net> <4E9C645A.5060200@twiddle.net> <4E9C9C08.20001@mc.net> <4E9CAACE.4070804@mc.net> <4E9F3BB4.3050604@mc.net> <4EA250E0.3080808@gmail.com> In-Reply-To: <4EA250E0.3080808@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg00399.txt.bz2 于 2011/10/22 13:13, xunxun 写道: > Hi, all > > It seems that gcc's auto-omit-frame-pointer has other problems. > > The example is from mingw bug tracker: > http://sourceforge.net/tracker/?func=detail&aid=3426555&group_id=2435&atid=102435 > > g++ -O3 main.cpp running will crash. > g++ -O2 main.cpp running no crash. > g++ -O3 -fno-omit-frame-pointer running no crash. > > I don't know in the end which optimize option defaultly contains > this switch "-fomit-frame-pointer" on i686-pc-mingw32 or > x86_64-w64-mingw32? > It crashes on Win7. -- Best Regards, xunxun