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: [patch] cosmetics for configure* in gcc


>> +ACX_PROG_CC_WARNING_OPTS(
>> +	[m4_do([-W -Wall -Wwrite-strings -Wstrict-prototypes ],
>> +	       [-Wmissing-prototypes -Wcast-qual])], [loose_warn])
>> +ACX_PROG_CC_WARNING_OPTS(
>> +	[m4_do([-Wold-style-definition -Wc++-compat ], 
>> +	       [-Wmissing-format-attribute])], [strict_warn])
>> +ACX_PROG_CC_WARNING_ALMOST_PEDANTIC(
>> +	[m4_do([-Wno-long-long -Wno-variadic-macros ], 
>> +	       [-Wno-overlength-strings])], [strict_warn])
> 
> I don't think the m4_do call should be quoted.  In the last case this
> results in a weird cache variable
> (acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_)
> because ACX_PROG_CC_WARNING_ALMOST_PEDANTIC does not expand the first
> argument when constructing it (which I think is correct).

I think the safest option would be m4_quote(m4_do(...)).  Otherwise, the
day someone adds -Wno-dnl you might be screwed. :-)

Paolo


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