public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/15231] New: constant pool entries referring to nonexistent labels
@ 2004-04-30 16:36 pb at gcc dot gnu dot org
  2004-04-30 16:43 ` [Bug target/15231] " pb at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: pb at gcc dot gnu dot org @ 2004-04-30 16:36 UTC (permalink / raw)
  To: gcc-bugs

Compile the attached testcase with gcc -Os.  The resulting assembly contains:

        .align  2
.L24:
        .word   __icmp_inode+320
        .word   .L22
        .word   .L21
        .word   .LC3

but labels L22 and L23 are not defined anywhere.

-- 
           Summary: constant pool entries referring to nonexistent labels
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pb at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: arm-linux


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


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

* [Bug target/15231] constant pool entries referring to nonexistent labels
  2004-04-30 16:36 [Bug target/15231] New: constant pool entries referring to nonexistent labels pb at gcc dot gnu dot org
@ 2004-04-30 16:43 ` pb at gcc dot gnu dot org
  2004-05-18 15:27 ` rearnsha at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: pb at gcc dot gnu dot org @ 2004-04-30 16:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pb at gcc dot gnu dot org  2004-04-30 16:29 -------
Created an attachment (id=6202)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6202&action=view)
testcase


-- 


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


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

* [Bug target/15231] constant pool entries referring to nonexistent labels
  2004-04-30 16:36 [Bug target/15231] New: constant pool entries referring to nonexistent labels pb at gcc dot gnu dot org
  2004-04-30 16:43 ` [Bug target/15231] " pb at gcc dot gnu dot org
@ 2004-05-18 15:27 ` rearnsha at gcc dot gnu dot org
  2004-08-13  2:13 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2004-05-18 15:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2004-05-17 22:20 -------
Confirmed on 3.4.  However,

Running the pre-processed code through the trunk version of the compiler gives
rise to numerous errors due to invalid lvalues.  For example:

((void)((0)), irq_stat[0].__local_bh_count)++

This code looks to be using the deprecated lvalue assignment extension.

It might be worth trying to fix these problems in the source and then seeing if
the reported problem still exists.

Since the extension is deprecated in 3.4.0, then if this is the cause, I suspect
the problem won't get fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug target/15231] constant pool entries referring to nonexistent labels
  2004-04-30 16:36 [Bug target/15231] New: constant pool entries referring to nonexistent labels pb at gcc dot gnu dot org
  2004-04-30 16:43 ` [Bug target/15231] " pb at gcc dot gnu dot org
  2004-05-18 15:27 ` rearnsha at gcc dot gnu dot org
@ 2004-08-13  2:13 ` pinskia at gcc dot gnu dot org
  2004-11-15  3:24 ` [Bug target/15231] [3.4 only] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-13  2:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-13 02:13 -------
I highly doubt that this extension is having an effect here at all.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-13 02:13:43
               date|                            |


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


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

* [Bug target/15231] [3.4 only] constant pool entries referring to nonexistent labels
  2004-04-30 16:36 [Bug target/15231] New: constant pool entries referring to nonexistent labels pb at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-08-13  2:13 ` pinskia at gcc dot gnu dot org
@ 2004-11-15  3:24 ` pinskia at gcc dot gnu dot org
  2005-05-19 17:53 ` mmitchel at gcc dot gnu dot org
  2005-09-02 22:27 ` rearnsha at gcc dot gnu dot org
  5 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-15  3:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-15 03:24 -------
It works on the mainline if we remove the use of the extension:
((void)((0)), irq_stat[0].__local_bh_count)++
gets replaced with
((void)((0)), irq_stat[0].__local_bh_count++)



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.0.0
            Summary|constant pool entries       |[3.4 only] constant pool
                   |referring to nonexistent    |entries referring to
                   |labels                      |nonexistent labels
   Target Milestone|---                         |3.4.4


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


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

* [Bug target/15231] [3.4 only] constant pool entries referring to nonexistent labels
  2004-04-30 16:36 [Bug target/15231] New: constant pool entries referring to nonexistent labels pb at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-11-15  3:24 ` [Bug target/15231] [3.4 only] " pinskia at gcc dot gnu dot org
