Re: [RS6000] Fix potiential buffer overflow

2019-02-04 Thread Segher Boessenkool
On Mon, Feb 04, 2019 at 08:46:31PM +1030, Alan Modra wrote: > It looks like I forgot to count the extra load of r2 for ABI_AIX > indirect calls when calculating the buffer size needed by > rs6000_indirect_call_template. This patch fixes the miscalculation. > Tested by building a powerpc64le-linux

[RS6000] Fix potiential buffer overflow

2019-02-04 Thread Alan Modra
It looks like I forgot to count the extra load of r2 for ABI_AIX indirect calls when calculating the buffer size needed by rs6000_indirect_call_template. This patch fixes the miscalculation. Tested by building a powerpc64le-linux compiler. OK to apply? * config/rs6000/rs6000.c (rs6000_in