Commit aa4661f8 by Richard Kenner Committed by Richard Kenner

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
parent 0876ac08
Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 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. * stmt.c (mark_case_node): New function.
(mark_case_nesting): Call it. (mark_case_nesting): Call it.
......
...@@ -91,7 +91,7 @@ ggc_add_rtx_root (base, nelt) ...@@ -91,7 +91,7 @@ ggc_add_rtx_root (base, nelt)
rtx *base; rtx *base;
int nelt; 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. */ /* Register an array of trees as a GC root. */
...@@ -101,7 +101,7 @@ ggc_add_tree_root (base, nelt) ...@@ -101,7 +101,7 @@ ggc_add_tree_root (base, nelt)
tree *base; tree *base;
int nelt; 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. */ /* Register a varray of rtxs as a GC root. */
......
...@@ -409,7 +409,11 @@ print_node (file, prefix, node, indent) ...@@ -409,7 +409,11 @@ print_node (file, prefix, node, indent)
indent_to (file, indent + 3); indent_to (file, indent + 3);
if (TREE_CODE (node) != FUNCTION_DECL) 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)) else if (DECL_INLINE (node))
{ {
fprintf (file, " frame_size "); fprintf (file, " frame_size ");
......
...@@ -1109,7 +1109,7 @@ struct tree_type ...@@ -1109,7 +1109,7 @@ struct tree_type
#define DECL_SIZE_UNIT(NODE) (DECL_CHECK (NODE)->decl.size_unit) #define DECL_SIZE_UNIT(NODE) (DECL_CHECK (NODE)->decl.size_unit)
/* Holds the alignment required for the datum. */ /* Holds the alignment required for the datum. */
#define DECL_ALIGN(NODE) (DECL_CHECK (NODE)->decl.u1.a.align) #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) #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 /* Holds the machine mode corresponding to the declaration of a variable or
field. Always equal to TYPE_MODE (TREE_TYPE (decl)) except for a field. Always equal to TYPE_MODE (TREE_TYPE (decl)) except for a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment