Re: [PATCH] lower-subreg and IBM long double

2013-08-20 Thread Steven Bosscher
On Mon, Aug 19, 2013 at 8:47 AM, Alan Modra wrote: > gcc/ ... > * doc/tm.texi.in (TARGET_INIT_LOWER_SUBREG): Document. ChangeLog update needed here, the new hook is documented in target.def. > +static void > +rs6000_init_lower_subreg (void *data) > +{ Functions should start with a leadi

[PATCH] lower-subreg and IBM long double

2013-08-18 Thread Alan Modra
On Tue, Jun 11, 2013 at 09:56:11AM +0930, Alan Modra wrote: >[snip] > It isn't hard to see why we are going wrong. IBM long double is > really a two element array of double, and the rs6000 backend uses > subregs to access the elements. The problem is that lower-subreg > lowers to word_mode, so w

Re: lower-subreg and IBM long double

2013-06-11 Thread Alan Modra
On Tue, Jun 11, 2013 at 04:58:07PM +, Joseph S. Myers wrote: > It's preferred to put the hook documentation in the doc string in > target.def, so tm.texi.in then only contains the @hook line indicating > where the documentation will go in tm.texi. Ah, thanks. Revised patch with testcase. g