------- Comment #44 from hubicka at gcc dot gnu dot org 2009-02-23 13:41 ------- Hi, I believe that using fold_convert instead of fold_build1 means that we would bypass folding done in fold_unary that handles stuff like two conversions in a row while fold_convert is primarily about returning constant when result is constant.
Since I want to avoid wrapping fold calls all frontends except for C++ consistently put around convert_to_* calls, I want to do this kind of folding. I believe only reason to avoid folding is C++ template stuff. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12245