[Bug target/63815] [5 Regression] g++.dg/other/pr53811.C fails with -mcmodel=large -fpic

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 12 20:28:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63815

--- Comment #14 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Uroš Bizjak from comment #11)
> 
> Currently, this test crashes, and when fixed, there is little chance that
> the (allocatable) PIC register from main equals r11 in the thunk.

Well, g++ 4.8 and 4.9 -fpic -mcmodel=large always generate

grep _GLOBAL_OFFSET_TABLE_ pr63815.s

    movabsq    $_GLOBAL_OFFSET_TABLE_-.L5, %r11
    movabsq    $_GLOBAL_OFFSET_TABLE_-.L8, %r11
    movabsq    $_GLOBAL_OFFSET_TABLE_-.L10, %r11
    movabsq    $_GLOBAL_OFFSET_TABLE_-.L12, %r11
    movabsq    $_GLOBAL_OFFSET_TABLE_-.L18, %r11

That is why I created libfoo.so since I couldn't get g++ 4.8 and 4.9 to
gail without libfoo.so.


More information about the Gcc-bugs mailing list