[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Relocation errors with g++-3.2



Falk Hueffner wrote:

Mats Rynge <mats@rynge.net> writes:
main.o(.rodata+0x8b4):itimerspec/format.h:380: relocation truncated to fit: GPREL32 *UND*

This is only happening on Alpha and only with g++-3.2 (2.95 works
fine). Does anyone have some insight in what is causing this?
Jump tables relocated against symbols emitted mutiple times, where the
corresponding copy was dropped. See
http://gcc.gnu.org/ml/gcc/2003-04/msg00191.html

As a workaround, try to find out which switch statement causes it and
don't inline the function (a function complex enough to contain a
switch statement probably shouldn't be inline, anyway).
Just curious, gcc bugs aside, what's wrong with inlining functions with switch statements? (I've done it a couple of times...) Does switch take so much time that it's not worth saving the function call?

Zeen,
--

-Adam P.

GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Welcome to the best software in the world today cafe! <http://lyre.mit.edu/%7Epowell/The_Best_Stuff_In_The_World_Today_Cafe.ogg>




Reply to: