This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Don't promote bitfields in last arg of __builtin_*_overflow_p
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Jason Merrill <jason at redhat dot com>, Marek Polacek <polacek at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 16 Jun 2016 14:51:19 +0000
- Subject: Re: [C++ PATCH] Don't promote bitfields in last arg of __builtin_*_overflow_p
- Authentication-results: sourceware.org; auth=none
- References: <20160610190835 dot GF7387 at tucnak dot redhat dot com> <575B14F7 dot 3070907 at gmail dot com> <20160614083359 dot GA7387 at tucnak dot redhat dot com> <20160614101602 dot GB7387 at tucnak dot redhat dot com> <57603B38 dot 9080302 at gmail dot com> <20160615114756 dot GJ7387 at tucnak dot redhat dot com> <alpine dot DEB dot 2 dot 20 dot 1606151213230 dot 10211 at digraph dot polyomino dot org dot uk> <57616156 dot 6090103 at gmail dot com> <20160615195122 dot GP7387 at tucnak dot redhat dot com> <57620DE8 dot 4090403 at gmail dot com>
On Wed, 15 Jun 2016, Martin Sebor wrote:
> Looks fine to me. The bit-field handling should be explained
> in the manual. Though useful, it's unusual enough that I don't
> think people will expect it (there have been bug reports or
> questions in the past about the C handling of bit-fields from
> users familiar with the C++ semantics).
And at least once bug for C++ (70733) that was closed on the basis of C
semantics where I don't see that closure as correct under C++ semantics (I
haven't verified whether the bug report is correct, however).
--
Joseph S. Myers
joseph@codesourcery.com