* [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns
[not found] <bug-20928-260@http.gcc.gnu.org/bugzilla/>
@ 2005-10-10 3:20 ` kazu at gcc dot gnu dot org
2005-10-13 16:03 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: kazu at gcc dot gnu dot org @ 2005-10-10 3:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from kazu at gcc dot gnu dot org 2005-10-10 03:20 -------
The testcase in comment #8 still triggers an ICE if run with -O -mtune=k8
-fPIC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns
[not found] <bug-20928-260@http.gcc.gnu.org/bugzilla/>
2005-10-10 3:20 ` [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns kazu at gcc dot gnu dot org
@ 2005-10-13 16:03 ` pinskia at gcc dot gnu dot org
2005-10-19 13:51 ` [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns with -fPIC -O1 pluto at agmk dot net
` (6 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-13 16:03 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
GCC build triplet|x86_64-linux-gnu |
GCC host triplet|x86_64-linux-gnu |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns with -fPIC -O1
[not found] <bug-20928-260@http.gcc.gnu.org/bugzilla/>
2005-10-10 3:20 ` [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns kazu at gcc dot gnu dot org
2005-10-13 16:03 ` pinskia at gcc dot gnu dot org
@ 2005-10-19 13:51 ` pluto at agmk dot net
2005-10-19 14:02 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: pluto at agmk dot net @ 2005-10-19 13:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from pluto at agmk dot net 2005-10-19 13:50 -------
(In reply to comment #13)
> The testcase in comment #8 still triggers an ICE if run with -O -mtune=k8
> -fPIC.
>
it works with my patched gcc41:
(...)
.section .data.rel.ro,"aw",@progbits
.align 8
.LC1: .quad bar+2147483648
(...)
.text
foo: movq .LC1(%rip), %rdx
.L3: movq %rdx, (%rax)
addq $8, %rax
jne .L3
rep ; ret
(...)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns with -fPIC -O1
[not found] <bug-20928-260@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-10-19 13:51 ` [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns with -fPIC -O1 pluto at agmk dot net
@ 2005-10-19 14:02 ` pinskia at gcc dot gnu dot org
2005-10-30 18:01 ` hubicka at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-19 14:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from pinskia at gcc dot gnu dot org 2005-10-19 14:02 -------
*** Bug 24443 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns with -fPIC -O1
[not found] <bug-20928-260@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2005-10-19 14:02 ` pinskia at gcc dot gnu dot org
@ 2005-10-30 18:01 ` hubicka at gcc dot gnu dot org
2005-10-31 3:06 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2005-10-30 18:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from hubicka at gcc dot gnu dot org 2005-10-30 18:00 -------
testing fix that should make legitimize_pic_address correctly decompose the
address. Similar to Steven's but I think it actually works ;)
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c (revision 106026)
+++ config/i386/i386.c (working copy)
@@ -6016,7 +6016,18 @@ legitimize_pic_address (rtx orig, rtx re
}
else
{
- if (GET_CODE (addr) == CONST)
+ if (GET_CODE (addr) == CONST_INT
+ && !x86_64_immediate_operand (addr, VOIDmode))
+ {
+ if (reg)
+ {
+ emit_move_insn (reg, addr);
+ new = reg;
+ }
+ else
+ new = force_reg (DImode, addr);
+ }
+ else if (GET_CODE (addr) == CONST)
{
addr = XEXP (addr, 0);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns with -fPIC -O1
[not found] <bug-20928-260@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2005-10-30 18:01 ` hubicka at gcc dot gnu dot org
@ 2005-10-31 3:06 ` mmitchel at gcc dot gnu dot org
2005-10-31 17:14 ` steven at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31 3:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #17 from mmitchel at gcc dot gnu dot org 2005-10-31 03:06 -------
This prevents compiling a reasonably popular program; it's a showstopper.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns with -fPIC -O1
[not found] <bug-20928-260@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2005-10-31 3:06 ` mmitchel at gcc dot gnu dot org
@ 2005-10-31 17:14 ` steven at gcc dot gnu dot org
2005-10-31 17:16 ` pinskia at gcc dot gnu dot org
2005-10-31 18:46 ` hubicka at gcc dot gnu dot org
8 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-10-31 17:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #18 from steven at gcc dot gnu dot org 2005-10-31 17:14 -------
See comment #16 for a patch.
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns with -fPIC -O1
[not found] <bug-20928-260@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2005-10-31 17:14 ` steven at gcc dot gnu dot org
@ 2005-10-31 17:16 ` pinskia at gcc dot gnu dot org
2005-10-31 18:46 ` hubicka at gcc dot gnu dot org
8 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-31 17:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #19 from pinskia at gcc dot gnu dot org 2005-10-31 17:16 -------
(In reply to comment #18)
> See comment #16 for a patch.
More than that, it has been posted:
http://gcc.gnu.org/ml/gcc-patches/2005-10/msg01792.html
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |10/msg01792.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/20928] [4.0/4.1 regression] ICE: unrecognizable insns with -fPIC -O1
[not found] <bug-20928-260@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2005-10-31 17:16 ` pinskia at gcc dot gnu dot org
@ 2005-10-31 18:46 ` hubicka at gcc dot gnu dot org
8 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2005-10-31 18:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #20 from hubicka at gcc dot gnu dot org 2005-10-31 18:45 -------
Patch comitted. For some reason don't seem to appear in logs?
--
hubicka at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20928
^ permalink raw reply [flat|nested] 9+ messages in thread