@ 2005-05-19 17:53 ` mmitchel at gcc dot gnu dot org
  2005-09-02 22:27 ` rearnsha at gcc dot gnu dot org
  5 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:53 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug target/15231] [3.4 only] constant pool entries referring to nonexistent labels
  2004-04-30 16:36 [Bug target/15231] New: constant pool entries referring to nonexistent labels pb at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-05-19 17:53 ` mmitchel at gcc dot gnu dot org
@ 2005-09-02 22:27 ` rearnsha at gcc dot gnu dot org
  5 siblings, 0 replies; 10+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2005-09-02 22:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2005-09-02 22:27 -------
I've made a small amount of headway on this.

Labels L22 and L21 were (when created) the addresses of objects in the code. 
However, they are deleted (presumably as unreachable), but the references to the
lables persist.

This is presumably exactly the case that RTH believed couldn't happen when he
mentioned this in his email here:

http://gcc.gnu.org/ml/gcc-patches/2000-05/msg00881.html

and the reason we don't abort on ARM is that we never call output_constant_pool
since we roll our own mini-pools.

I've sofar been unsuccessful in reducing the testcase to something more managable.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-02-22 04:10:35         |2005-09-02 22:27:33
               date|                            |


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


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

* [Bug target/15231] [3.4 only] constant pool entries referring to nonexistent labels
       [not found] <bug-15231-592@http.gcc.gnu.org/bugzilla/>
  2005-11-21  2:09 ` gdr at gcc dot gnu dot org
  2005-11-28 10:22 ` gdr at gcc dot gnu dot org
@ 2006-02-28  9:15 ` gdr at gcc dot gnu dot org
  2 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2006-02-28  9:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from gdr at gcc dot gnu dot org  2006-02-28 09:14 -------
Fixed in 4.0 and up.  Won't fix for 3.4.6.


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.4.6                       |4.0.0


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


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

* [Bug target/15231] [3.4 only] constant pool entries referring to nonexistent labels
       [not found] <bug-15231-592@http.gcc.gnu.org/bugzilla/>
  2005-11-21  2:09 ` gdr at gcc dot gnu dot org
@ 2005-11-28 10:22 ` gdr at gcc dot gnu dot org
  2006-02-28  9:15 ` gdr at gcc dot gnu dot org
  2 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-11-28 10:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from gdr at gcc dot gnu dot org  2005-11-28 10:22 -------
Postpone until 3.4.6


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.5                       |3.4.6


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


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

* [Bug target/15231] [3.4 only] constant pool entries referring to nonexistent labels
       [not found] <bug-15231-592@http.gcc.gnu.org/bugzilla/>
@ 2005-11-21  2:09 ` gdr at gcc dot gnu dot org
  2005-11-28 10:22 ` gdr at gcc dot gnu dot org
  2006-02-28  9:15 ` gdr at gcc dot gnu dot org
  2 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-11-21  2:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from gdr at gcc dot gnu dot org  2005-11-21 02:09 -------
(In reply to comment #5)
> I've made a small amount of headway on this.
> 
> Labels L22 and L21 were (when created) the addresses of objects in the code. 
> However, they are deleted (presumably as unreachable), but the references to the
> lables persist.
> 
> This is presumably exactly the case that RTH believed couldn't happen when he
> mentioned this in his email here:
> 
> http://gcc.gnu.org/ml/gcc-patches/2000-05/msg00881.html
> 
> and the reason we don't abort on ARM is that we never call output_constant_pool
> since we roll our own mini-pools.
> 
> I've sofar been unsuccessful in reducing the testcase to something more managable.

Have you been able to track this with RTH?
Do you care about this bug be fixed for 3.4.5?
We're in 3.4.6 pre-release business now.

-- Gaby


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu dot org,
                   |                            |gdr at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-02-28  9:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-30 16:36 [Bug target/15231] New: constant pool entries referring to nonexistent labels pb at gcc dot gnu dot org
2004-04-30 16:43 ` [Bug target/15231] " pb at gcc dot gnu dot org
2004-05-18 15:27 ` rearnsha at gcc dot gnu dot org
2004-08-13  2:13 ` pinskia at gcc dot gnu dot org
2004-11-15  3:24 ` [Bug target/15231] [3.4 only] " pinskia at gcc dot gnu dot org
2005-05-19 17:53 ` mmitchel at gcc dot gnu dot org
2005-09-02 22:27 ` rearnsha at gcc dot gnu dot org
     [not found] <bug-15231-592@http.gcc.gnu.org/bugzilla/>
2005-11-21  2:09 ` gdr at gcc dot gnu dot org
2005-11-28 10:22 ` gdr at gcc dot gnu dot org
2006-02-28  9:15 ` gdr 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).