aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-04-18 19:35:09 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-04-18 15:35:09 -0400
commitaa4661f82360b21f5048823019740e80ed4efbe3 (patch)
treedd8c1f1989f32d60d3a010e72f654da549578dea /gcc
parent0876ac08ad284ff3d2797e5de3d44b07bfac32fd (diff)
downloadgcc-aa4661f82360b21f5048823019740e80ed4efbe3.zip
gcc-aa4661f82360b21f5048823019740e80ed4efbe3.tar.gz
gcc-aa4661f82360b21f5048823019740e80ed4efbe3.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/ggc-common.c4
-rw-r--r--gcc/print-tree.c6
-rw-r--r--gcc/tree.h2
4 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b1f0c33..a483eba 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 88488fe..9fafd22 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 6439423..7ccf67e 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 f561b30..e28f624 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