From a3fa7febd330f496ccf318605c3b293e092b4028 Mon Sep 17 00:00:00 2001 From: nickc Date: Thu, 1 Oct 1998 10:50:15 +0000 Subject: Add support for #pragma pack(push,) and #pragma pack(pop). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22710 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-common.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/c-common.c') diff --git a/gcc/c-common.c b/gcc/c-common.c index 4d2e7a090a8..5fcf1bc9a50 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */ #include "obstack.h" #include "toplev.h" #include "output.h" +#include "c-pragma.h" #if USE_CPPLIB #include "cpplib.h" @@ -420,6 +421,14 @@ decl_attributes (node, attributes, prefix_attributes) else if (TREE_CODE_CLASS (TREE_CODE (node)) == 't') type = node, is_type = 1; +#ifdef PRAGMA_INSERT_ATTRIBUTES + /* If the code in c-pragma.c wants to insert some attributes then + allow it to do so. Do this before allowing machine back ends to + insert attributes, so that they have the opportunity to override + anything done here. */ + PRAGMA_INSERT_ATTRIBUTES (node, & attributes, & prefix_attributes); +#endif + #ifdef INSERT_ATTRIBUTES INSERT_ATTRIBUTES (node, & attributes, & prefix_attributes); #endif -- cgit v1.2.1