aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/final.c15
2 files changed, 5 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 98f5a40..f4ca6e7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
Fri Dec 7 07:06:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+ * final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
+ Deleted; were used only by BB profiler code.
+ (sbb_head, sbb_tail, sbb_label_num): Likewise.
+ (end_final): Delete now-unused vars I, PTR, and SPTR.
+
* expr.c (store_field): Remove warning.
(expand_expr, case COMPONENT_REF, case VIEW_CONVERT_EXPR): Likewise.
(highest_pow2_factor, case MIN_EXPR, case MAX_EXPR): Add cases.
diff --git a/gcc/final.c b/gcc/final.c
index 9725c0b..16c95de 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -212,11 +212,6 @@ struct bb_list
int func_label_num; /* LPBC<n> label # for stored function name */
};
-static struct bb_list *bb_head = 0; /* Head of basic block list */
-static struct bb_list **bb_tail = &bb_head; /* Ptr to store next bb ptr */
-static int bb_file_label_num = -1; /* Current label # for file */
-static int bb_func_label_num = -1; /* Current label # for func */
-
/* Linked list to hold the strings for each file and function name output. */
struct bb_str
@@ -227,10 +222,6 @@ struct bb_str
int length; /* string length */
};
-static struct bb_str *sbb_head = 0; /* Head of string list. */
-static struct bb_str **sbb_tail = &sbb_head; /* Ptr to store next bb str */
-static int sbb_label_num = 0; /* Last label used */
-
#ifdef HAVE_ATTR_length
static int asm_insn_count PARAMS ((rtx));
#endif
@@ -276,15 +267,11 @@ void
end_final (filename)
const char *filename;
{
- int i;
-
if (profile_arc_flag)
{
char name[20];
int align = exact_log2 (BIGGEST_ALIGNMENT / BITS_PER_UNIT);
int size, rounded;
- struct bb_list *ptr;
- struct bb_str *sptr;
int long_bytes = LONG_TYPE_SIZE / BITS_PER_UNIT;
int gcov_type_bytes = GCOV_TYPE_SIZE / BITS_PER_UNIT;
int pointer_bytes = POINTER_SIZE / BITS_PER_UNIT;
@@ -1710,8 +1697,6 @@ final_end_function ()
&& dwarf2out_do_frame ())
dwarf2out_end_epilogue ();
#endif
-
- bb_func_label_num = -1; /* not in function, nuke label # */
}
/* Output assembler code for some insns: all or part of a function.