http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48032
--- Comment #1 from Alan Modra <amodra at gcc dot gnu.org> 2011-03-09 07:55:57 UTC --- Author: amodra Date: Wed Mar 9 07:55:53 2011 New Revision: 170813 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170813 Log: PR target/48032 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not presume symbol_refs without a symbol_ref_decl are suitably aligned, nor other trees we may see here. Handle anchor symbols. (legitimate_constant_pool_address_p): Comment. Add mode param. Check cmodel=medium addresses. Adjust all calls. (rs6000_emit_move): Don't call offsettable_ok_by_alignment on creating cmodel=medium optimized access to locals. * config/rs6000/constraints.md (R): Pass QImode to legitimate_constant_pool_address_p. * config/rs6000/predicates.md (input_operand): Pass mode to legitimate_constant_pool_address_p. * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p): Update prototype. Modified: branches/ibm/gcc-4_5-branch/gcc/ChangeLog.ibm branches/ibm/gcc-4_5-branch/gcc/config/rs6000/constraints.md branches/ibm/gcc-4_5-branch/gcc/config/rs6000/predicates.md branches/ibm/gcc-4_5-branch/gcc/config/rs6000/rs6000-protos.h branches/ibm/gcc-4_5-branch/gcc/config/rs6000/rs6000.c