This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17645] Add a warning for potentially unsafe unsigned operations
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2005 19:53:07 -0000
- Subject: [Bug c/17645] Add a warning for potentially unsafe unsigned operations
- References: <20040924041536.17645.mathieu@malaterre.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2005-07-15 19:53 -------
(In reply to comment #9)
> I cannot seems to find a way to generate traps on overflow.
-ftrapv does not trigger on overflowing calculations that are compile-time
constant. I am unsure whether this is a bug or a feature.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17645