OSDN Git Service

* doc/invoke.texi (-dy): Remove.
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Nov 2010 14:31:07 +0000 (14:31 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Nov 2010 14:31:07 +0000 (14:31 +0000)
* 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

19 files changed:
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/misc.c
gcc/c-family/ChangeLog
gcc/c-family/c-common.h
gcc/c-family/c-opts.c
gcc/doc/invoke.texi
gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c
gcc/java/ChangeLog
gcc/java/java-tree.h
gcc/java/jcf-parse.c
gcc/langhooks-def.h
gcc/langhooks.c
gcc/langhooks.h
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/lto/lto.h
gcc/toplev.c

index 3fa0b56..71b28f5 100644 (file)
@@ -1,3 +1,14 @@
+2010-11-17  Joseph Myers  <joseph@codesourcery.com>
+
+       * 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.
+
 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/46440
index 07ccf3e..b621053 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-17  Joseph Myers  <joseph@codesourcery.com>
+
+       * gcc-interface/misc.c (gnat_parse_file): Take no arguments.
+
 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/trans.c (addressable_p): Rewrite obsolete paragraph in
index 40f0db8..ed66f8b 100644 (file)
@@ -77,7 +77,7 @@ extern void _ada_gnat1drv (void);
 /* The parser for the language.  For us, we process the GNAT tree.  */
 
 static void
-gnat_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
+gnat_parse_file (void)
 {
   int seh[2];
 
index 57d3ab8..81e636c 100644 (file)
@@ -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
index cddad17..76842d2 100644 (file)
@@ -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);
index 46f6c78..3d70136 100644 (file)
@@ -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 (;;)
     {
index 9509b83..0aebe45 100644 (file)
@@ -5275,10 +5275,6 @@ to @file{@var{file}.@var{pass}.vcg}.
 @opindex dx
 Just generate RTL for a function instead of compiling it.  Usually used
 with @option{-fdump-rtl-expand}.
-
-@item -dy
-@opindex dy
-Dump debugging information during parsing, to standard error.
 @end table
 
 @item -fdump-noaddr
index 61a0df6..0961df3 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-17  Joseph Myers  <joseph@codesourcery.com>
+
+       * f95-lang.c (gfc_be_parse_file): Take no arguments.
+
 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
            Tobias Burnus  <burnus@net-b.de>
 
index 57696e5..3ed500b 100644 (file)
@@ -93,7 +93,7 @@ static void gfc_print_identifier (FILE *, tree, int);
 void do_function_end (void);
 int global_bindings_p (void);
 static void clear_binding_stack (void);
-static void gfc_be_parse_file (int);
+static void gfc_be_parse_file (void);
 static alias_set_type gfc_get_alias_set (tree);
 static void gfc_init_ts (void);
 
@@ -241,7 +241,7 @@ gfc_create_decls (void)
 
 
 static void
-gfc_be_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
+gfc_be_parse_file (void)
 {
   int errors;
   int warnings;
index 825f02f..05cbb03 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-17  Joseph Myers  <joseph@codesourcery.com>
+
+       * jcf-parse.c (java_parse_file): Take no arguments.
+       * java-tree.h (java_parse_file): Update prototype.
+
 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
            Andrew Haley  <aph@redhat.com>
 
index d7c9996..3addcca 100644 (file)
@@ -939,7 +939,7 @@ struct GTY((variable_size)) lang_type {
 /* Defined in java-except.h  */
 struct eh_range;
 
-extern void java_parse_file (int);
+extern void java_parse_file (void);
 extern tree java_type_for_mode (enum machine_mode, int);
 extern tree java_type_for_size (unsigned int, int);
 extern tree java_truthvalue_conversion (tree);
index ce1de5a..28d9ad4 100644 (file)
@@ -1732,7 +1732,7 @@ java_emit_static_constructor (void)
 
 
 void
-java_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
+java_parse_file (void)
 {
   int filename_count = 0;
   location_t save_location = input_location;
index 822925f..961e929 100644 (file)
@@ -37,7 +37,6 @@ struct diagnostic_info;
 
 extern void lhd_do_nothing (void);
 extern void lhd_do_nothing_t (tree);
-extern void lhd_do_nothing_i (int);
 extern void lhd_do_nothing_f (struct function *);
 extern tree lhd_pass_through_t (tree);
 extern bool lhd_post_options (const char **);
@@ -85,7 +84,7 @@ extern void lhd_omp_firstprivatize_type_sizes (struct gimplify_omp_ctx *,
 #define LANG_HOOKS_IDENTIFIER_SIZE     sizeof (struct lang_identifier)
 #define LANG_HOOKS_INIT                        hook_bool_void_false
 #define LANG_HOOKS_FINISH              lhd_do_nothing
-#define LANG_HOOKS_PARSE_FILE          lhd_do_nothing_i
+#define LANG_HOOKS_PARSE_FILE          lhd_do_nothing
 #define LANG_HOOKS_OPTION_LANG_MASK    hook_uint_void_0
 #define LANG_HOOKS_INIT_OPTIONS_STRUCT hook_void_gcc_optionsp
 #define LANG_HOOKS_INIT_OPTIONS                lhd_init_options
index 1f656fe..80efd32 100644 (file)
@@ -62,13 +62,6 @@ lhd_pass_through_t (tree t)
   return t;
 }
 
-/* Do nothing (int).  */
-
-void
-lhd_do_nothing_i (int ARG_UNUSED (i))
-{
-}
-
 /* Do nothing (int, int, int).  Return NULL_TREE.  */
 
 tree
index 87a8b2c..a994729 100644 (file)
@@ -317,9 +317,8 @@ struct lang_hooks
   /* Called at the end of compilation, as a finalizer.  */
   void (*finish) (void);
 
-  /* Parses the entire file.  The argument is nonzero to cause bison
-     parsers to dump debugging information during parsing.  */
-  void (*parse_file) (int);
+  /* Parses the entire file.  */
+  void (*parse_file) (void);
 
   /* Determines if it's ok for a function to have no noreturn attribute.  */
   bool (*missing_noreturn_ok_p) (tree);
index c254da1..8b02672 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-17  Joseph Myers  <joseph@codesourcery.com>
+
+       * lto.c (lto_main): Take no arguments.
+       * lto.h (lto_main): Update prototype.
+
 2010-11-16  Ian Lance Taylor  <iant@google.com>
 
        * lto-object.c (lto_obj_file_open): Call
index d3b9228..44f866a 100644 (file)
@@ -2437,7 +2437,7 @@ lto_process_name (void)
      simply applies them.  */
 
 void
-lto_main (int debug_p ATTRIBUTE_UNUSED)
+lto_main (void)
 {
   lto_process_name ();
 
index 47d9973..8110ace 100644 (file)
@@ -37,7 +37,7 @@ extern const char *resolution_file_name;
 
 /* In lto.c  */
 extern tree lto_eh_personality (void);
-extern void lto_main (int);
+extern void lto_main (void);
 extern void lto_read_all_file_options (void);
 
 /* In lto-elf.c or lto-coff.c  */
index 3f158a4..7c91b06 100644 (file)
@@ -117,9 +117,6 @@ static void crash_signal (int) ATTRIBUTE_NORETURN;
 static void setup_core_dumping (void);
 static void compile_file (void);
 
-/* Nonzero to dump debug info whilst parsing (-dy option).  */
-static int set_yydebug;
-
 /* True if we don't need a backend (e.g. preprocessing only).  */
 static bool no_backend;
 
@@ -870,7 +867,7 @@ compile_file (void)
 
   /* Call the parser, which parses the entire file (calling
      rest_of_compilation for each function).  */
-  lang_hooks.parse_file (set_yydebug);
+  lang_hooks.parse_file ();
 
   /* Compilation is now finished except for writing
      what's left of the symbol table output.  */
@@ -993,9 +990,6 @@ decode_d_option (const char *arg)
       case 'x':
        rtl_dump_and_exit = 1;
        break;
-      case 'y':
-       set_yydebug = 1;
-       break;
       case 'D':        /* These are handled by the preprocessor.  */
       case 'I':
       case 'M':