This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][4.3] Deprecate -ftrapv
Joseph S. Myers wrote:
You also need to deal with fold, which will optimize away potentially
trapping computations with -ftrapv and runs before gimplification
(possibly in association with making fold run at gimplification time and
not before).
Indeed. However, errors missed due to fold eliminating them before
gimplification would be a false negative, so less of a problem. Since
this feature is designed to crash your program when it has a bug,
crashing your program somewhat less often doesn't make the feature
useless; just less useful.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713