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, C] options generation and language count


On 09/02/11 13:42:32, Joseph S. Myers wrote:
> [..] you should just generate #if/#error in the output [...]

OK, take two, attached.  (Confirmed that the #if works for
the (<, ==, >) relationships between n_langs and the max.
number of languages supported.)

- Gary

2011-09-02  Gary Funck <gary@intrepid.com>

        * opts.c (print_specific_help): Fix off-by-one compare in
        assertion check.
        * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
        CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
        Increase by +5 to allow for more languages.
        * optc-gen.awk: Generate #if that ensures that the number of
        languages is within the implementation-defined limit.

Attachment: optc-gen-lang-check.patch
Description: Text document


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