Re: m68k: handle more cases of TLS symbols with offset

2018-08-09 Thread Jeff Law
On 08/09/2018 10:25 AM, Andreas Schwab wrote: > On Aug 09 2018, Gunther Nikl wrote: > >> FWIW, the prototype for m68k_final_prescan_insn in m68k-protos.h was >> not removed. > > Thanks, fixed. > > Andreas. > > * config/m68k/m68k-protos.h (m68k_final_prescan_insn): Remove > prototyp

Re: m68k: handle more cases of TLS symbols with offset

2018-08-09 Thread Andreas Schwab
On Aug 09 2018, Gunther Nikl wrote: > FWIW, the prototype for m68k_final_prescan_insn in m68k-protos.h was > not removed. Thanks, fixed. Andreas. * config/m68k/m68k-protos.h (m68k_final_prescan_insn): Remove prototype. diff --git a/gcc/config/m68k/m68k-protos.h b/gcc/config/m6

Re: m68k: handle more cases of TLS symbols with offset

2018-08-09 Thread Gunther Nikl
Andreas Schwab wrote: > -void > -m68k_final_prescan_insn (rtx_insn *insn ATTRIBUTE_UNUSED, > - rtx *operands, int n_operands) > +static void > +m68k_adjust_decorated_operand (rtx op) FWIW, the prototype for m68k_final_prescan_insn in m68k-protos.h was not removed. Gunther

m68k: handle more cases of TLS symbols with offset

2018-08-08 Thread Andreas Schwab
This is a better fix for PR target/46179. There are more DImode insns that call adjust_operand during output processing. Instead of scanning the insns in the FINAL_PRESCAN_INSN hook, adjust them directly before they are output by print_operand or print_operand_address. Andreas. PR targe