aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2008-09-09 08:56:58 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2008-09-09 08:56:58 +0000
commit0c03f46fcb7815e5da15a37abbbb8c40daa5cc48 (patch)
tree37848acf141412c81415c91c89ffd7eab8980776 /gcc/c-common.c
parent6efbd94a33a53ac4cb6d3c5585c27f529713b9bb (diff)
downloadgcc-0c03f46fcb7815e5da15a37abbbb8c40daa5cc48.zip
gcc-0c03f46fcb7815e5da15a37abbbb8c40daa5cc48.tar.gz
gcc-0c03f46fcb7815e5da15a37abbbb8c40daa5cc48.tar.bz2
c-common.c (c_expand_decl): Remove.
2008-09-09 Paolo Bonzini <bonzini@gnu.org> * c-common.c (c_expand_decl): Remove. * c-common.h (anon_aggr_type_p): Remove prototype. (DECL_ANON_UNION_ELEMS): Remove. * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove. * c-decl.c (anon_aggr_type_p): Remove. * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove. (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL. * langhooks.h (struct lang_hooks): Remove expand_decl. * langhooks.c (lhd_expand_decl): Remove. * stmt.c (expand_anon_union_decl): Remove. * tree.h (expand_anon_union_decl): Remove prototype. cp: 2008-09-09 Paolo Bonzini <bonzini@gnu.org> * cp-objcp-common.h (LANG_HOOKS_EXPAND_DECL): Remove. * cp-tree.h: Don't mention DECL_ANON_UNION_ELEMS. * semantics.c (anon_aggr_type_p): Remove. From-SVN: r140138
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 8c9e48c..a810bea 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -983,28 +983,6 @@ fname_as_string (int pretty_p)
return namep;
}
-/* Expand DECL if it declares an entity not handled by the
- common code. */
-
-int
-c_expand_decl (tree decl)
-{
- if (TREE_CODE (decl) == VAR_DECL && !TREE_STATIC (decl))
- {
- /* Let the back-end know about this variable. */
- if (!anon_aggr_type_p (TREE_TYPE (decl)))
- emit_local_var (decl);
- else
- expand_anon_union_decl (decl, NULL_TREE,
- DECL_ANON_UNION_ELEMS (decl));
- }
- else
- return 0;
-
- return 1;
-}
-
-
/* Return the VAR_DECL for a const char array naming the current
function. If the VAR_DECL has not yet been created, create it
now. RID indicates how it should be formatted and IDENTIFIER_NODE