RFC: using -Wno-variadic-macros in stage 1

Roger Sayle roger@eyesopen.com
Wed Mar 24 05:40:00 GMT 2004

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
is applied.

Anyway, once the variadic "build" in tree.h is gone, we'll probably want
to re-enable these compilation warnings in stage1.


More information about the Gcc-patches mailing list