[Bug c/68120] can't easily deal with integer overflow at compile time

2016-06-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/68120] can't easily deal with integer overflow at compile time

2016-06-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120 --- Comment #7 from Jakub Jelinek --- Author: jakub Date: Wed Jun 8 19:03:17 2016 New Revision: 237238 URL: https://gcc.gnu.org/viewcvs?rev=237238&root=gcc&view=rev Log: PR c++/70507 PR c/68120 * builtins.def (BUILT_IN_A

[Bug c/68120] can't easily deal with integer overflow at compile time

2016-05-01 Thread eggert at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120 --- Comment #6 from Paul Eggert --- (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 definite

[Bug c/68120] can't easily deal with integer overflow at compile time

2016-05-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120 --- Comment #5 from Martin Sebor --- Patch posted for review: https://gcc.gnu.org/ml/gcc-patches/2016-05/msg00013.html

[Bug c/68120] can't easily deal with integer overflow at compile time

2016-04-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug c/68120] can't easily deal with integer overflow at compile time

2016-04-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120 --- Comment #3 from Martin Sebor --- I raised c++/70507 to make a record of another problem caused by the built-ins not being treated as constant expressions.

[Bug c/68120] can't easily deal with integer overflow at compile time

2015-12-18 Thread eggert at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120 --- Comment #2 from Paul Eggert --- (In reply to Paul Eggert from comment #0) > I am working around the problem with macro definitions like this: > > # define INT_ADD_OVERFLOW(a, b) \ >(__builtin_constant_p ((a) == (b)) \ > ? _GL_INT_AD

[Bug c/68120] can't easily deal with integer overflow at compile time

2015-10-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|