From f972b2cb9d8f9b1689df010f08cec6f2cb30d93c Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 3 Jul 2007 19:13:00 +0000 Subject: [PATCH] * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL. From-SVN: r126270 --- gcc/ChangeLog | 4 ++++ gcc/tree.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 816993d2252..f9413cd1bd0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-07-03 Geoffrey Keating + + * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL. + 2007-07-03 Tom Tromey * c-parser.c (objc_pq_context): Removed. diff --git a/gcc/tree.h b/gcc/tree.h index a28f20b3af9..98457792771 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2586,7 +2586,7 @@ struct tree_memory_partition_tag GTY(()) /* Likewise for the size in bytes. */ #define DECL_SIZE_UNIT(NODE) (DECL_COMMON_CHECK (NODE)->decl_common.size_unit) /* Holds the alignment required for the datum, in bits. */ -#define DECL_ALIGN(NODE) (DECL_COMMON_CHECK (NODE)->decl_common.u1.a.align) +#define DECL_ALIGN(NODE) (TREE_NOT_CHECK (DECL_COMMON_CHECK (NODE), FUNCTION_DECL)->decl_common.u1.a.align) /* The alignment of NODE, in bytes. */ #define DECL_ALIGN_UNIT(NODE) (DECL_ALIGN (NODE) / BITS_PER_UNIT) /* For FIELD_DECLs, off_align holds the number of low-order bits of