PA warning fixes:

* pa.c: Include system.h and toplev.h.  Remove redundant code.
        (call_operand_address): Mark parameter `mode' with ATTRIBUTE_UNUSED.
        (symbolic_operand): Likewise.
        (symbolic_memory_operand): Likewise.
        (pic_label_operand): Likewise.
        (fp_reg_operand): Likewise.
        (pre_cint_operand): Likewise.
        (post_cint_operand): Likewise.
        (ireg_or_int5_operand): Likewise.
        (int5_operand): Likewise.
        (uint5_operand): Likewise.
        (int11_operand): Likewise.
        (uint32_operand): Likewise.
        (ior_operand): Likewise.
        (lhs_lshift_cint_operand): Likewise.
        (pc_or_label_operand): Likewise.
        (legitimize_pic_address): Likewise.
        (hppa_legitimize_address): Likewise for parameter `old'.
        (output_block_move): Likewise for parameter `size_is_constant'.
        (output_function_prologue): Likewise for parameter `size'.
        (output_function_epilogue): Likewise.
        (return_addr_rtx): Likewise for parameter `count'.
        (output_mul_insn): Likewise for parameter `unsignedp'.
        (hppa_builtin_saveregs): Likewise for parameter `arglist'.
        (output_bb): Likewise for parameter `operands'.
        (output_bvb): Likewise.
        (function_label_operand): Likewise for parameter `mode'.
        (plus_xor_ior_operator): Likewise.
        (shadd_operand): Likewise.
        (non_hard_reg_operand): Likewise.
        (eq_neq_comparison_operator): Likewise.
        (movb_comparison_operator): Likewise.
        (pa_combine_instructions): Likewise for parameter `insns'.
        * pa.h: Add prototypes for functions `output_deferred_plabels',
        `override_options', `output_ascii', `output_function_prologue',
        `output_function_epilogue', `print_operand',
        `symbolic_expression_p', `reloc_needed', `compute_frame_size',
        `hppa_address_cost', `and_mask_p', `symbolic_memory_operand',
        `pa_adjust_cost', `pa_adjust_insn_length' and
        `secondary_reload_class'.

From-SVN: r20554
This commit is contained in:
Kaveh R. Ghazi 1998-06-18 06:27:09 +00:00 committed by Kaveh Ghazi
parent df16ddd55e
commit 0b17dd9857
3 changed files with 94 additions and 37 deletions

View File

@ -1,3 +1,47 @@
Thu Jun 18 09:20:47 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* pa.c: Include system.h and toplev.h. Remove redundant code.
(call_operand_address): Mark parameter `mode' with ATTRIBUTE_UNUSED.
(symbolic_operand): Likewise.
(symbolic_memory_operand): Likewise.
(pic_label_operand): Likewise.
(fp_reg_operand): Likewise.
(pre_cint_operand): Likewise.
(post_cint_operand): Likewise.
(ireg_or_int5_operand): Likewise.
(int5_operand): Likewise.
(uint5_operand): Likewise.
(int11_operand): Likewise.
(uint32_operand): Likewise.
(ior_operand): Likewise.
(lhs_lshift_cint_operand): Likewise.
(pc_or_label_operand): Likewise.
(legitimize_pic_address): Likewise.
(hppa_legitimize_address): Likewise for parameter `old'.
(output_block_move): Likewise for parameter `size_is_constant'.
(output_function_prologue): Likewise for parameter `size'.
(output_function_epilogue): Likewise.
(return_addr_rtx): Likewise for parameter `count'.
(output_mul_insn): Likewise for parameter `unsignedp'.
(hppa_builtin_saveregs): Likewise for parameter `arglist'.
(output_bb): Likewise for parameter `operands'.
(output_bvb): Likewise.
(function_label_operand): Likewise for parameter `mode'.
(plus_xor_ior_operator): Likewise.
(shadd_operand): Likewise.
(non_hard_reg_operand): Likewise.
(eq_neq_comparison_operator): Likewise.
(movb_comparison_operator): Likewise.
(pa_combine_instructions): Likewise for parameter `insns'.
* pa.h: Add prototypes for functions `output_deferred_plabels',
`override_options', `output_ascii', `output_function_prologue',
`output_function_epilogue', `print_operand',
`symbolic_expression_p', `reloc_needed', `compute_frame_size',
`hppa_address_cost', `and_mask_p', `symbolic_memory_operand',
`pa_adjust_cost', `pa_adjust_insn_length' and
`secondary_reload_class'.
Wed Jun 17 22:28:48 1998 Jason Merrill <jason@yorick.cygnus.com>
* configure.in: Don't turn on collect2 unconditionally.

View File

@ -20,10 +20,8 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include "system.h"
#include "rtl.h"
#include "regs.h"
#include "hard-reg-set.h"
@ -39,6 +37,7 @@ Boston, MA 02111-1307, USA. */
#include "c-tree.h"
#include "expr.h"
#include "obstack.h"
#include "toplev.h"
static void restore_unscaled_index_insn_codes PROTO((rtx));
static void record_unscaled_index_insn_codes PROTO((rtx));
@ -174,7 +173,7 @@ reg_or_0_operand (op, mode)
int
call_operand_address (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (CONSTANT_P (op) && ! TARGET_PORTABLE_RUNTIME);
}
@ -197,7 +196,7 @@ symbolic_expression_p (x)
int
symbolic_operand (op, mode)
register rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
switch (GET_CODE (op))
{
@ -220,7 +219,7 @@ symbolic_operand (op, mode)
int
symbolic_memory_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
if (GET_CODE (op) == SUBREG)
op = SUBREG_REG (op);
@ -340,7 +339,7 @@ reg_or_cint_move_operand (op, mode)
int
pic_label_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
if (!flag_pic)
return 0;
@ -361,7 +360,7 @@ pic_label_operand (op, mode)
int
fp_reg_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return reg_renumber && FP_REG_P (op);
}
@ -397,7 +396,7 @@ arith11_operand (op, mode)
int
pre_cint_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == CONST_INT
&& INTVAL (op) >= -0x2000 && INTVAL (op) < 0x10);
@ -408,7 +407,7 @@ pre_cint_operand (op, mode)
int
post_cint_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == CONST_INT
&& INTVAL (op) < 0x2000 && INTVAL (op) >= -0x10);
@ -434,7 +433,7 @@ arith_double_operand (op, mode)
int
ireg_or_int5_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return ((GET_CODE (op) == CONST_INT && INT_5_BITS (op))
|| (GET_CODE (op) == REG && REGNO (op) > 0 && REGNO (op) < 32));
@ -446,7 +445,7 @@ ireg_or_int5_operand (op, mode)
int
int5_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == CONST_INT && INT_5_BITS (op));
}
@ -454,7 +453,7 @@ int5_operand (op, mode)
int
uint5_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == CONST_INT && INT_U5_BITS (op));
}
@ -462,7 +461,7 @@ uint5_operand (op, mode)
int
int11_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == CONST_INT && INT_11_BITS (op));
}
@ -470,7 +469,7 @@ int11_operand (op, mode)
int
uint32_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
#if HOST_BITS_PER_WIDE_INT > 32
/* All allowed constants will fit a CONST_INT. */
@ -543,7 +542,7 @@ ior_mask_p (mask)
int
ior_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == CONST_INT && ior_mask_p (INTVAL (op)));
}
@ -562,7 +561,7 @@ lhs_lshift_operand (op, mode)
int
lhs_lshift_cint_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
unsigned HOST_WIDE_INT x;
if (GET_CODE (op) != CONST_INT)
@ -582,7 +581,7 @@ arith32_operand (op, mode)
int
pc_or_label_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == PC || GET_CODE (op) == LABEL_REF);
}
@ -595,7 +594,7 @@ pc_or_label_operand (op, mode)
rtx
legitimize_pic_address (orig, mode, reg)
rtx orig, reg;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
rtx pic_ref = orig;
@ -709,7 +708,7 @@ legitimize_pic_address (orig, mode, reg)
rtx
hppa_legitimize_address (x, oldx, mode)
rtx x, oldx;
rtx x, oldx ATTRIBUTE_UNUSED;
enum machine_mode mode;
{
rtx orig = x;
@ -1928,7 +1927,7 @@ find_addr_reg (addr)
char *
output_block_move (operands, size_is_constant)
rtx *operands;
int size_is_constant;
int size_is_constant ATTRIBUTE_UNUSED;
{
int align = INTVAL (operands[5]);
unsigned long n_bytes = INTVAL (operands[4]);
@ -2555,7 +2554,7 @@ static char hp_profile_label_name[8];
void
output_function_prologue (file, size)
FILE *file;
int size;
int size ATTRIBUTE_UNUSED;
{
/* The function's label and associated .PROC must never be
separated and must be output *after* any profiling declarations
@ -2942,7 +2941,7 @@ hppa_expand_prologue()
void
output_function_epilogue (file, size)
FILE *file;
int size;
int size ATTRIBUTE_UNUSED;
{
rtx insn = get_last_insn ();
@ -3171,7 +3170,7 @@ hppa_expand_epilogue ()
rtx
return_addr_rtx (count, frameaddr)
int count;
int count ATTRIBUTE_UNUSED;
rtx frameaddr;
{
rtx label;
@ -4015,7 +4014,7 @@ import_milli (code)
char *
output_mul_insn (unsignedp, insn)
int unsignedp;
int unsignedp ATTRIBUTE_UNUSED;
rtx insn;
{
import_milli (mulI);
@ -4344,7 +4343,7 @@ function_arg_padding (mode, type)
struct rtx_def *
hppa_builtin_saveregs (arglist)
tree arglist;
tree arglist ATTRIBUTE_UNUSED;
{
rtx offset, dest;
tree fntype = TREE_TYPE (current_function_decl);
@ -4572,7 +4571,7 @@ output_cbranch (operands, nullify, length, negated, insn)
char *
output_bb (operands, nullify, length, negated, insn, which)
rtx *operands;
rtx *operands ATTRIBUTE_UNUSED;
int nullify, length, negated;
rtx insn;
int which;
@ -4710,7 +4709,7 @@ output_bb (operands, nullify, length, negated, insn, which)
char *
output_bvb (operands, nullify, length, negated, insn, which)
rtx *operands;
rtx *operands ATTRIBUTE_UNUSED;
int nullify, length, negated;
rtx insn;
int which;
@ -5494,7 +5493,7 @@ hppa_encode_label (sym, permanent)
int
function_label_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return GET_CODE (op) == SYMBOL_REF && FUNCTION_NAME_P (XSTR (op, 0));
}
@ -5634,7 +5633,7 @@ fmpysuboperands (operands)
int
plus_xor_ior_operator (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == PLUS || GET_CODE (op) == XOR
|| GET_CODE (op) == IOR);
@ -5657,7 +5656,7 @@ shadd_constant_p (val)
int
shadd_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == CONST_INT && shadd_constant_p (INTVAL (op)));
}
@ -5711,7 +5710,7 @@ basereg_operand (op, mode)
int
non_hard_reg_operand (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return ! (GET_CODE (op) == REG && REGNO (op) < FIRST_PSEUDO_REGISTER);
}
@ -5739,7 +5738,7 @@ forward_branch_p (insn)
int
eq_neq_comparison_operator (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == EQ || GET_CODE (op) == NE);
}
@ -5748,7 +5747,7 @@ eq_neq_comparison_operator (op, mode)
int
movb_comparison_operator (op, mode)
rtx op;
enum machine_mode mode;
enum machine_mode mode ATTRIBUTE_UNUSED;
{
return (GET_CODE (op) == EQ || GET_CODE (op) == NE
|| GET_CODE (op) == LT || GET_CODE (op) == GE);
@ -6138,7 +6137,7 @@ pa_reorg (insns)
static void
pa_combine_instructions (insns)
rtx insns;
rtx insns ATTRIBUTE_UNUSED;
{
rtx anchor, new;

View File

@ -2474,11 +2474,25 @@ extern char *output_div_insn ();
extern char *output_mod_insn ();
extern char *singlemove_string ();
extern void output_arg_descriptor ();
extern void output_deferred_plabels ();
extern void override_options ();
extern void output_ascii ();
extern void output_function_prologue ();
extern void output_function_epilogue ();
extern void output_global_address ();
extern void print_operand ();
extern struct rtx_def *legitimize_pic_address ();
extern struct rtx_def *gen_cmp_fp ();
extern void hppa_encode_label ();
extern int arith11_operand ();
extern int symbolic_expression_p ();
extern int reloc_needed ();
extern int compute_frame_size ();
extern int hppa_address_cost ();
extern int and_mask_p ();
extern int symbolic_memory_operand ();
extern int pa_adjust_cost ();
extern int pa_adjust_insn_length ();
extern int int11_operand ();
extern int reg_or_cint_move_operand ();
extern int arith5_operand ();
@ -2516,7 +2530,7 @@ extern void hppa_expand_epilogue ();
extern int hppa_can_use_return_insn_p ();
extern int is_function_label_plus_const ();
extern int jump_in_call_delay ();
extern enum reg_class secondary_reload_class ();
/* Declare functions defined in pa.c and used in templates. */