From: asmwarrior <asmwarrior@gmail.com>
To: Kai Tietz <ktietz70@googlemail.com>
Cc: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>,
"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>,
qemu-devel <qemu-devel@nongnu.org>, xunxun <xunxun1982@gmail.com>,
Bob Breuer <breuerr@mc.net>, Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] gcc auto-omit-frame-pointer vs msvc longjmp
Date: Sat, 22 Oct 2011 22:23:39 +0800 [thread overview]
Message-ID: <4EA2D1EB.4060106@gmail.com> (raw)
In-Reply-To: <CAEwic4Zey2f6fzSOAiGtyxuBnN2zSPwQCcDdTDdL8-DOiqC2GQ@mail.gmail.com>
On 2011-10-20 23:34, Kai Tietz wrote:
> Hi,
>
> For trunk-version I have a tentative patch for this issue. On 4.6.x
> and older branches this doesn't work, as here we can't differenciate
> that easy between ms- and sysv-abi.
>
> But could somebody give this patch a try?
>
> Regards,
> Kai
>
> ChangeLog
>
> * config/i386/i386.c (ix86_frame_pointer_required): Enforce use of
> frame-pointer for 32-bit ms-abi, if setjmp is used.
>
> Index: i386.c
> ===================================================================
> --- i386.c (revision 180099)
> +++ i386.c (working copy)
> @@ -8391,6 +8391,10 @@
> if (SUBTARGET_FRAME_POINTER_REQUIRED)
> return true;
>
> + /* For older 32-bit runtimes setjmp requires valid frame-pointer. */
> + if (TARGET_32BIT_MS_ABI&& cfun->calls_setjmp)
> + return true;
> +
> /* In ix86_option_override_internal, TARGET_OMIT_LEAF_FRAME_POINTER
> turns off the frame pointer by default. Turn it back on now if
> we've not got a leaf function. */
>
I just see two related links about this issue:
see:
http://stackoverflow.com/questions/5887552/setjmp-and-omit-frame-pointer
and
http://connect.microsoft.com/VisualStudio/feedback/details/666704/visual-c-generates-incorrect-code-with-omit-frame-pointer-and-setjmp
I'm not sure microsoft has fix this issue.
asmwarrior
ollydbg from codeblocks' forum
next prev parent reply other threads:[~2011-10-22 14:20 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-17 4:39 [Qemu-devel] qemu-system-sparc io-thread segfault on win32 Bob Breuer
[not found] ` <4E9C0497.2000605@siriusit.co.uk>
2011-10-17 14:09 ` Bob Breuer
2011-10-17 17:22 ` [Qemu-devel] gcc auto-omit-frame-pointer vs msvc longjmp Richard Henderson
2011-10-17 19:14 ` Blue Swirl
2011-10-17 20:11 ` Richard Henderson
2011-10-17 21:20 ` Bob Breuer
2011-10-17 21:31 ` Kai Tietz
2011-10-17 22:23 ` Bob Breuer
2011-10-17 22:56 ` Kai Tietz
2011-10-19 21:05 ` Bob Breuer
2011-10-19 22:19 ` Richard Henderson
2011-10-20 4:22 ` xunxun
2011-10-20 14:48 ` Kai Tietz
2011-10-20 15:34 ` Kai Tietz
[not found] ` <j7sgfi$i66$1@dough.gmane.org>
2011-10-22 5:13 ` xunxun
2011-10-22 5:21 ` xunxun
2011-10-22 11:19 ` Kai Tietz
2011-10-22 14:23 ` asmwarrior [this message]
2011-10-24 14:45 ` Bob Breuer
2011-10-24 16:18 ` Kai Tietz
2011-10-25 15:14 ` Bob Breuer
2011-10-20 13:04 ` jojelino
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EA2D1EB.4060106@gmail.com \
--to=asmwarrior@gmail.com \
--cc=breuerr@mc.net \
--cc=gcc@gcc.gnu.org \
--cc=ktietz70@googlemail.com \
--cc=mark.cave-ayland@siriusit.co.uk \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=xunxun1982@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.