aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.c
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/bitmap.c
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/bitmap.c')
-rw-r--r--gcc/bitmap.c11
1 files changed, 5 insertions, 6 deletions
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. */