Commit 1d4c5fe9 by Steven Bosscher

c-decl.c: Don't include gimple.h.

	* c-decl.c: Don't include gimple.h.
	(merge_decls): Do not copy gimple_body.

From-SVN: r159451
parent 9feb3d6a
2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
* c-decl.c: Don't include gimple.h.
(merge_decls): Do not copy gimple_body.
2010-05-15 Jason Merrill <jason@redhat.com> 2010-05-15 Jason Merrill <jason@redhat.com>
* c.opt: Add -fnothrow-opt. * c.opt: Add -fnothrow-opt.
......
...@@ -51,7 +51,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -51,7 +51,6 @@ along with GCC; see the file COPYING3. If not see
#include "c-lang.h" #include "c-lang.h"
#include "langhooks.h" #include "langhooks.h"
#include "tree-mudflap.h" #include "tree-mudflap.h"
#include "gimple.h" /* FIXME: For gimple_set_body and gimple_body, but why? */
#include "tree-iterator.h" #include "tree-iterator.h"
#include "diagnostic.h" #include "diagnostic.h"
#include "tree-dump.h" #include "tree-dump.h"
...@@ -2370,7 +2369,6 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype) ...@@ -2370,7 +2369,6 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype)
DECL_INITIAL (newdecl) = DECL_INITIAL (olddecl); DECL_INITIAL (newdecl) = DECL_INITIAL (olddecl);
DECL_STRUCT_FUNCTION (newdecl) = DECL_STRUCT_FUNCTION (olddecl); DECL_STRUCT_FUNCTION (newdecl) = DECL_STRUCT_FUNCTION (olddecl);
DECL_SAVED_TREE (newdecl) = DECL_SAVED_TREE (olddecl); DECL_SAVED_TREE (newdecl) = DECL_SAVED_TREE (olddecl);
gimple_set_body (newdecl, gimple_body (olddecl));
DECL_ARGUMENTS (newdecl) = copy_list (DECL_ARGUMENTS (olddecl)); DECL_ARGUMENTS (newdecl) = copy_list (DECL_ARGUMENTS (olddecl));
for (t = DECL_ARGUMENTS (newdecl); t ; t = TREE_CHAIN (t)) for (t = DECL_ARGUMENTS (newdecl); t ; t = TREE_CHAIN (t))
DECL_CONTEXT (t) = newdecl; DECL_CONTEXT (t) = newdecl;
...@@ -2412,9 +2410,6 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype) ...@@ -2412,9 +2410,6 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype)
switch (TREE_CODE (olddecl)) switch (TREE_CODE (olddecl))
{ {
case FUNCTION_DECL: case FUNCTION_DECL:
gimple_set_body (olddecl, gimple_body (newdecl));
/* fall through */
case FIELD_DECL: case FIELD_DECL:
case VAR_DECL: case VAR_DECL:
case PARM_DECL: case PARM_DECL:
......
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