On Mon, 14 May 2012, Manuel L?pez-Ib??ez wrote:

> 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.

This is OK with what I assume was a debugging statement

+                    #print lang_name n_enabledby_lang[lang_index] 
enabledby[lang_name,n_enabledby_lang[lang_index]]

removed rather than commented out.

+        #print lang_name" " enabledby_name " " k " " 

Likewise here.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to