fix alpha glibc miscompilation
Falk Hueffner
falk.hueffner@student.uni-tuebingen.de
Sun Jun 8 10:04:00 GMT 2003
Richard Henderson <rth@redhat.com> writes:
> * This results in two blocks containing calls, one of
> which then branches to the join block containing the
> gp-reload. It is this path containing the branch that
> is incorrect -- the gp-reload is pc-relative and is
> fed the return address from the function; the first
> insn of the gp-reload must *immediately* follow the call.
I guess I'm missing something, but can't one just mark the call with a
label and add an offset to the reload which is the difference between
the label and the instruction pointer? I think the relocator can take
existing nonzero offsets into account.
--
Falk
More information about the Gcc-patches
mailing list