https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66563
--- Comment #35 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- (In reply to Oleg Endo from comment #33) > I see, thanks. In this case, could you please add a comment e.g.: > > ;; Loads of the GOTPC relocation values must not be optimized away > ;; by e.g. any kind of CSE and must stay as they are. Although there > ;; are other various ways to ensure this, we use an artificial counter > ;; operand to generate unique symbols. > (define_expand "GOTaddr2picreg" Good thinking. I've committed the patch with your comment on trunk.