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