public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/46546] New: ix86_pad_returns may leave BB_END (bb) pointing to deleted insn
@ 2010-11-18 19:55 hjl.tools at gmail dot com
  2010-11-18 22:14 ` [Bug middle-end/46546] " ubizjak at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-18 19:55 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ix86_pad_returns may leave BB_END (bb) pointing to
                    deleted insn
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com
                CC: ubizjak@gmail.com


ix86_pad_returns has

    rtx ret = BB_END (bb);
...
          emit_jump_insn_before (gen_return_internal_long (), ret); 
          delete_insn (ret);
...

It may leave BB_END (bb) pointing to deleted insn. A patch is posed at

http://gcc.gnu.org/ml/gcc-patches/2010-11/msg01930.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/46546] ix86_pad_returns may leave BB_END (bb) pointing to deleted insn
  2010-11-18 19:55 [Bug target/46546] New: ix86_pad_returns may leave BB_END (bb) pointing to deleted insn hjl.tools at gmail dot com
@ 2010-11-18 22:14 ` ubizjak at gmail dot com
  2010-11-18 23:50 ` uros at gcc dot gnu.org
  2010-11-19  0:39 ` [Bug target/46546] " hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ubizjak at gmail dot com @ 2010-11-18 22:14 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2010.11.18 22:09:38
          Component|target                      |middle-end
         AssignedTo|unassigned at gcc dot       |ubizjak at gmail dot com
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Uros Bizjak <ubizjak at gmail dot com> 2010-11-18 22:09:38 UTC ---
I have a fix.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/46546] ix86_pad_returns may leave BB_END (bb) pointing to deleted insn
  2010-11-18 19:55 [Bug target/46546] New: ix86_pad_returns may leave BB_END (bb) pointing to deleted insn hjl.tools at gmail dot com
  2010-11-18 22:14 ` [Bug middle-end/46546] " ubizjak at gmail dot com
@ 2010-11-18 23:50 ` uros at gcc dot gnu.org
  2010-11-19  0:39 ` [Bug target/46546] " hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: uros at gcc dot gnu.org @ 2010-11-18 23:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from uros at gcc dot gnu.org 2010-11-18 23:46:16 UTC ---
Author: uros
Date: Thu Nov 18 23:46:13 2010
New Revision: 166921

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166921
Log:
    PR target/46546
    * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/46546] ix86_pad_returns may leave BB_END (bb) pointing to deleted insn
  2010-11-18 19:55 [Bug target/46546] New: ix86_pad_returns may leave BB_END (bb) pointing to deleted insn hjl.tools at gmail dot com
  2010-11-18 22:14 ` [Bug middle-end/46546] " ubizjak at gmail dot com
  2010-11-18 23:50 ` uros at gcc dot gnu.org
@ 2010-11-19  0:39 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-19  0:39 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
          Component|middle-end                  |target
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-19 00:20:38 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-19  0:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-18 19:55 [Bug target/46546] New: ix86_pad_returns may leave BB_END (bb) pointing to deleted insn hjl.tools at gmail dot com
2010-11-18 22:14 ` [Bug middle-end/46546] " ubizjak at gmail dot com
2010-11-18 23:50 ` uros at gcc dot gnu.org
2010-11-19  0:39 ` [Bug target/46546] " hjl.tools at gmail dot com

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).