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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Looking at pr46755.f, e.g. on x86_64 with -m32 -O -fpic I see in asmcons:
(insn 3 2 60 2 (set (reg/f:SI 91 [ gotovar.7_6 ])
        (plus:SI (reg:SI 87)
            (const:SI (unspec:SI [
                        (label_ref:SI 11)
                    ] UNSPEC_GOTOFF)))) pr46755.f:9 214 {*leasi}
     (insn_list:REG_LABEL_OPERAND 11 (expr_list:REG_EQUAL (label_ref:SI 11)
            (nil))))
while without -fpic or with -m64 (both -fpic and -fno-pic) there is just
label_ref in the SET_SRC.
So perhaps we should try both SET_SRC and REG_EQUAL note (if it exists), the
question is in which order.

Reply via email to