* 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
+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
+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
/* 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];
+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
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);
/* 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 (;;)
{
@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
+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>
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);
static void
-gfc_be_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
+gfc_be_parse_file (void)
{
int errors;
int warnings;
+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>
/* 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);
void
-java_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
+java_parse_file (void)
{
int filename_count = 0;
location_t save_location = input_location;
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 **);
#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
return t;
}
-/* Do nothing (int). */
-
-void
-lhd_do_nothing_i (int ARG_UNUSED (i))
-{
-}
-
/* Do nothing (int, int, int). Return NULL_TREE. */
tree
/* 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);
+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
simply applies them. */
void
-lto_main (int debug_p ATTRIBUTE_UNUSED)
+lto_main (void)
{
lto_process_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 */
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;
/* 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. */
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':