------- Comment #2 from mmitchel at gcc dot gnu dot org 2008-08-08 23:44 ------- Andrew --
If indeed this is an optimization regression on other platforms, then I agree that this should be a P2 defect. Is the optimization problem present on all platforms with -fPIC? If not, what's a specific platform where the problem occurs? Also, what values are being relocated at run time in the tests case? Do you think the compiler should be generating PC-relative addresses for the tables? Or that the inliner should be resolving "xxx(8)" to a constant? Thanks, -- Mark -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36881