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 middle-end/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-13 18:59 -------
: Search converges between 2004-01-25-trunk (#440) and 2004-01-26-trunk (#441).
: Search converges between 2004-05-20-trunk (#457) and 2004-05-23-trunk (#458).

Looking at the construct, I almost want to say this was "fixed" by:
2004-05-20  Roger Sayle  <roger@eyesopen.com>

        PR middle-end/3074
        * fold-const.c (strip_compound_expr): Delete function.
        (count_cond): Delete function.
        (fold_binary_op_with_conditional_arg): Only perform transformations
        "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
        when a is constant.  This greatly simplifies this routine.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at eyesopen dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20995


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