summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-18 05:45:37 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-18 05:45:37 +0000
commit7769507025585f23d219c94422537235e4148a1c (patch)
treea423e6df5b432920d8f9fbe1c1a2321d11a04ed2 /gcc/cp
parent09a5cc038ef9ea404221937743665555871016d8 (diff)
downloadgcc-7769507025585f23d219c94422537235e4148a1c.tar.gz
* c-common.c (back_end_hook): New variable.
* c-common.h (back_end_hook): Declare it. * c-lang.c (finish_file): Use it. * emit-rtl.c (init_emit_once): Initialize the const_int_htab earlier. * cp-tree.h (back_end_hook): Remove declaration. * decl2.c (back_end_hook): Remove definition. * dump.c (dequeue_and_dump): Dump TREE_USED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36928 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/cp-tree.h6
-rw-r--r--gcc/cp/decl2.c5
-rw-r--r--gcc/cp/dump.c3
4 files changed, 10 insertions, 11 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 4246ac604a1..d4f8e47f4dc 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+2000-10-17 Mark Mitchell <mark@codesourcery.com>
+
+ * cp-tree.h (back_end_hook): Remove declaration.
+ * decl2.c (back_end_hook): Remove definition.
+
+ * dump.c (dequeue_and_dump): Dump TREE_USED.
+
Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu>
* spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 1a6c5184817..689c859599e 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -1170,12 +1170,6 @@ extern int flag_access_control;
extern int flag_check_new;
-/* If this variable is defined to a non-NULL value, it will be called
- after the file has been completely parsed. The argument will be
- the GLOBAL_NAMESPACE. */
-
-extern void (*back_end_hook) PARAMS ((tree));
-
/* C++ language-specific tree codes. */
#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) SYM,
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 4f6b57e15d7..fc319b7d7ae 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -490,11 +490,6 @@ int flag_permissive;
int flag_enforce_eh_specs = 1;
-/* If this variable is defined to a non-NULL value, it will be called
- after the file has been completely parsed. */
-
-void (*back_end_hook) PARAMS ((tree));
-
/* The variant of the C language being processed. */
c_language_kind c_language = clk_cplusplus;
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index 9b711062070..83c7db06058 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -555,6 +555,9 @@ dequeue_and_dump (di)
if (DECL_FIELD_OFFSET (t))
dump_child ("bpos", bit_position (t));
}
+ else if (TREE_CODE (t) == VAR_DECL
+ || TREE_CODE (t) == PARM_DECL)
+ dump_int (di, "used", TREE_USED (t));
break;
case FUNCTION_DECL: