From 83598ce4558cfd656e4ffdc44bd2e8e51e6c76a3 Mon Sep 17 00:00:00 2001
From: kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 18 Apr 2000 19:35:09 +0000
Subject: [PATCH] 	* ggc-common.c: Add missing blanks. 	* print-tree.c
 (print_node): Print DECL_OFFSET_ALIGN. 	* tree.h (DECL_OFFSET_ALIGN):
 Fix typo in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33232 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog    | 4 ++++
 gcc/ggc-common.c | 4 ++--
 gcc/print-tree.c | 6 +++++-
 gcc/tree.h       | 2 +-
 4 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b1f0c335cb73..a483eba90d22 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 88488fec445d..9fafd22204e9 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 6439423c89cd..7ccf67e7d899 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 f561b309079b..e28f624f59ea 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
-- 
GitLab