public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/42372]  New: Error: undefined symbol `.LPIC7' in operation
@ 2009-12-14 22:50 raj dot khem at gmail dot com
  2009-12-14 22:51 ` [Bug middle-end/42372] " raj dot khem at gmail dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: raj dot khem at gmail dot com @ 2009-12-14 22:50 UTC (permalink / raw)
  To: gcc-bugs

attached testcase fails on trunk for arm target with the following optset

-c -fgnu89-inline -Os -frename-registers

it works ok with -O2 or -O3

/tmp/cc9PcQw8.s: Assembler messages:
/tmp/cc9PcQw8.s:438: Error: undefined symbol `.LPIC7' in operation


-- 
           Summary: Error: undefined symbol `.LPIC7' in operation
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: raj dot khem at gmail dot com
 GCC build triplet: x86_64-linux
  GCC host triplet: x86_64-linux
GCC target triplet: arm-oe-linux-gnueabi


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


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

* [Bug middle-end/42372] Error: undefined symbol `.LPIC7' in operation
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
@ 2009-12-14 22:51 ` raj dot khem at gmail dot com
  2009-12-14 23:37 ` ramana at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: raj dot khem at gmail dot com @ 2009-12-14 22:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from raj dot khem at gmail dot com  2009-12-14 22:51 -------
Created an attachment (id=19300)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19300&action=view)
testcase


-- 


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


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

* [Bug middle-end/42372] Error: undefined symbol `.LPIC7' in operation
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
  2009-12-14 22:51 ` [Bug middle-end/42372] " raj dot khem at gmail dot com
@ 2009-12-14 23:37 ` ramana at gcc dot gnu dot org
  2009-12-15  9:50 ` ramana at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-12-14 23:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ramana at gcc dot gnu dot org  2009-12-14 23:37 -------
Confirmed - the work around appears to also be to remove -frename-registers.


Reducing testcase.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-12-14 23:37:08
               date|                            |


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


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

* [Bug middle-end/42372] Error: undefined symbol `.LPIC7' in operation
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
  2009-12-14 22:51 ` [Bug middle-end/42372] " raj dot khem at gmail dot com
  2009-12-14 23:37 ` ramana at gcc dot gnu dot org
@ 2009-12-15  9:50 ` ramana at gcc dot gnu dot org
  2009-12-15 13:33 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-12-15  9:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ramana at gcc dot gnu dot org  2009-12-15 09:50 -------
Created an attachment (id=19308)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19308&action=view)
Reduced testcase.

Reduced testcase attached - Compiling with -c -Os -frename-registers exposes
the problem.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #19300|0                           |1
        is obsolete|                            |


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


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

* [Bug middle-end/42372] Error: undefined symbol `.LPIC7' in operation
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
                   ` (2 preceding siblings ...)
  2009-12-15  9:50 ` ramana at gcc dot gnu dot org
@ 2009-12-15 13:33 ` rguenth at gcc dot gnu dot org
  2009-12-16 11:12 ` [Bug middle-end/42372] [4.5 regression] Regrename reuses non-dead register rearnsha at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-15 13:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-12-15 13:33 -------
Is this a regression?  If so please mark it so.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/42372] [4.5 regression] Regrename reuses non-dead register
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
                   ` (3 preceding siblings ...)
  2009-12-15 13:33 ` rguenth at gcc dot gnu dot org
