OSDN Git Service

(grokdeclarator): Call pop_obstacks after creating
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jun 1996 19:15:24 +0000 (19:15 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jun 1996 19:15:24 +0000 (19:15 +0000)
TYPE_DECL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12178 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-decl.c

index de3f1c1..8e04798 100644 (file)
@@ -4796,11 +4796,11 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
        pedwarn ("ANSI C forbids const or volatile function types");
       if (constp || volatilep)
        type = c_build_type_variant (type, constp, volatilep);
-      pop_obstacks ();
       decl = build_decl (TYPE_DECL, declarator, type);
       if ((specbits & (1 << (int) RID_SIGNED))
          || (typedef_decl && C_TYPEDEF_EXPLICITLY_SIGNED (typedef_decl)))
        C_TYPEDEF_EXPLICITLY_SIGNED (decl) = 1;
+      pop_obstacks ();
       return decl;
     }