This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/46664] Failed to build 481.wrf in SPEC CPU 2006 with LTO


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]