aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@cygnus.com>1998-10-01 10:50:15 +0000
committerNick Clifton <nickc@gcc.gnu.org>1998-10-01 10:50:15 +0000
commite2af664c2d6add614f1ef044f78b0c6ef89cf0d7 (patch)
treef2a375a13ffbab6fc37885d69817a8914b50746e /gcc/c-common.c
parent3a846e6e06590d0c593708b53a8aee20ac2fea32 (diff)
downloadgcc-e2af664c2d6add614f1ef044f78b0c6ef89cf0d7.zip
gcc-e2af664c2d6add614f1ef044f78b0c6ef89cf0d7.tar.gz
gcc-e2af664c2d6add614f1ef044f78b0c6ef89cf0d7.tar.bz2
Add support for #pragma pack(push,<n>) and #pragma pack(pop).
From-SVN: r22710
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 4d2e7a0..5fcf1bc 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