http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48766
--- Comment #13 from H.J. Lu <hjl.tools at gmail dot com> 2013-01-14 15:48:41 UTC --- (In reply to comment #12) > Created attachment 29161 [details] > gcc48-pr48766.patch > > Untested fix. Seems in the previous option processing the negative options > cancel their corresponding positive options (and vice versa), and only the > last > occurrence of the option from the command line remains and the patch just > disables -fwrapv if -ftrapv comes after -fwrapv, and vice versa. > So e.g. > -fwrapv -ftrapv -fwrapv results in -fwrapv > -fwrapv -ftrapv results in -ftrapv > -fwrapv -ftrapv -fno-wrapv results in -ftrapv > -ftrapv -fwrapv -fno-trapv results in -fwrapv > etc. Why not use Negative in common.opt?