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

--- Comment #3 from Andrew Waterman <andrew at sifive dot com> ---
Relaxation to gp happens at link time, and because of the relatively small
load/store offsets, the small-data limit is actually useful.  I don't think we
should turn it off, because when we relax to gp, we get lower instruction count
than we'd get with anchors.  (But it's obviously a gamble, since we aren't
guaranteed to get relaxation, depending on the section size.)

I do see that for -fPIC (where gp relaxation isn't enabled) and for large
objects, anchors seem to be working.

Reply via email to