This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Jun 2016 08:59:06 +0000
- Subject: [Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument
- Auto-submitted: auto-generated
- References: <bug-71479-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
BTW, for __builtin_add_overflow_p with _Bool as last argument (which isn't
rejected, going to fix that momentarily) we don't emit the expected test
whether the result is 0/1, but whether it fits 8 bits unsigned. Also, _Complex
_Bool
or _Complex enum ... is something way too weird for the middle-end.