diff options
author | echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-28 20:52:01 +0000 |
---|---|---|
committer | echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-28 20:52:01 +0000 |
commit | f720b7c6c1da3d57f73075d51a6ab1e36cb14f4b (patch) | |
tree | 0e065145d4fc18d16bffa4723df2c37825f1f762 /gcc/config/darwin-c.c | |
parent | 76e6653a4fb7fcbd3aa8057ae5ecd4c3c4a05c3f (diff) | |
download | gcc-f720b7c6c1da3d57f73075d51a6ab1e36cb14f4b.tar.gz |
2006-04-28 Eric Christopher <echristo@apple.com>
* config/darwin-c.c (darwin_ms_struct): Move this
(darwin_set_default_type_attributes): and this...
* config/darwin.c: ... here.
* config/darwin.h (darwin_ms_struct): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113358 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin-c.c')
-rw-r--r-- | gcc/config/darwin-c.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/config/darwin-c.c b/gcc/config/darwin-c.c index 6f263f4eeba..531715344b2 100644 --- a/gcc/config/darwin-c.c +++ b/gcc/config/darwin-c.c @@ -41,9 +41,6 @@ Boston, MA 02110-1301, USA. */ static bool using_frameworks = false; -/* True if we're setting __attribute__ ((ms_struct)). */ -static bool darwin_ms_struct = false; - /* Maintain a small stack of alignments. This is similar to pragma pack's stack, but simpler. */ @@ -184,17 +181,6 @@ darwin_pragma_ms_struct (cpp_reader *pfile ATTRIBUTE_UNUSED) warning (OPT_Wpragmas, "junk at end of '#pragma ms_struct'"); } -/* Set the darwin specific attributes on TYPE. */ -void -darwin_set_default_type_attributes (tree type) -{ - if (darwin_ms_struct - && TREE_CODE (type) == RECORD_TYPE) - TYPE_ATTRIBUTES (type) = tree_cons (get_identifier ("ms_struct"), - NULL_TREE, - TYPE_ATTRIBUTES (type)); -} - static struct { size_t len; const char *name; |