gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
authorJakub Jelinek <jakub@redhat.com>
Wed, 9 Jul 2008 19:32:54 +0000 (21:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 9 Jul 2008 19:32:54 +0000 (21:32 +0200)
commitd406b663d0e9973eeb9211409fe35d70b973db34
tree36739d69af4b92f19e771bb69a776ef920375013
parentb0a0ab2d51723c6f19db57f9732d4c4ca7278f3d
gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.

* gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
(push_gimplify_context): Don't allocate temp_htab nor c itself here.
Add c argument.
(pop_gimplify_context): Check c->temp_htab instead of optimize whether
htab_delete should be called.  Don't free c.
(lookup_tmp_var): Create temp_htab lazily.
(gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
gimplify_body, force_gimple_operand): Adjust push_gimplify_context
callers.
* omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
lower_omp_ordered, lower_omp_critical, lower_omp_for,
create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
* tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
* tree-sra.c (generate_element_init): Likewise.
* tree-mudflap.c (execute_mudflap_function_ops,
execute_mudflap_function_decls): Likewise.
* tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
* tree-gimple.h (struct gimplify_ctx): New type.
(push_gimplify_context): Adjust prototype.

From-SVN: r137666
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-low.c
gcc/tree-gimple.h
gcc/tree-inline.c
gcc/tree-mudflap.c
gcc/tree-sra.c
gcc/tree-ssa-ccp.c