Re: Fix pr48032, powerpc64 -mcmodel=medium invalid ld offset

2011-03-14 Thread Alan Modra
After some discussion with David and Richard, this is what I'm about to commit. Differs from the previous patch in returning false for BLKmode (via GET_MODE_SIZE(mode)==0 test) in the !decl branch of offsettable_ok_by_alignment. PR target/48032 * config/rs6000/rs6000.c (offsettabl

Re: Fix pr48032, powerpc64 -mcmodel=medium invalid ld offset

2011-03-09 Thread David Edelsohn
On Wed, Mar 9, 2011 at 1:07 AM, Alan Modra wrote: > This patch > a) Moves the offsettable_ok_by_alignment call from rs6000_emit_move to >   legitimate_constant_pool_address_p, and > b) teaches offsettable_ok_by_alignment how to handle -fsection-anchors >   addresses, and > c) teaches offsettable_o