From: Richard Kenner Date: Tue, 18 Apr 2000 19:35:09 +0000 (+0000) Subject: ggc-common.c: Add missing blanks. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa4661f82360b21f5048823019740e80ed4efbe3;p=gcc.git ggc-common.c: Add missing blanks. * ggc-common.c: Add missing blanks. * print-tree.c (print_node): Print DECL_OFFSET_ALIGN. * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment. From-SVN: r33232 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1f0c335cb7..a483eba90d2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ Tue Apr 18 14:16:47 2000 Richard Kenner + * 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 88488fec445..9fafd22204e 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 6439423c89c..7ccf67e7d89 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 f561b309079..e28f624f59e 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