aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorManfred Hollstein <manfred@s-direktnet.de>1998-03-12 00:29:17 +0000
committerManfred Hollstein <manfred@gcc.gnu.org>1998-03-12 00:29:17 +0000
commit56c5d8bf107a7317b7a8542875cfd2b6b84590e1 (patch)
tree4a526b51f2224b130a78ecb785c39f1b70ba289b /gcc
parent4e1e206433953cd5a879b1496145a09867f200b7 (diff)
downloadgcc-56c5d8bf107a7317b7a8542875cfd2b6b84590e1.zip
gcc-56c5d8bf107a7317b7a8542875cfd2b6b84590e1.tar.gz
gcc-56c5d8bf107a7317b7a8542875cfd2b6b84590e1.tar.bz2
d
In gcc/: * bitmap.c (bitmap_element_allocate): Remove unused parameter; change callers accordingly. * cplus-dem.c (arm_special): Remove unused parameter work in prototype and definition; change all callers accordingly. * except.c (init_eh): Avoid assignment of unused return value of build_pointer_type; cast it to void, instead, and remove unused variable type. * gcc.c (lang_specific_driver): Define prototype only #ifdef LANG_SPECIFIC_DRIVER. (temp_names): Define only #ifdef MKTEMP_EACH_FILE. * genoutput.c (output_epilogue): Initialize next_name to 0. * real.c (efrexp): #if 0 prototype and function definition. (eremain): Likewise. (uditoe): Likewise. (ditoe): Likewise. (etoudi): Likewise. (etodi): Likewise. (esqrt): Likewise. * reload.c (push_secondary_reload): Define prototype only #ifdef HAVE_SECONDARY_RELOADS. * varasm.c (assemble_static_space): Define rounded only #ifndef ASM_OUTPUT_ALIGNED_LOCAL. In gcc/cp/: * call.c (default_parm_conversions): Remove prototype definition. (build_method_call): Remove unused variable result. * cvt.c (ocp_convert): Remove unused variable conversion. * decl2.c (ambiguous_decl): Add explicit parameter definition for name. * except.c (do_unwind): #if 0 definition of unused variables fcall and next_pc. * expr.c (extract_scalar_init): #if 0 prototype and function definition. * init.c (expand_aggr_init_1): Remove unused variable init_type. (build_new_1): Remove unused variable t. * pt.c (instantiate_class_template): Remove unused variable newtag; cast called function return value to void. (do_decl_instantiation): Remove unused variables name and fn. * tree.c (get_type_decl): Add default return to shut up compiler from complaining control reaches end of non-void function. * typeck.c (build_x_conditional_expr): Remove unused variable rval. From-SVN: r18498
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog32
-rw-r--r--gcc/bitmap.c11
-rw-r--r--gcc/cp/ChangeLog26
-rw-r--r--gcc/cp/call.c17
-rw-r--r--gcc/cp/cvt.c1
-rw-r--r--gcc/cp/decl2.c1
-rw-r--r--gcc/cp/except.c4
-rw-r--r--gcc/cp/init.c3
-rw-r--r--gcc/cp/pt.c5
-rw-r--r--gcc/cp/typeck.c2
-rw-r--r--gcc/except.c2
-rw-r--r--gcc/reload.c2
12 files changed, 80 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c4f54a2..9e2efee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,35 @@
+Thu Mar 12 09:25:29 1998 Manfred Hollstein <manfred@s-direktnet.de>
+
+ * bitmap.c (bitmap_element_allocate): Remove unused parameter;
+ change callers accordingly.
+
+ * cplus-dem.c (arm_special): Remove unused parameter work in prototype
+ and definition; change all callers accordingly.
+
+ * except.c (init_eh): Avoid assignment of unused return value of
+ build_pointer_type; cast it to void, instead, and remove unused
+ variable type.
+
+ * gcc.c (lang_specific_driver): Define prototype only #ifdef
+ LANG_SPECIFIC_DRIVER.
+ (temp_names): Define only #ifdef MKTEMP_EACH_FILE.
+
+ * genoutput.c (output_epilogue): Initialize next_name to 0.
+
+ * real.c (efrexp): #if 0 prototype and function definition.
+ (eremain): Likewise.
+ (uditoe): Likewise.
+ (ditoe): Likewise.
+ (etoudi): Likewise.
+ (etodi): Likewise.
+ (esqrt): Likewise.
+
+ * reload.c (push_secondary_reload): Define prototype only
+ #ifdef HAVE_SECONDARY_RELOADS.
+
+ * varasm.c (assemble_static_space): Define rounded only
+ #ifndef ASM_OUTPUT_ALIGNED_LOCAL.
+
Thu Mar 12 09:11:35 1998 Manfred Hollstein <manfred@s-direktnet.de>
* i386.md (andsi): Add default case in enumeration switch.
diff --git a/gcc/bitmap.c b/gcc/bitmap.c
index 8fb9f27..6456708 100644
--- a/gcc/bitmap.c
+++ b/gcc/bitmap.c
@@ -52,7 +52,7 @@ bitmap_element bitmap_zero; /* An element of all zero bits. */
bitmap_element *bitmap_free; /* Freelist of bitmap elements. */
static void bitmap_element_free PROTO((bitmap, bitmap_element *));
-static bitmap_element *bitmap_element_allocate PROTO((bitmap));
+static bitmap_element *bitmap_element_allocate PROTO(());
static int bitmap_element_zerop PROTO((bitmap_element *));
static void bitmap_element_link PROTO((bitmap, bitmap_element *));
static bitmap_element *bitmap_find_bit PROTO((bitmap, unsigned int));
@@ -88,8 +88,7 @@ bitmap_element_free (head, elt)
/* Allocate a bitmap element. The bits are cleared, but nothing else is. */
static INLINE bitmap_element *
-bitmap_element_allocate (head)
- bitmap head;
+bitmap_element_allocate ()
{
bitmap_element *element;
#if BITMAP_ELEMENT_WORDS != 2
@@ -257,7 +256,7 @@ bitmap_copy (to, from)
/* Copy elements in forward direction one at a time */
for (from_ptr = from->first; from_ptr; from_ptr = from_ptr->next)
{
- bitmap_element *to_elt = bitmap_element_allocate (to);
+ bitmap_element *to_elt = bitmap_element_allocate ();
to_elt->indx = from_ptr->indx;
@@ -364,7 +363,7 @@ bitmap_set_bit (head, bit)
if (ptr == 0)
{
- ptr = bitmap_element_allocate (head);
+ ptr = bitmap_element_allocate ();
ptr->indx = bit / BITMAP_ELEMENT_ALL_BITS;
ptr->bits[word_num] = bit_val;
bitmap_element_link (head, ptr);
@@ -463,7 +462,7 @@ bitmap_operation (to, from1, from2, operation)
}
if (to_ptr == 0)
- to_ptr = bitmap_element_allocate (to);
+ to_ptr = bitmap_element_allocate ();
/* Do the operation, and if any bits are set, link it into the
linked list. */
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 42bc37d..dba1981 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,29 @@
+Thu Mar 12 09:26:04 1998 Manfred Hollstein <manfred@s-direktnet.de>
+
+ * call.c (default_parm_conversions): Remove prototype definition.
+ (build_method_call): Remove unused variable result.
+
+ * cvt.c (ocp_convert): Remove unused variable conversion.
+
+ * decl2.c (ambiguous_decl): Add explicit parameter definition for name.
+
+ * except.c (do_unwind): #if 0 definition of unused variables fcall
+ and next_pc.
+
+ * expr.c (extract_scalar_init): #if 0 prototype and function definition.
+
+ * init.c (expand_aggr_init_1): Remove unused variable init_type.
+ (build_new_1): Remove unused variable t.
+
+ * pt.c (instantiate_class_template): Remove unused variable newtag;
+ cast called function return value to void.
+ (do_decl_instantiation): Remove unused variables name and fn.
+
+ * tree.c (get_type_decl): Add default return to shut up compiler from
+ complaining control reaches end of non-void function.
+
+ * typeck.c (build_x_conditional_expr): Remove unused variable rval.
+
Thu Mar 12 09:12:15 1998 Manfred Hollstein <manfred@s-direktnet.de>
* call.c (default_parm_conversions): Remove prototype definition.
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index e38b7d3..8cef2f9 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -87,7 +87,6 @@ static tree reference_binding PROTO((tree, tree, tree, int));
static tree strip_top_quals PROTO((tree));
static tree non_reference PROTO((tree));
static tree build_conv PROTO((enum tree_code, tree, tree));
-static tree default_parm_conversions PROTO((tree, tree *));
static int is_subseq PROTO((tree, tree));
tree
@@ -557,7 +556,7 @@ build_method_call (instance, name, parms, basetype_path, flags)
tree instance, name, parms, basetype_path;
int flags;
{
- tree result, basetype, instance_ptr;
+ tree basetype, instance_ptr;
#ifdef GATHER_STATISTICS
n_build_method_call++;
@@ -585,15 +584,15 @@ build_method_call (instance, name, parms, basetype_path, flags)
if (name == ansi_opname[(int) DELETE_EXPR] && list_length (parms)==2)
{
tree save_last = TREE_CHAIN (parms);
- tree result;
+
/* get rid of unneeded argument */
TREE_CHAIN (parms) = NULL_TREE;
- result = build_method_call (instance, name, parms, basetype_path,
- (LOOKUP_SPECULATIVELY|flags)
- &~LOOKUP_COMPLAIN);
- /* If it finds a match, return it. */
- if (result)
- return build_method_call (instance, name, parms, basetype_path, flags);
+ if (build_method_call (instance, name, parms, basetype_path,
+ (LOOKUP_SPECULATIVELY|flags) & ~LOOKUP_COMPLAIN))
+ {
+ /* If it finds a match, return it. */
+ return build_method_call (instance, name, parms, basetype_path, flags);
+ }
/* If it doesn't work, two argument delete must work */
TREE_CHAIN (parms) = save_last;
}
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c
index 6cd6229..de8dec7 100644
--- a/gcc/cp/cvt.c
+++ b/gcc/cp/cvt.c
@@ -761,7 +761,6 @@ ocp_convert (type, expr, convtype, flags)
{
tree dtype = TREE_TYPE (e);
tree ctor = NULL_TREE;
- tree conversion = NULL_TREE;
dtype = TYPE_MAIN_VARIANT (dtype);
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index adf0fc6..1fbe9a5 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -3710,6 +3710,7 @@ add_using_namespace (user, used, indirect)
XXX I don't want to repeat the entire duplicate_decls here */
static tree
ambiguous_decl (name, val1, val2)
+ int name;
tree val1, val2;
{
my_friendly_assert (val1 != val2, 376);
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index 0f2a8df..d45bd53 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -714,9 +714,11 @@ do_unwind (inner_throw_label)
#endif
#endif
#if ! defined (TARGET_88000) && ! defined (ARM_FRAME_RTX) && ! defined (SPARC_STACK_ALIGN)
+#if 0
tree fcall;
- tree params;
rtx next_pc;
+#endif
+ tree params;
#if 0
/* I would like to do this here, but the move below doesn't seem to work. */
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 1785142..4085a33 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -1335,7 +1335,6 @@ expand_aggr_init_1 (binfo, true_exp, exp, init, alias_this, flags)
int flags;
{
tree type = TREE_TYPE (exp);
- tree init_type = NULL_TREE;
my_friendly_assert (init != error_mark_node && type != error_mark_node, 211);
@@ -2212,7 +2211,7 @@ tree
build_new_1 (exp)
tree exp;
{
- tree placement, init, t;
+ tree placement, init;
tree type, true_type, size, rval;
tree nelts = NULL_TREE;
tree alloc_expr, alloc_node = NULL_TREE;
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index f467897..e915ec2 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -3129,8 +3129,7 @@ instantiate_class_template (type)
/* These will add themselves to CLASSTYPE_TAGS for the new type. */
if (TREE_CODE (tag) == ENUMERAL_TYPE)
{
- tree newtag = tsubst_enum (tag, args, field_chain);
-
+ (void) tsubst_enum (tag, args, field_chain);
while (*field_chain)
{
DECL_FIELD_CONTEXT (*field_chain) = type;
@@ -5857,8 +5856,6 @@ do_decl_instantiation (declspecs, declarator, storage)
tree declspecs, declarator, storage;
{
tree decl = grokdeclarator (declarator, declspecs, NORMAL, 0, NULL_TREE);
- tree name;
- tree fn;
tree result = NULL_TREE;
int extern_p = 0;
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index f7aa982..f5e7971 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -4899,8 +4899,6 @@ tree
build_x_conditional_expr (ifexp, op1, op2)
tree ifexp, op1, op2;
{
- tree rval = NULL_TREE;
-
if (processing_template_decl)
return build_min_nt (COND_EXPR, ifexp, op1, op2);
diff --git a/gcc/except.c b/gcc/except.c
index dceec89..f8a1787 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1790,7 +1790,7 @@ init_eh ()
{
/* Generate rtl to reference the variable in which the PC of the
current context is saved. */
- tree type = build_pointer_type (make_node (VOID_TYPE));
+ (void) build_pointer_type (make_node (VOID_TYPE));
}
/* Initialize the per-function EH information. */
diff --git a/gcc/reload.c b/gcc/reload.c
index 4187b12..b21eab7 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -306,9 +306,11 @@ static int output_reloadnum;
? RELOAD_FOR_OUTADDR_ADDRESS \
: (type)))
+#ifdef HAVE_SECONDARY_RELOADS
static int push_secondary_reload PROTO((int, rtx, int, int, enum reg_class,
enum machine_mode, enum reload_type,
enum insn_code *));
+#endif
static enum reg_class find_valid_class PROTO((enum machine_mode, int));
static int push_reload PROTO((rtx, rtx, rtx *, rtx *, enum reg_class,
enum machine_mode, enum machine_mode,