Commit 6a5ac314 by Oleg Endo

cgraphunit.c: Remove struct tags when referring to class ipa_opt_pass_d or class opt_pass.

	* cgraphunit.c: Remove struct tags when referring to class
	ipa_opt_pass_d or class opt_pass.
	* function.h: Likewise.
	* lto-cgraph.c: Likewise.
	* pass_manager.h: Likewise.
	* passes.c: Likewise.
	* tree-pass.h: Likewise.

From-SVN: r205732
parent 041508a2
2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
* cgraphunit.c: Remove struct tags when referring to class
ipa_opt_pass_d or class opt_pass.
* function.h: Likewise.
* lto-cgraph.c: Likewise.
* pass_manager.h: Likewise.
* passes.c: Likewise.
* tree-pass.h: Likewise.
2013-12-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/59058
......@@ -2019,7 +2019,7 @@ ipa_passes (void)
cgraph_process_new_functions ();
execute_ipa_summary_passes
((struct ipa_opt_pass_d *) passes->all_regular_ipa_passes);
((ipa_opt_pass_d *) passes->all_regular_ipa_passes);
}
/* Some targets need to handle LTO assembler output specially. */
......
......@@ -167,8 +167,8 @@ typedef struct temp_slot *temp_slot_p;
struct call_site_record_d;
struct dw_fde_struct;
struct ipa_opt_pass_d;
typedef struct ipa_opt_pass_d *ipa_opt_pass;
class ipa_opt_pass_d;
typedef ipa_opt_pass_d *ipa_opt_pass;
struct GTY(()) varasm_status {
......
......@@ -389,7 +389,7 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node,
intptr_t ref;
bool in_other_partition = false;
struct cgraph_node *clone_of, *ultimate_clone_of;
struct ipa_opt_pass_d *pass;
ipa_opt_pass_d *pass;
int i;
bool alias_p;
......@@ -1060,12 +1060,12 @@ input_node (struct lto_file_decl_data *file_data,
node->ipa_transforms_to_apply = vNULL;
for (i = 0; i < count; i++)
{
struct opt_pass *pass;
opt_pass *pass;
int pid = streamer_read_hwi (ib);
gcc_assert (pid < passes->passes_by_id_size);
pass = passes->passes_by_id[pid];
node->ipa_transforms_to_apply.safe_push ((struct ipa_opt_pass_d *) pass);
node->ipa_transforms_to_apply.safe_push ((ipa_opt_pass_d *) pass);
}
if (tag == LTO_symtab_analyzed_node)
......
......@@ -51,7 +51,7 @@ public:
pass_manager (context *ctxt);
void register_pass (struct register_pass_info *pass_info);
void register_one_dump_file (struct opt_pass *pass);
void register_one_dump_file (opt_pass *pass);
opt_pass *get_pass_for_id (int id) const;
......@@ -91,8 +91,8 @@ public:
private:
void set_pass_for_id (int id, opt_pass *pass);
int register_dump_files_1 (struct opt_pass *pass, int properties);
void register_dump_files (struct opt_pass *pass, int properties);
int register_dump_files_1 (opt_pass *pass, int properties);
void register_dump_files (opt_pass *pass, int properties);
private:
context *m_ctxt;
......
......@@ -106,10 +106,10 @@ protected:
public:
/* A list of sub-passes to run, dependent on gate predicate. */
struct opt_pass *sub;
opt_pass *sub;
/* Next in the list of passes to run, independent of gate predicate. */
struct opt_pass *next;
opt_pass *next;
/* Static pass number, used as a fragment of the dump file name. */
int static_pass_number;
......@@ -321,7 +321,7 @@ enum pass_positioning_ops
struct register_pass_info
{
struct opt_pass *pass; /* New pass to register. */
opt_pass *pass; /* New pass to register. */
const char *reference_pass_name; /* Name of the reference pass for hooking
up the new pass. */
int ref_pass_instance_number; /* Insert the pass at the specified
......@@ -583,16 +583,16 @@ extern gimple_opt_pass *make_pass_update_address_taken (gcc::context *ctxt);
extern gimple_opt_pass *make_pass_convert_switch (gcc::context *ctxt);
/* Current optimization pass. */
extern struct opt_pass *current_pass;
extern opt_pass *current_pass;
extern bool execute_one_pass (struct opt_pass *);
extern void execute_pass_list (struct opt_pass *);
extern void execute_ipa_pass_list (struct opt_pass *);
extern void execute_ipa_summary_passes (struct ipa_opt_pass_d *);
extern bool execute_one_pass (opt_pass *);
extern void execute_pass_list (opt_pass *);
extern void execute_ipa_pass_list (opt_pass *);
extern void execute_ipa_summary_passes (ipa_opt_pass_d *);
extern void execute_all_ipa_transforms (void);
extern void execute_all_ipa_stmt_fixups (struct cgraph_node *, gimple *);
extern bool pass_init_dump_file (struct opt_pass *);
extern void pass_fini_dump_file (struct opt_pass *);
extern bool pass_init_dump_file (opt_pass *);
extern void pass_fini_dump_file (opt_pass *);
extern const char *get_current_pass_name (void);
extern void print_current_pass (FILE *);
......@@ -601,7 +601,7 @@ extern void ipa_write_summaries (void);
extern void ipa_write_optimization_summaries (struct lto_symtab_encoder_d *);
extern void ipa_read_summaries (void);
extern void ipa_read_optimization_summaries (void);
extern void register_one_dump_file (struct opt_pass *);
extern void register_one_dump_file (opt_pass *);
extern bool function_called_by_processed_nodes_p (void);
/* Set to true if the pass is called the first time during compilation of the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment