aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog17
-rw-r--r--gcc/fix-header.c10
-rw-r--r--gcc/lcm.c11
-rw-r--r--gcc/scan.h4
-rw-r--r--gcc/simplify-rtx.c1
5 files changed, 29 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 68ed6eb..ef65f93 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,20 @@
+Wed Nov 3 15:39:19 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * fix-header.c (recognized_extern, recognized_function): Constify
+ a char*.
+
+ * lcm.c (compute_laterin): Remove unused variable `temp_bitmap'.
+ (pre_edge_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
+ (compute_available): Remove unused variable `last'.
+ (compute_nearerout): Remove unused variable `temp_bitmap'.
+ (pre_edge_rev_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
+ Remove unused variable `x'.
+
+ * scan.h (recognized_function, recognized_extern): Constify a
+ char*.
+
+ * simplify-rtx.c (simplify_rtx): Remove unused variable `new'.
+
Wed Nov 3 10:40:53 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* varasm.c (decode_rtx_const): Use XSTR to access the string
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index c789e99..a87137d 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -498,8 +498,8 @@ recognized_macro (fname)
void
recognized_extern (name, name_length, type, type_length)
- char *name;
- char *type ATTRIBUTE_UNUSED;
+ const char *name;
+ const char *type ATTRIBUTE_UNUSED;
int name_length, type_length ATTRIBUTE_UNUSED;
{
switch (special_file_handling)
@@ -526,13 +526,13 @@ void
recognized_function (fname, fname_length,
kind, rtype, rtype_length,
have_arg_list, file_seen, line_seen)
- char *fname;
+ const char *fname;
int fname_length;
int kind; /* One of 'f' 'F' or 'I' */
- char *rtype;
+ const char *rtype;
int rtype_length;
int have_arg_list;
- char *file_seen;
+ const char *file_seen;
int line_seen;
{
struct partial_proto *partial;
diff --git a/gcc/lcm.c b/gcc/lcm.c
index c0e2721..b62cf45 100644
--- a/gcc/lcm.c
+++ b/gcc/lcm.c
@@ -214,7 +214,7 @@ compute_laterin (edge_list, n_exprs,
int n_exprs;
sbitmap *earliest, *antloc, *later, *laterin;
{
- sbitmap difference, temp_bitmap;
+ sbitmap difference;
int x, num_edges;
basic_block pred, succ;
int done = 0;
@@ -307,7 +307,7 @@ compute_insert_delete (edge_list, antloc, later, laterin,
struct edge_list *
pre_edge_lcm (file, n_exprs, transp, avloc, antloc, kill, insert, delete)
- FILE *file;
+ FILE *file ATTRIBUTE_UNUSED;
int n_exprs;
sbitmap *transp;
sbitmap *avloc;
@@ -411,7 +411,6 @@ compute_available (avloc, kill, avout, avin)
sbitmap *avloc, *kill, *avout, *avin;
{
int bb, changed, passes;
- int last = n_basic_blocks - 1;
sbitmap_zero (avin[0]);
sbitmap_copy (avout[0] /*dst*/, avloc[0] /*src*/);
@@ -486,7 +485,7 @@ compute_nearerout (edge_list, n_exprs,
int n_exprs;
sbitmap *farthest, *st_avloc, *nearer, *nearerout;
{
- sbitmap difference, temp_bitmap;
+ sbitmap difference;
int x, num_edges;
basic_block pred, succ;
int done = 0;
@@ -582,7 +581,7 @@ compute_rev_insert_delete (edge_list, st_avloc, nearer, nearerout,
struct edge_list *
pre_edge_rev_lcm (file, n_exprs, transp, st_avloc, st_antloc, kill,
insert, delete)
- FILE *file;
+ FILE *file ATTRIBUTE_UNUSED;
int n_exprs;
sbitmap *transp;
sbitmap *st_avloc;
@@ -595,7 +594,7 @@ pre_edge_rev_lcm (file, n_exprs, transp, st_avloc, st_antloc, kill,
sbitmap *st_avout, *st_avin, *farthest;
sbitmap *nearer, *nearerout;
struct edge_list *edge_list;
- int x,num_edges;
+ int num_edges;
edge_list = create_edge_list ();
num_edges = NUM_EDGES (edge_list);
diff --git a/gcc/scan.h b/gcc/scan.h
index f59cd27..b2c2893 100644
--- a/gcc/scan.h
+++ b/gcc/scan.h
@@ -58,8 +58,8 @@ extern int scan_ident _PARAMS((FILE *, sstring *, int));
extern int scan_string _PARAMS((FILE *, sstring *, int));
extern int read_upto _PARAMS((FILE *, sstring *, int));
extern unsigned long hash _PARAMS((const char *));
-extern void recognized_function _PARAMS((char *, int, int, char *, int, int, char *, int));
-extern void recognized_extern _PARAMS((char *, int, char *, int));
+extern void recognized_function _PARAMS((const char *, int, int, const char *, int, int, const char *, int));
+extern void recognized_extern _PARAMS((const char *, int, const char *, int));
/* get_token is a simple C lexer. */
#define IDENTIFIER_TOKEN 300
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 6e78627..ff31d8c 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -1923,7 +1923,6 @@ simplify_rtx (x)
{
enum rtx_code code;
enum machine_mode mode;
- rtx new;
mode = GET_MODE (x);
code = GET_CODE (x);