This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/69612] Optimizer does not consider overflow
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 02 Feb 2016 18:54:02 +0000
- Subject: [Bug c/69612] Optimizer does not consider overflow
- Auto-submitted: auto-generated
- References: <bug-69612-4 at http dot gcc dot gnu dot org/bugzilla/>
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