This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Enabling options with preprocessor conditions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]