@ 2009-12-16 11:12 ` rearnsha at gcc dot gnu dot org
  2009-12-16 19:58 ` bernds_cb1 at t-online dot de
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2009-12-16 11:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rearnsha at gcc dot gnu dot org  2009-12-16 11:11 -------
Regrename seems to be starting the scan of bb3 (from the reduced testcase) from
somewhere in the middle of the block rather than at the beginning (it's missing
at least 2 insns in the reg chain information:

Basic block 3:
Creating chain ip (0) at insn 71 (mark_write)
Closing chain ip (0) at insn 72 (terminate_write)
Creating chain ip (1) at insn 72 (mark_write)
Closing chain ip (1) at insn 73 (terminate_write)
Creating chain ip (2) at insn 73 (mark_write)
Closing chain ip (2) at insn 74 (terminate_dead)

but BB3 starts at insn 66, not 71 and in insn 68 a value is assigned to r6. 
However, this never seems to be considered.


-- 

rearnsha at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Last reconfirmed|2009-12-14 23:37:08         |2009-12-16 11:11:57
               date|                            |
            Summary|Error: undefined symbol     |[4.5 regression] Regrename
                   |`.LPIC7' in operation       |reuses non-dead register


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


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

* [Bug middle-end/42372] [4.5 regression] Regrename reuses non-dead register
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
                   ` (4 preceding siblings ...)
  2009-12-16 11:12 ` [Bug middle-end/42372] [4.5 regression] Regrename reuses non-dead register rearnsha at gcc dot gnu dot org
@ 2009-12-16 19:58 ` bernds_cb1 at t-online dot de
  2009-12-16 21:27 ` mikpe at it dot uu dot se
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bernds_cb1 at t-online dot de @ 2009-12-16 19:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from bernds_cb1 at t-online dot de  2009-12-16 19:57 -------
I'm having a hard time reproducing this.  How do you folks configure your
compilers?


-- 


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


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

* [Bug middle-end/42372] [4.5 regression] Regrename reuses non-dead register
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
                   ` (5 preceding siblings ...)
  2009-12-16 19:58 ` bernds_cb1 at t-online dot de
@ 2009-12-16 21:27 ` mikpe at it dot uu dot se
  2009-12-16 21:30 ` [Bug middle-end/42372] [4.5 Regression] " rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mikpe at it dot uu dot se @ 2009-12-16 21:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mikpe at it dot uu dot se  2009-12-16 21:27 -------
I've done a binary search which identified 154688 as the revision which caused
the problem to appear.

To answer Bernd's question, I used an arm cross configured with:
--target=armv5tel-unknown-linux-gnueabi
--with-gmp=/home/mikpe/pkgs/linux-x86/gmp-4.3.1
--with-mpfr=/home/mikpe/pkgs/linux-x86/mpfr-2.4.2 --with-arch=armv5te
--with-tune=xscale --prefix=/mnt/work/cross-armv5tel --disable-nls
--enable-shared --disable-libmudflap --disable-multilib --enable-threads=posix
--enable-checking=release --enable-languages=c


-- 

mikpe at it dot uu dot se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu dot se


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


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

* [Bug middle-end/42372] [4.5 Regression] Regrename reuses non-dead register
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
                   ` (6 preceding siblings ...)
  2009-12-16 21:27 ` mikpe at it dot uu dot se
@ 2009-12-16 21:30 ` rguenth at gcc dot gnu dot org
  2009-12-16 23:18 ` bernds_cb1 at t-online dot de
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-16 21:30 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.5 regression] Regrename  |[4.5 Regression] Regrename
                   |reuses non-dead register    |reuses non-dead register
   Target Milestone|---                         |4.5.0


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


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

* [Bug middle-end/42372] [4.5 Regression] Regrename reuses non-dead register
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
                   ` (7 preceding siblings ...)
  2009-12-16 21:30 ` [Bug middle-end/42372] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2009-12-16 23:18 ` bernds_cb1 at t-online dot de
  2009-12-17 11:47 ` [Bug target/42372] " rearnsha at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bernds_cb1 at t-online dot de @ 2009-12-16 23:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from bernds_cb1 at t-online dot de  2009-12-16 23:17 -------
This seems to be a bug in arm.md.  Operand 0 in tls_load_dot_plus_eight is
marked in-out, but there's no matching match_dup to show the input.  Adding
that to the unspec seems to make the problem go away.  Richard E.?


-- 

bernds_cb1 at t-online dot de changed:

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


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


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

* [Bug target/42372] [4.5 Regression] Regrename reuses non-dead register
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
                   ` (8 preceding siblings ...)
  2009-12-16 23:18 ` bernds_cb1 at t-online dot de
@ 2009-12-17 11:47 ` rearnsha at gcc dot gnu dot org
  2009-12-17 11:50 ` rearnsha at gcc dot gnu dot org
  2009-12-17 11:51 ` rearnsha at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2009-12-17 11:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rearnsha at gcc dot gnu dot org  2009-12-17 11:46 -------
Agreed, this is really a target bug.


-- 

rearnsha at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |target


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


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

* [Bug target/42372] [4.5 Regression] Regrename reuses non-dead register
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
                   ` (9 preceding siblings ...)
  2009-12-17 11:47 ` [Bug target/42372] " rearnsha at gcc dot gnu dot org
@ 2009-12-17 11:50 ` rearnsha at gcc dot gnu dot org
  2009-12-17 11:51 ` rearnsha at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2009-12-17 11:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rearnsha at gcc dot gnu dot org  2009-12-17 11:50 -------
Subject: Bug 42372

Author: rearnsha
Date: Thu Dec 17 11:50:06 2009
New Revision: 155310

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155310
Log:
        PR target/42372
        * arm.md (pic_add_dot_plus_eight): Change output constraint from
        update to write.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.md


-- 


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


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

* [Bug target/42372] [4.5 Regression] Regrename reuses non-dead register
  2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
                   ` (10 preceding siblings ...)
  2009-12-17 11:50 ` rearnsha at gcc dot gnu dot org
@ 2009-12-17 11:51 ` rearnsha at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2009-12-17 11:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from rearnsha at gcc dot gnu dot org  2009-12-17 11:51 -------
Fixed


-- 

rearnsha at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-12-17 11:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-14 22:50 [Bug middle-end/42372] New: Error: undefined symbol `.LPIC7' in operation raj dot khem at gmail dot com
2009-12-14 22:51 ` [Bug middle-end/42372] " raj dot khem at gmail dot com
2009-12-14 23:37 ` ramana at gcc dot gnu dot org
2009-12-15  9:50 ` ramana at gcc dot gnu dot org
2009-12-15 13:33 ` rguenth at gcc dot gnu dot org
2009-12-16 11:12 ` [Bug middle-end/42372] [4.5 regression] Regrename reuses non-dead register rearnsha at gcc dot gnu dot org
2009-12-16 19:58 ` bernds_cb1 at t-online dot de
2009-12-16 21:27 ` mikpe at it dot uu dot se
2009-12-16 21:30 ` [Bug middle-end/42372] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-12-16 23:18 ` bernds_cb1 at t-online dot de
2009-12-17 11:47 ` [Bug target/42372] " rearnsha at gcc dot gnu dot org
2009-12-17 11:50 ` rearnsha at gcc dot gnu dot org
2009-12-17 11:51 ` rearnsha 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).