[Bug lto/46664] Failed to build 481.wrf in SPEC CPU 2006 with LTO
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 26 10:29:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46664
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-26 10:13:45 UTC ---
It looks like swapped arguments - fold_binary should have gone by here:
/* index +p PTR -> PTR +p index */
if (POINTER_TYPE_P (TREE_TYPE (arg1))
&& INTEGRAL_TYPE_P (TREE_TYPE (arg0)))
return fold_build2_loc (loc, POINTER_PLUS_EXPR, type,
fold_convert_loc (loc, type, arg1),
fold_convert_loc (loc, sizetype, arg0));
and fix it up.
More information about the Gcc-bugs
mailing list