summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-01 10:50:15 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-01 10:50:15 +0000
commita3fa7febd330f496ccf318605c3b293e092b4028 (patch)
treef2a375a13ffbab6fc37885d69817a8914b50746e /gcc/c-common.c
parent2ebda888fcd6502d6f6074956be683798967e4c6 (diff)
downloadgcc-a3fa7febd330f496ccf318605c3b293e092b4028.tar.gz
Add support for #pragma pack(push,<n>) and #pragma pack(pop).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22710 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c9
1 files changed, 9 insertions, 0 deletions
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