This is the mail archive of the
mailing list for the GCC project.
Re: RFC: using -Wno-variadic-macros in stage 1
- From: Roger Sayle <roger at eyesopen dot com>
- To: Nathanael Nerode <neroden at twcny dot rr dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 23 Mar 2004 21:22:07 -0700 (MST)
- Subject: Re: RFC: using -Wno-variadic-macros in stage 1
On Tue, 23 Mar 2004, Nathanael Nerode wrote:
> Opinions on this?
> Otherwise huge herds of warnings get sprung by tree.h in stage 1, even
> though it's guarded by a GCC/STDC version check. :-P
Not to disuade you from using -Wno-variadic-macros during stage1, but
I've been waiting for the tree-ssa merge to fix this correctly. The
variadic macro is for backward compatabilty whilst all calls to "build"
are upgraded to use buildN instead, i.e. "build1", "build2", "build3"...
Unfortunately, such a conversion would affect everywhere that we build
or modify trees in GCC, and would cause terrible merge conflicts between
tree-ssa and mainline. So the clean-up is waiting for the merge.
Technically, its possible to get rid of the variadic macro early in the
transition to buildN. The vast majority of calls to "build" are really
to "build2", so once all of the non-binary builds have been converted,
we can switch to "#define build build2", before the final nightmare patch
Anyway, once the variadic "build" in tree.h is gone, we'll probably want
to re-enable these compilation warnings in stage1.