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/30338] [4.3 Regression] infinite loop in maybe_canonicalize_comparison



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-12-31 16:49 -------
(In reply to comment #5)
> (that needs to read
> 
>         return fold_build1 (BIT_NOT_EXPR, type, op1);

No it should read:
return fold_build1 (BIT_NOT_EXPR, type, fold_convert (type, arg1) );

There are a couple more issues like this in fold-const.c with BIT_NOT_EXPR
folding.


-- 


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


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