From f2bc201f53e2b8b9b9d072b41c5099ee825686f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Mon, 14 May 2012 13:30:32 +0000 Subject: re PR c/53063 (encode group options in the .opt files) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2012-05-14 Manuel López-Ibáñez PR 53063 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. From-SVN: r187462 --- gcc/opt-read.awk | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/opt-read.awk') diff --git a/gcc/opt-read.awk b/gcc/opt-read.awk index 81c3ea894d9..2ca71eebf98 100644 --- a/gcc/opt-read.awk +++ b/gcc/opt-read.awk @@ -41,6 +41,7 @@ BEGIN { { if ($1 == "Language") { langs[n_langs] = $2 + lang_numbers[$2] = n_langs n_langs++; } else if ($1 == "TargetSave") { -- cgit v1.2.1