This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68120] can't easily deal with integer overflow at compile time
- From: "eggert at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 01 May 2016 18:15:09 +0000
- Subject: [Bug c/68120] can't easily deal with integer overflow at compile time
- Auto-submitted: auto-generated
- References: <bug-68120-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120
--- Comment #6 from Paul Eggert <eggert at gnu dot org> ---
(In reply to Martin Sebor from comment #5)
> Patch posted for review:
> https://gcc.gnu.org/ml/gcc-patches/2016-05/msg00013.html
Thanks. This patch appears to address almost all the request, and it is
definitely a step forward.
Even with the change, I see no easy way in a constant expression to compute the
bottom-order bits (ignoring overflow) of a signed integer value, but I can
raise this issue as a separate enhancement request if it turns into a problem
in practice.