public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/13018] New: -mminimal-toc breaks at -O0
@ 2003-11-12  4:49 amodra at gcc dot gnu dot org
  2003-11-18  5:51 ` [Bug target/13018] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: amodra at gcc dot gnu dot org @ 2003-11-12  4:49 UTC (permalink / raw)
  To: gcc-bugs

It's possible for the rs6000 prologue code to emit references to the
second-level toc using .LCTOC0@toc(2) but never have the label .LCTOC0 defined.
 This testcase, compiled with -S -mminimal-toc -O0 demonstrates the problem.

long foo (long x)
{
  return 0;
  return x + 0x87654321;
}

Mainline happens to avoid the problem by trimming at the tree level with
expand_unreachable_stmt.  All 3.3.x and 3.2.x compilers I tested have this problem.

-- 
           Summary: -mminimal-toc breaks at -O0
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amodra at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: any
  GCC host triplet: any
GCC target triplet: powerpc64-unknown-linux


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


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

* [Bug target/13018] -mminimal-toc breaks at -O0
  2003-11-12  4:49 [Bug target/13018] New: -mminimal-toc breaks at -O0 amodra at gcc dot gnu dot org
@ 2003-11-18  5:51 ` pinskia at gcc dot gnu dot org
  2003-11-18  5:53 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18  5:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-18 05:51 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-18 05:51:37
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug target/13018] -mminimal-toc breaks at -O0
  2003-11-12  4:49 [Bug target/13018] New: -mminimal-toc breaks at -O0 amodra at gcc dot gnu dot org
  2003-11-18  5:51 ` [Bug target/13018] " pinskia at gcc dot gnu dot org
@ 2003-11-18  5:53 ` pinskia at gcc dot gnu dot org
  2004-05-13 16:10 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18  5:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-18 05:53 -------
Since this will always be fixed on the tree-ssa (by having DCE at the tree level) and it is not a 
regression, I am suspending this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |SUSPENDED
           Keywords|                            |wrong-code


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


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

* [Bug target/13018] -mminimal-toc breaks at -O0
  2003-11-12  4:49 [Bug target/13018] New: -mminimal-toc breaks at -O0 amodra at gcc dot gnu dot org
  2003-11-18  5:51 ` [Bug target/13018] " pinskia at gcc dot gnu dot org
  2003-11-18  5:53 ` pinskia at gcc dot gnu dot org
@ 2004-05-13 16:10 ` pinskia at gcc dot gnu dot org
  2004-09-30 17:23 ` pinskia at gcc dot gnu dot org
  2005-01-24 18:51 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-13 16:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-13 11:23 -------
Fixed for 3.5.0 by the merge of the tree-ssa.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug target/13018] -mminimal-toc breaks at -O0
  2003-11-12  4:49 [Bug target/13018] New: -mminimal-toc breaks at -O0 amodra at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-05-13 16:10 ` pinskia at gcc dot gnu dot org
@ 2004-09-30 17:23 ` pinskia at gcc dot gnu dot org
  2005-01-24 18:51 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-30 17:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-30 17:22 -------
*** Bug 17751 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu dot org


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


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

* [Bug target/13018] -mminimal-toc breaks at -O0
  2003-11-12  4:49 [Bug target/13018] New: -mminimal-toc breaks at -O0 amodra at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-09-30 17:23 ` pinskia at gcc dot gnu dot org
@ 2005-01-24 18:51 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-24 18:51 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|tree-ssa                    |4.0.0


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


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

end of thread, other threads:[~2005-01-24 18:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-12  4:49 [Bug target/13018] New: -mminimal-toc breaks at -O0 amodra at gcc dot gnu dot org
2003-11-18  5:51 ` [Bug target/13018] " pinskia at gcc dot gnu dot org
2003-11-18  5:53 ` pinskia at gcc dot gnu dot org
2004-05-13 16:10 ` pinskia at gcc dot gnu dot org
2004-09-30 17:23 ` pinskia at gcc dot gnu dot org
2005-01-24 18:51 ` pinskia at gcc dot gnu dot org

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