/* toplev.h - Various declarations for functions found in toplev.c
- Copyright (C) 1998-2014 Free Software Foundation, Inc.
+ Copyright (C) 1998-2015 Free Software Foundation, Inc.
This file is part of GCC.
extern struct cl_decoded_option *save_decoded_options;
extern unsigned int save_decoded_options_count;
-extern int toplev_main (int, char **);
+/* Invoking the compiler. */
+class toplev
+{
+public:
+ toplev (bool use_TV_TOTAL,
+ bool init_signals);
+ ~toplev ();
+
+ int main (int argc, char **argv);
+
+ void finalize ();
+
+private:
+
+ void start_timevars ();
+
+ bool m_use_TV_TOTAL;
+ bool m_init_signals;
+};
+
extern void rest_of_decl_compilation (tree, int, int);
extern void rest_of_type_compilation (tree, int);
extern void init_optimization_passes (void);
extern void wrapup_global_declaration_1 (tree);
extern bool wrapup_global_declaration_2 (tree);
extern bool wrapup_global_declarations (tree *, int);
-extern void check_global_declaration_1 (tree);
-extern void check_global_declarations (tree *, int);
-extern void emit_debug_global_declarations (tree *, int);
-extern void write_global_declarations (void);
+extern void check_global_declaration (tree);
+
+extern void global_decl_processing (void);
extern void dump_memory_report (bool);
extern void dump_profile_report (void);
/* See toplev.c. */
extern int flag_rerun_cse_after_global_opts;
-extern void print_version (FILE *, const char *);
+extern void print_version (FILE *, const char *, bool);
/* The hashtable, so that the C front ends can pass it to cpplib. */
extern struct ht *ident_hash;
extern HOST_WIDE_INT get_random_seed (bool);
extern const char *set_random_seed (const char *);
+extern void initialize_rtl (void);
+
#endif /* ! GCC_TOPLEV_H */