http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48161
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | --- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-17 15:59:14 UTC --- Created attachment 23699 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23699 gcc46-pr48161.patch Untested fix. The reason it uses gen_rtx_PLUS directly is to make sure it doesn't generate code in that case I believe, otherwise expand_binop would have taken care of the swapping of arguments.