Radar #: 3701874
2004-06-21 Andrew Pinski <apinski@apple.com> Radar #: 3701874 * c-decl.c (push_file_scope): Return early if we already have a file scope. 2004-06-21 Andrew Pinski <apinski@apple.com> * gcc.dg/pch/struct-1.c: New. * gcc.dg/pch/struct-1.hs: New. From-SVN: r83483
This commit is contained in:
parent
058b15c1dc
commit
f6bf7bb617
@ -1,3 +1,9 @@
|
||||
2004-06-21 Andrew Pinski <apinski@apple.com>
|
||||
|
||||
Radar #: 3701874
|
||||
* c-decl.c (push_file_scope): Return early if we already
|
||||
have a file scope.
|
||||
|
||||
2004-06-21 Geoffrey Keating <geoffk@apple.com>
|
||||
|
||||
* c-opts.c (c_common_handle_option): Handle -fpch-preprocess.
|
||||
|
@ -810,6 +810,9 @@ push_file_scope (void)
|
||||
{
|
||||
tree decl;
|
||||
|
||||
if (file_scope)
|
||||
return;
|
||||
|
||||
push_scope ();
|
||||
file_scope = current_scope;
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-06-21 Andrew Pinski <apinski@apple.com>
|
||||
|
||||
* gcc.dg/pch/struct-1.c: New.
|
||||
* gcc.dg/pch/struct-1.hs: New.
|
||||
|
||||
2004-06-21 Geoffrey Keating <geoffk@apple.com>
|
||||
|
||||
* gcc.dg/pch/save-temps-1.c: New file.
|
||||
|
11
gcc/testsuite/gcc.dg/pch/struct-1.c
Normal file
11
gcc/testsuite/gcc.dg/pch/struct-1.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include "struct-1.h"
|
||||
|
||||
struct ChainSearchRecord {
|
||||
int identity;
|
||||
};
|
||||
typedef struct ChainSearchRecord ChainSearchRecord;
|
||||
void foo (ChainSearchPtr s)
|
||||
{
|
||||
s->identity = 0x6a73616d;
|
||||
}
|
||||
|
3
gcc/testsuite/gcc.dg/pch/struct-1.hs
Normal file
3
gcc/testsuite/gcc.dg/pch/struct-1.hs
Normal file
@ -0,0 +1,3 @@
|
||||
struct ChainSearchRecord;
|
||||
typedef struct ChainSearchRecord *ChainSearchPtr;
|
||||
|
Loading…
Reference in New Issue
Block a user