mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Merge FSF GCC rev 1.579 change ((x86_output_mi_thunk): Don't pass MEM to
%P0, just SYMBOL_REF) into GCC 3.3.3. This fixes the bad C++ thunks code generation building Firefox on AMD64. Submitted by: Sean McNeil <sean@mcneil.com>
This commit is contained in:
parent
0a2df4773c
commit
a3bfe8fd89
1 changed files with 2 additions and 3 deletions
|
|
@ -14607,15 +14607,14 @@ x86_output_mi_thunk (file, thunk, delta, vcall_offset, function)
|
|||
output_asm_insn ("mov{l}\t{%0, %1|%1, %0}", xops);
|
||||
}
|
||||
|
||||
xops[0] = DECL_RTL (function);
|
||||
xops[0] = XEXP (DECL_RTL (function), 0);
|
||||
if (TARGET_64BIT)
|
||||
{
|
||||
if (!flag_pic || (*targetm.binds_local_p) (function))
|
||||
output_asm_insn ("jmp\t%P0", xops);
|
||||
else
|
||||
{
|
||||
tmp = XEXP (xops[0], 0);
|
||||
tmp = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, tmp), UNSPEC_GOTPCREL);
|
||||
tmp = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, xops[0]), UNSPEC_GOTPCREL);
|
||||
tmp = gen_rtx_CONST (Pmode, tmp);
|
||||
tmp = gen_rtx_MEM (QImode, tmp);
|
||||
xops[0] = tmp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue