diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1f0c335cb7314fe10526b580b035abec46280a5..a483eba90d22580a103682c8e38a11a0807d5432 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> + * ggc-common.c: Add missing blanks. + * print-tree.c (print_node): Print DECL_OFFSET_ALIGN. + * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment. + * stmt.c (mark_case_node): New function. (mark_case_nesting): Call it. diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 88488fec445d57dba9cffb477966ea426ab6b173..9fafd22204e99ef74f942e02deb5f2a6dc67d2ce 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -91,7 +91,7 @@ ggc_add_rtx_root (base, nelt) rtx *base; int nelt; { - ggc_add_root (base, nelt, sizeof(rtx), ggc_mark_rtx_ptr); + ggc_add_root (base, nelt, sizeof (rtx), ggc_mark_rtx_ptr); } /* Register an array of trees as a GC root. */ @@ -101,7 +101,7 @@ ggc_add_tree_root (base, nelt) tree *base; int nelt; { - ggc_add_root (base, nelt, sizeof(tree), ggc_mark_tree_ptr); + ggc_add_root (base, nelt, sizeof (tree), ggc_mark_tree_ptr); } /* Register a varray of rtxs as a GC root. */ diff --git a/gcc/print-tree.c b/gcc/print-tree.c index 6439423c89cdca73cc5b138da10470aa6e753175..7ccf67e7d89921fafbe102a366a91c998d0dbfcc 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -409,7 +409,11 @@ print_node (file, prefix, node, indent) indent_to (file, indent + 3); if (TREE_CODE (node) != FUNCTION_DECL) - fprintf (file, " align %d", DECL_ALIGN (node)); + { + fprintf (file, " align %d", DECL_ALIGN (node)); + if (TREE_CODE (node) == FIELD_DECL) + fprintf (file, " offset_align %d", DECL_OFFSET_ALIGN (node)); + } else if (DECL_INLINE (node)) { fprintf (file, " frame_size "); diff --git a/gcc/tree.h b/gcc/tree.h index f561b309079b013e024d69672b806c05e1ab2413..e28f624f59ea0628e40d5f7ce6be8c9001a65778 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -1109,7 +1109,7 @@ struct tree_type #define DECL_SIZE_UNIT(NODE) (DECL_CHECK (NODE)->decl.size_unit) /* Holds the alignment required for the datum. */ #define DECL_ALIGN(NODE) (DECL_CHECK (NODE)->decl.u1.a.align) -/* For FIELD_DECLs, holds the alignment that DECL_FEILD_OFFSET has. */ +/* For FIELD_DECLs, holds the alignment that DECL_FIELD_OFFSET has. */ #define DECL_OFFSET_ALIGN(NODE) (FIELD_DECL_CHECK (NODE)->decl.u1.a.off_align) /* Holds the machine mode corresponding to the declaration of a variable or field. Always equal to TYPE_MODE (TREE_TYPE (decl)) except for a