This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v3] cpp/c: Add -Wexpansion-to-defined
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: Paolo Bonzini <pbonzini at redhat dot com>, <gcc-patches at gcc dot gnu dot org>, Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Date: Tue, 22 Nov 2016 02:43:57 +0000
- Subject: Re: [PATCH v3] cpp/c: Add -Wexpansion-to-defined
- Authentication-results: sourceware.org; auth=none
- References: <1470837224-14510-1-git-send-email-pbonzini@redhat.com> <93760de1-d170-ab1a-3eac-6830e0c08e90@gnu.org>
It's not obvious to me whether this belongs in -Wextra. After all, this
is a perfectly reasonable and useful GNU C feature, or at least some cases
of it are (like "#define FOO (BAR || defined something)"). Is the
argument that there are too many details of it that differ between
implementations, as discussed in section 3.2 of
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4220.pdf>?
--
Joseph S. Myers
joseph@codesourcery.com