diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-17 14:31:07 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-17 14:31:07 +0000 |
commit | b8ba44e77a9fdde48ce0b7c6792736996704501e (patch) | |
tree | 0d20227504dcaf792fb3e2663879383129b47382 /gcc/c-family | |
parent | fc2596c8b958ac6626601b8dd7e5ba25fc64f006 (diff) | |
download | gcc-b8ba44e77a9fdde48ce0b7c6792736996704501e.tar.gz |
* doc/invoke.texi (-dy): Remove.
* langhooks-def.h (lhd_do_nothing_i): Don't declare.
(LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
* langhooks.c (lhd_do_nothing_i): Remove.
* langhooks.h (lang_hooks.parse_file): Take no arguments.
* toplev.c (set_yydebug): Remove.
(compile_file): Update call to lang_hooks.parse_file.
(decode_d_option): Don't handle -dy.
ada:
* gcc-interface/misc.c (gnat_parse_file): Take no arguments.
c-family:
* c-opts.c (c_common_parse_file): Take no arguments.
* c-common.h (c_common_parse_file): Update prototype.
fortran:
* f95-lang.c (gfc_be_parse_file): Take no arguments.
java:
* jcf-parse.c (java_parse_file): Take no arguments.
* java-tree.h (java_parse_file): Update prototype.
lto:
* lto.c (lto_main): Take no arguments.
* lto.h (lto_main): Update prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166868 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c-common.h | 2 | ||||
-rw-r--r-- | gcc/c-family/c-opts.c | 23 |
3 files changed, 7 insertions, 23 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 57d3ab83374..81e636c28f5 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2010-11-17 Joseph Myers <joseph@codesourcery.com> + + * c-opts.c (c_common_parse_file): Take no arguments. + * c-common.h (c_common_parse_file): Update prototype. + 2010-11-16 Jakub Jelinek <jakub@redhat.com> PR c++/46401 diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index cddad17348f..76842d2ded1 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -771,7 +771,7 @@ extern void c_common_init_options (unsigned int, struct cl_decoded_option *); extern bool c_common_post_options (const char **); extern bool c_common_init (void); extern void c_common_finish (void); -extern void c_common_parse_file (int); +extern void c_common_parse_file (void); extern alias_set_type c_common_get_alias_set (tree); extern void c_register_builtin_type (tree, const char*); extern bool c_promoting_integer_type_p (const_tree); diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 46f6c780ea6..3d70136ee0e 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -1057,31 +1057,10 @@ c_common_init (void) /* Initialize the integrated preprocessor after debug output has been initialized; loop over each input file. */ void -c_common_parse_file (int set_yydebug) +c_common_parse_file (void) { unsigned int i; - if (set_yydebug) - switch (c_language) - { - case clk_c: - warning(0, "the C parser does not support -dy, option ignored"); - break; - case clk_objc: - warning(0, - "the Objective-C parser does not support -dy, option ignored"); - break; - case clk_cxx: - warning(0, "the C++ parser does not support -dy, option ignored"); - break; - case clk_objcxx: - warning(0, - "the Objective-C++ parser does not support -dy, option ignored"); - break; - default: - gcc_unreachable (); - } - i = 0; for (;;) { |