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 c/69612] Optimizer does not consider overflow


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69612

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #3 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Roar Lauritzsen from comment #2)
> Thanks a lot for the quick analysis. Now that I know what it is I can fix my
> program, and the -fsanitize=undefined will come in handy for localizing
> problem areas. For future googlers, I am planning to fix my program along
> these lines:

Better use https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html

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