From f6bf7bb617bc7d39715803f8915c6b77316eac25 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Tue, 22 Jun 2004 07:23:25 +0000 Subject: Radar #: 3701874 2004-06-21 Andrew Pinski Radar #: 3701874 * c-decl.c (push_file_scope): Return early if we already have a file scope. 2004-06-21 Andrew Pinski * gcc.dg/pch/struct-1.c: New. * gcc.dg/pch/struct-1.hs: New. From-SVN: r83483 --- gcc/c-decl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/c-decl.c') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 4735dab..1f0db19 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -810,6 +810,9 @@ push_file_scope (void) { tree decl; + if (file_scope) + return; + push_scope (); file_scope = current_scope; -- cgit v1.1