summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-17 18:01:01 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-17 18:01:01 +0000
commit72d88545d883fcffda9fdceb1e13e1f35ee74a4a (patch)
tree2f66fb6521ff0babea4a56ed65dad0bbc1486399 /gcc
parentbe65b7c519eb9d5fef14683a8f9f30f468e7cee9 (diff)
downloadgcc-72d88545d883fcffda9fdceb1e13e1f35ee74a4a.tar.gz
* c-decl.c (pushdecl): Don't set DECL_LANG_SPECIFIC.
(c_builtin_function): Likewise. (grokdeclarator): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128552 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-decl.c7
2 files changed, 6 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ffa25b9caca..72ab6794879 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-17 Tom Tromey <tromey@redhat.com>
+
+ * c-decl.c (pushdecl): Don't set DECL_LANG_SPECIFIC.
+ (c_builtin_function): Likewise.
+ (grokdeclarator): Likewise.
+
2007-09-17 Zdenek Dvorak <ook@ucw.cz>
PR rtl-optimization/26449
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 719c2897397..ee8e7853383 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2071,10 +2071,6 @@ pushdecl (tree x)
struct c_binding *b;
bool nested = false;
- /* Functions need the lang_decl data. */
- if (TREE_CODE (x) == FUNCTION_DECL && !DECL_LANG_SPECIFIC (x))
- DECL_LANG_SPECIFIC (x) = GGC_CNEW (struct lang_decl);
-
/* Must set DECL_CONTEXT for everything not at file scope or
DECL_FILE_SCOPE_P won't work. Local externs don't count
unless they have initializers (which generate code). */
@@ -2846,7 +2842,6 @@ c_builtin_function (tree decl)
tree id = DECL_NAME (decl);
const char *name = IDENTIFIER_POINTER (id);
- DECL_LANG_SPECIFIC (decl) = GGC_CNEW (struct lang_decl);
C_DECL_BUILTIN_PROTOTYPE (decl) = (TYPE_ARG_TYPES (type) != 0);
/* Should never be called on a symbol with a preexisting meaning. */
@@ -4825,8 +4820,6 @@ grokdeclarator (const struct c_declarator *declarator,
decl = build_decl (FUNCTION_DECL, declarator->u.id, type);
decl = build_decl_attribute_variant (decl, decl_attr);
- DECL_LANG_SPECIFIC (decl) = GGC_CNEW (struct lang_decl);
-
if (pedantic && type_quals && !DECL_IN_SYSTEM_HEADER (decl))
pedwarn ("ISO C forbids qualified function types");