public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "msharov at users dot sourceforge.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/57288] New: cfi_restore should precede cfi_def_cfa_offset
Date: Wed, 15 May 2013 12:34:00 -0000	[thread overview]
Message-ID: <bug-57288-4@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57288

            Bug ID: 57288
           Summary: cfi_restore should precede cfi_def_cfa_offset
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msharov at users dot sourceforge.net

Created attachment 30122
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30122&action=edit
The emitted assembly exhibiting the ordering problem

This is on x86_64, compiled with -Os. In the attached assembly, line 89, .L55,
.cfi_restore is emitted for ebx and ebp after .cfi_def_cfa_offset 8 already
invalidated the location where they were stored. cfa_offset should be emitted
after cfi_restores, as it was in the other codepaths like .LEHE0-.L51


             reply	other threads:[~2013-05-15 12:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15 12:34 msharov at users dot sourceforge.net [this message]
2013-11-10  8:04 ` [Bug target/57288] " pinskia at gcc dot gnu.org
2013-11-10 13:31 ` msharov at users dot sourceforge.net
2013-11-10 19:16 ` pinskia at gcc dot gnu.org

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=bug-57288-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).