Hi Joseph, I think this implementation matches what we were
discussing. Bootstrapped and regression tested.

OK?

2012-05-13  Manuel López-Ibáñez  <m...@gcc.gnu.org>

c-family/
        * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
        Wreorder): Use LangEnabledBy.
        * c-opts.c (c_common_handle_option): Do not enable them
        explicitly. Call lang-specific generated functions.
        (c_common_post_options): Do not set them here.
gcc/
        * doc/options.texi: (LangEnabledBy): Document it.
        * optc-gen.awk: Handle LangEnabledBy.
        * opth-gen.awk: Generate declaration for lang-specific functions.
        * opt-read.awk: Record lang numbers.
        * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
        (lang_sanitized_name): New.
ada/
        * gcc-interface/misc.c: Include opts.h and options.h before tm.h.
        (gnat_handle_option): Call lang-specific generated function.
fortran/
        * options.c (gfc_handle_option): Call lang-specific generated function.

Attachment: langenabledby.diff
Description: Binary data

Reply via email to