diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-19 18:19:39 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-19 18:19:39 +0000 |
commit | e56043cd2c207982e812ce6fcecb7353dea58363 (patch) | |
tree | 01a6f37ad5a9ae6b18bdc20f052b04e19b4255c0 /gcc/gimple-low.c | |
parent | 2e02a1a4548f2ee1ea519c88e68b20621ad16fcc (diff) | |
download | gcc-e56043cd2c207982e812ce6fcecb7353dea58363.tar.gz |
2010-09-19 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 164348, with some improvements
in gcc/melt-runtime.[ch]
2010-09-19 Basile Starynkevitch <basile@starynkevitch.net>
[[merged with trunk rev.164348, so improved MELT runtime!]]
* gcc/melt-runtime.h: improved comments.
(melt_debug_garbcoll, melt_debuggc_eprintf): Moved from melt-runtime.c.
(melt_obmag_string): New declaration.
(struct meltobject_st, struct meltclosure_st, struct
meltroutine_st, struct meltmixbigint_st, struct meltstring_st):
using GTY variable_size and @@MELTGTY@@ comment.
(melt_mark_special): added debug print.
* gcc/melt-runtime.c: Improved comments.
Include bversion.h, realmpfr.h, gimple-pretty-print.h.
(ggc_force_collect) Declared external.
(melt_forward_counter): Added.
(melt_obmag_string): New function.
(melt_alptr_1, melt_alptr_2, melt_break_alptr_1_at)
(melt_break_alptr_2_at, melt_break_alptr_1,melt_break_alptr_1)
(melt_allocate_young_gc_zone, melt_free_young_gc_zone): New.
(delete_special, meltgc_make_special): Improved debug printf and
use melt_break_alptr_1...
(ggc_alloc_*) macros defined for backport to GCC 4.5
(melt_forwarded_copy): Don't clear the new destination zone in old
GGC heap.
(meltgc_add_out_raw_len): Use ggc_alloc_atomic.
(meltgc_raw_new_mappointers, meltgc_raw_put_mappointers)
(meltgc_raw_remove_mappointers): Corrected length argument to
ggc_alloc_cleared_vec_entrypointermelt_st.
(melt_really_initialize): Call melt_allocate_young_gc_zone.
(melt_initialize): Set flag_plugin_added.
(melt_val2passflag): TODO_verify_loops only in GCC 4.5
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@164424 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-low.c')
-rw-r--r-- | gcc/gimple-low.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c index 63d501deb50..1f7ae2ffdac 100644 --- a/gcc/gimple-low.c +++ b/gcc/gimple-low.c @@ -24,21 +24,13 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "tree.h" -#include "rtl.h" -#include "varray.h" #include "gimple.h" #include "tree-iterator.h" #include "tree-inline.h" -#include "diagnostic.h" -#include "langhooks.h" -#include "langhooks-def.h" #include "tree-flow.h" -#include "timevar.h" -#include "except.h" -#include "hashtab.h" #include "flags.h" #include "function.h" -#include "expr.h" +#include "diagnostic-core.h" #include "toplev.h" #include "tree-pass.h" @@ -249,7 +241,7 @@ gimple_check_call_args (gimple stmt) { for (i = 0, p = DECL_ARGUMENTS (fndecl); i < nargs; - i++, p = TREE_CHAIN (p)) + i++, p = DECL_CHAIN (p)) { /* We cannot distinguish a varargs function from the case of excess parameters, still deferring the inlining decision @@ -902,7 +894,7 @@ record_vars_into (tree vars, tree fn) if (fn != current_function_decl) push_cfun (DECL_STRUCT_FUNCTION (fn)); - for (; vars; vars = TREE_CHAIN (vars)) + for (; vars; vars = DECL_CHAIN (vars)) { tree var = vars; @@ -916,8 +908,7 @@ record_vars_into (tree vars, tree fn) continue; /* Record the variable. */ - cfun->local_decls = tree_cons (NULL_TREE, var, - cfun->local_decls); + add_local_decl (cfun, var); } if (fn != current_function_decl) |