r229771 - in /branches/hsa/gcc: ChangeLog.hsa c...
marxin@gcc.gnu.org
marxin@gcc.gnu.org
Wed Nov 4 17:19:00 GMT 2015
Author: marxin
Date: Wed Nov 4 17:19:17 2015
New Revision: 229771
URL: https://gcc.gnu.org/viewcvs?rev=229771&root=gcc&view=rev
Log:
HSA: convert pass manager termination to implementation in
* cgraphunit.c (cgraph_node::expand_thunk): Call
allocate_struct_function before init_function_start.
(cgraph_node::expand): Use push_cfun and pop_cfun.
* config/i386/i386.c (ix86_code_end): Call
allocate_struct_function before init_function_start.
* config/rs6000/rs6000.c (rs6000_code_end): Likewise.
* function.c (init_function_start): Move preamble to all
callers.
* hsa-gen.c (convert_switch_statements): Remove wrong pop_cfun
call.
(pass_gen_hsail::execute): Use new TODO_discard_function.
* passes.c (do_per_function_toporder): Use pop and push of a
node.
(execute_one_pass): Remove unused argument.
(execute_pass_list_1): Likewise.
(execute_ipa_pass_list): Likewise.
(execute_pass_list): Do not push and pop cfun, expect that
cfun is set.
* tree-pass.h (TODO_discard_function): Define.
Modified:
branches/hsa/gcc/ChangeLog.hsa
branches/hsa/gcc/cgraphunit.c
branches/hsa/gcc/config/i386/i386.c
branches/hsa/gcc/config/rs6000/rs6000.c
branches/hsa/gcc/function.c
branches/hsa/gcc/hsa-gen.c
branches/hsa/gcc/passes.c
branches/hsa/gcc/tree-pass.h
More information about the Gcc-cvs
mailing list