Looking at msmpeg4.s from PR 41567, build with -O2 -fPIC, we see
.LC2:
data8 mv_tables#+72
...
addl r14 = @gprel(.LC2), gp
We should not have spilled that address to the constant pool.
Add -mno-sdata and it gets worse -- LC2 moves from .sdata to
the .data.rel.ro section but we *still* use @gprel to address
it, and that relocation may well be out of range.
--
Summary: [ia64] Inappropriate address spills
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rth at gcc dot gnu dot org
GCC target triplet: ia64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42040