This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Enabling options with preprocessor conditions
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 16 May 2005 08:57:12 +0100
- Subject: Re: RFA: Enabling options with preprocessor conditions
- References: <87psvschtr.fsf@firetop.home> <20050516064745.GB29115@redhat.com>
Richard Henderson <rth@redhat.com> writes:
> On Sun, May 15, 2005 at 10:14:40PM +0100, Richard Sandiford wrote:
>> + printf ("#if %s\n" \
>> + " %s,\n" \
>> + "#else\n" \
>> + " CL_DISABLED,\n" \
>> + "#endif\n",
>
> It's not clear from the documentation that condition must be
> valid for the preprocessor.
Well, the documentation did say it was a "preprocessor condition":
+@item Condition(@var{cond})
+The option should only be accepted if preprocessor condition
+@var{cond} is true. Note that any C declarations associated with the
+option will be present even if @var{cond} is false; @var{cond} simply
+controls whether the option is accepted and whether it is printed in
+the @option{--help} output.
Can you suggest a way of making it clearer?
Richard