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 tree-optimization/48766] [4.6/4.7/4.8 Regression] Infinite recursion in fold_binary_loc()


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?


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