I've merged svn trunk r215090 (2014-09-09) into the dmalcolm/jit git
branch [1], bringing in all changes since r203980 (2013-10-23); i.e.
about 10.5 months of changes from trunk.
Various manual fixes were necessary to enable the code to compile, and
for the test suite to run successfully.
With these changes, I see 4281 passes (and no failures) from jit.exp.
gcc/ChangeLog.jit:
* cgraph.c (cgraph_c_finalize): Update to reflect the movement of
many globals into fields of the "symtab" object.
* cgraphunit.c (graphunit_c_finalize): Likewise.
* symtab.c (symtab_c_finalize): Likewise.
* toplev.c (initialize_rtl): Move static local "initialized_once"
into file scope, and rename to...
(rtl_initialized): New variable.
(toplev::finalize): Clear rtl_initialized and
this_target_rtl->target_specific_initialized so that RTL will be
reinitialized when the compiler is run more than once in-process.
gcc/jit/ChangeLog.jit:
* dummy-frontend.c: Fix up for the header file flattening on
trunk by adding includes of signop.h, tree-core.h, stor-layout.h,
tree-ssa-alias.h, gimple-expr.h.
(jit_langhook_write_globals): Update call to
finalize_compilation_unit to symtab->finalize_compilation_unit to
track change made on trunk in r214422.
* internal-api.c: Fix up for the header file flattening on trunk
by adding includes of gimple-expr.h, tree-ssa-alias.h,
stringpool.h, stor-layout.h, print-tree.h, gimplify.h.
(new_rvalue_from_int): Update call to real_from_integer.
(gcc::jit::playback::wrapper::operator new): Use
ggc_internal_cleared_alloc rather than
ggc_internal_cleared_alloc_stat.
(gcc::jit::playback::function::postprocess): Update call to
cgraph_finalize_function tocgraph_node::finalize_function.
(gcc::jit::playback::block::add_comment): Update call to
ggc_internal_alloc_stat to ggc_internal_alloc.
gcc/testsuite/ChangeLog.jit:
* jit.dg/jit.exp: Load target-supports.exp.
Conflicts:
gcc/cgraph.h
gcc/cgraphunit.c
gcc/ipa-pure-const.c
gcc/ipa.c
gcc/symtab.c
gcc/toplev.c
[1] The commit in question is 7bc0466c739987845f0cd81354f414cd54d44e97.