From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHU1M-0008AD-8m for qemu-devel@nongnu.org; Sat, 22 Oct 2011 01:21:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHU1I-0005P7-Jg for qemu-devel@nongnu.org; Sat, 22 Oct 2011 01:21:24 -0400 Received: from mail-gx0-f173.google.com ([209.85.161.173]:41864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHU1I-0005Oi-9j for qemu-devel@nongnu.org; Sat, 22 Oct 2011 01:21:20 -0400 Received: by ggnr5 with SMTP id r5so5440944ggn.4 for ; Fri, 21 Oct 2011 22:21:19 -0700 (PDT) Message-ID: <4EA252C9.9060900@gmail.com> Date: Sat, 22 Oct 2011 13:21:13 +0800 From: xunxun MIME-Version: 1.0 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 Subject: Re: [Qemu-devel] gcc auto-omit-frame-pointer vs msvc longjmp List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: jojelino Cc: gcc@gcc.gnu.org, Kai Tietz , qemu-devel@nongnu.org 于 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