summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-05 02:42:10 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-05 02:42:10 +0000
commitc5d7050a6e3f2613c9817920ef86d016f6fc4117 (patch)
tree53798d61e5d3fb49d9f72272a44ba10668704a38 /gcc
parent5d3d6ea4b6ee167695edf6a24372038effc6d3a5 (diff)
downloadppe42-gcc-c5d7050a6e3f2613c9817920ef86d016f6fc4117.tar.gz
ppe42-gcc-c5d7050a6e3f2613c9817920ef86d016f6fc4117.zip
* tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
* tree.h (EXPR_WFL_FILENAME): Define in terms of EXPR_WFL_FILENAME_NODE. (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than the TREE_CHAIN. * print-tree.c (print_note): Print TREE_PRIVATE and TREE_PROTECTED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30783 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog23
-rw-r--r--gcc/print-tree.c4
-rw-r--r--gcc/tree.def2
-rw-r--r--gcc/tree.h5
4 files changed, 31 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8b26d1bdb08..68125046a58 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,28 @@
1999-12-04 Mark Mitchell <mark@codesourcery.com>
+ * tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
+ * tree.h (EXPR_WFL_FILENAME): Define in terms of
+ EXPR_WFL_FILENAME_NODE.
+ (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than
+ the TREE_CHAIN.
+ * print-tree.c (print_note): Print TREE_PRIVATE and
+ TREE_PROTECTED.
+
+ * dwarf2out.c (add_abstract_origin_attribute): Don't abort when
+ the original die cannot be found.
+
+ * varray.h (varray_head_tag): Add elements_used.
+ (VARRAY_PUSH): New macro.
+ (VARRAY_POP): Likewise.
+ (VARRAY_TOP): Likewise.
+ Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
+ types.
+ * varray.c (varray_init): Initialize elements_used.
+ * Makefile.in (BASIC_BLOCK_H): Add varray.h.
+ (INTEGRATE_H): New variable.
+ (integrate.o): Depend on INTEGRATE_H.
+ (unroll.o): Likewise.
+
* function.h (insert_block_after_note): Declare.
* function.c (insert_block_after_note): Split out from ...
(retrofit_block): ... here.
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index 4b82b89be3f..caf2aeeba15 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -304,6 +304,10 @@ print_node (file, prefix, node, indent)
fputs (" permanent", file);
if (TREE_PUBLIC (node))
fputs (" public", file);
+ if (TREE_PRIVATE (node))
+ fputs (" private", file);
+ if (TREE_PROTECTED (node))
+ fputs (" protected", file);
if (TREE_STATIC (node))
fputs (" static", file);
if (TREE_LANG_FLAG_0 (node))
diff --git a/gcc/tree.def b/gcc/tree.def
index 9ccc3c579df..b34895b59b3 100644
--- a/gcc/tree.def
+++ b/gcc/tree.def
@@ -794,7 +794,7 @@ DEFTREECODE (EXIT_BLOCK_EXPR, "exit_block_expr", 'e', 2)
information: a file name (EXPR_WFL_FILENAME); a line number
(EXPR_WFL_LINENO); and column number (EXPR_WFL_COLNO). It is
expanded as the contained node (EXPR_WFL_NODE); a line note should
- be emitted first if EXPR_WFL_EMIT_LINE_NOTE. */
+ be emitted first if EXPR_WFL_EMIT_LINE_NOTE. */
DEFTREECODE (EXPR_WITH_FILE_LOCATION, "expr_with_file_location", 'e', 2)
/* Switch expression.
diff --git a/gcc/tree.h b/gcc/tree.h
index 7d181607a51..ee726684203 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -750,8 +750,9 @@ struct tree_vec
/* In a EXPR_WITH_FILE_LOCATION node. */
#define EXPR_WFL_NODE(NODE) TREE_OPERAND((NODE), 0)
-#define EXPR_WFL_FILENAME(NODE) (IDENTIFIER_POINTER ((NODE)->common.chain))
-#define EXPR_WFL_FILENAME_NODE(NODE) ((NODE)->common.chain)
+#define EXPR_WFL_FILENAME(NODE) \
+ (IDENTIFIER_POINTER (EXPR_WFL_FILENAME_NODE ((NODE))))
+#define EXPR_WFL_FILENAME_NODE(NODE) TREE_OPERAND((NODE), 1)
#define EXPR_WFL_LINENO(NODE) (EXPR_CHECK (NODE)->exp.complexity >> 12)
#define EXPR_WFL_COLNO(NODE) (EXPR_CHECK (NODE)->exp.complexity & 0xfff)
#define EXPR_WFL_LINECOL(NODE) (EXPR_CHECK (NODE)->exp.complexity)
OpenPOWER on IntegriCloud