Commit 0b17dd98 by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent df16ddd5
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> Wed Jun 17 22:28:48 1998 Jason Merrill <jason@yorick.cygnus.com>
* configure.in: Don't turn on collect2 unconditionally. * configure.in: Don't turn on collect2 unconditionally.
......
...@@ -20,10 +20,8 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -20,10 +20,8 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include "config.h" #include "config.h"
#include <stdio.h> #include "system.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include "rtl.h" #include "rtl.h"
#include "regs.h" #include "regs.h"
#include "hard-reg-set.h" #include "hard-reg-set.h"
...@@ -39,6 +37,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -39,6 +37,7 @@ Boston, MA 02111-1307, USA. */
#include "c-tree.h" #include "c-tree.h"
#include "expr.h" #include "expr.h"
#include "obstack.h" #include "obstack.h"
#include "toplev.h"
static void restore_unscaled_index_insn_codes PROTO((rtx)); static void restore_unscaled_index_insn_codes PROTO((rtx));
static void record_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) ...@@ -174,7 +173,7 @@ reg_or_0_operand (op, mode)
int int
call_operand_address (op, mode) call_operand_address (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (CONSTANT_P (op) && ! TARGET_PORTABLE_RUNTIME); return (CONSTANT_P (op) && ! TARGET_PORTABLE_RUNTIME);
} }
...@@ -197,7 +196,7 @@ symbolic_expression_p (x) ...@@ -197,7 +196,7 @@ symbolic_expression_p (x)
int int
symbolic_operand (op, mode) symbolic_operand (op, mode)
register rtx op; register rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -220,7 +219,7 @@ symbolic_operand (op, mode) ...@@ -220,7 +219,7 @@ symbolic_operand (op, mode)
int int
symbolic_memory_operand (op, mode) symbolic_memory_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) == SUBREG) if (GET_CODE (op) == SUBREG)
op = SUBREG_REG (op); op = SUBREG_REG (op);
...@@ -340,7 +339,7 @@ reg_or_cint_move_operand (op, mode) ...@@ -340,7 +339,7 @@ reg_or_cint_move_operand (op, mode)
int int
pic_label_operand (op, mode) pic_label_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (!flag_pic) if (!flag_pic)
return 0; return 0;
...@@ -361,7 +360,7 @@ pic_label_operand (op, mode) ...@@ -361,7 +360,7 @@ pic_label_operand (op, mode)
int int
fp_reg_operand (op, mode) fp_reg_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return reg_renumber && FP_REG_P (op); return reg_renumber && FP_REG_P (op);
} }
...@@ -397,7 +396,7 @@ arith11_operand (op, mode) ...@@ -397,7 +396,7 @@ arith11_operand (op, mode)
int int
pre_cint_operand (op, mode) pre_cint_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == CONST_INT return (GET_CODE (op) == CONST_INT
&& INTVAL (op) >= -0x2000 && INTVAL (op) < 0x10); && INTVAL (op) >= -0x2000 && INTVAL (op) < 0x10);
...@@ -408,7 +407,7 @@ pre_cint_operand (op, mode) ...@@ -408,7 +407,7 @@ pre_cint_operand (op, mode)
int int
post_cint_operand (op, mode) post_cint_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == CONST_INT return (GET_CODE (op) == CONST_INT
&& INTVAL (op) < 0x2000 && INTVAL (op) >= -0x10); && INTVAL (op) < 0x2000 && INTVAL (op) >= -0x10);
...@@ -434,7 +433,7 @@ arith_double_operand (op, mode) ...@@ -434,7 +433,7 @@ arith_double_operand (op, mode)
int int
ireg_or_int5_operand (op, mode) ireg_or_int5_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return ((GET_CODE (op) == CONST_INT && INT_5_BITS (op)) return ((GET_CODE (op) == CONST_INT && INT_5_BITS (op))
|| (GET_CODE (op) == REG && REGNO (op) > 0 && REGNO (op) < 32)); || (GET_CODE (op) == REG && REGNO (op) > 0 && REGNO (op) < 32));
...@@ -446,7 +445,7 @@ ireg_or_int5_operand (op, mode) ...@@ -446,7 +445,7 @@ ireg_or_int5_operand (op, mode)
int int
int5_operand (op, mode) int5_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == CONST_INT && INT_5_BITS (op)); return (GET_CODE (op) == CONST_INT && INT_5_BITS (op));
} }
...@@ -454,7 +453,7 @@ int5_operand (op, mode) ...@@ -454,7 +453,7 @@ int5_operand (op, mode)
int int
uint5_operand (op, mode) uint5_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == CONST_INT && INT_U5_BITS (op)); return (GET_CODE (op) == CONST_INT && INT_U5_BITS (op));
} }
...@@ -462,7 +461,7 @@ uint5_operand (op, mode) ...@@ -462,7 +461,7 @@ uint5_operand (op, mode)
int int
int11_operand (op, mode) int11_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == CONST_INT && INT_11_BITS (op)); return (GET_CODE (op) == CONST_INT && INT_11_BITS (op));
} }
...@@ -470,7 +469,7 @@ int11_operand (op, mode) ...@@ -470,7 +469,7 @@ int11_operand (op, mode)
int int
uint32_operand (op, mode) uint32_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
#if HOST_BITS_PER_WIDE_INT > 32 #if HOST_BITS_PER_WIDE_INT > 32
/* All allowed constants will fit a CONST_INT. */ /* All allowed constants will fit a CONST_INT. */
...@@ -543,7 +542,7 @@ ior_mask_p (mask) ...@@ -543,7 +542,7 @@ ior_mask_p (mask)
int int
ior_operand (op, mode) ior_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == CONST_INT && ior_mask_p (INTVAL (op))); return (GET_CODE (op) == CONST_INT && ior_mask_p (INTVAL (op)));
} }
...@@ -562,7 +561,7 @@ lhs_lshift_operand (op, mode) ...@@ -562,7 +561,7 @@ lhs_lshift_operand (op, mode)
int int
lhs_lshift_cint_operand (op, mode) lhs_lshift_cint_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
unsigned HOST_WIDE_INT x; unsigned HOST_WIDE_INT x;
if (GET_CODE (op) != CONST_INT) if (GET_CODE (op) != CONST_INT)
...@@ -582,7 +581,7 @@ arith32_operand (op, mode) ...@@ -582,7 +581,7 @@ arith32_operand (op, mode)
int int
pc_or_label_operand (op, mode) pc_or_label_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == PC || GET_CODE (op) == LABEL_REF); return (GET_CODE (op) == PC || GET_CODE (op) == LABEL_REF);
} }
...@@ -595,7 +594,7 @@ pc_or_label_operand (op, mode) ...@@ -595,7 +594,7 @@ pc_or_label_operand (op, mode)
rtx rtx
legitimize_pic_address (orig, mode, reg) legitimize_pic_address (orig, mode, reg)
rtx orig, reg; rtx orig, reg;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
rtx pic_ref = orig; rtx pic_ref = orig;
...@@ -709,7 +708,7 @@ legitimize_pic_address (orig, mode, reg) ...@@ -709,7 +708,7 @@ legitimize_pic_address (orig, mode, reg)
rtx rtx
hppa_legitimize_address (x, oldx, mode) hppa_legitimize_address (x, oldx, mode)
rtx x, oldx; rtx x, oldx ATTRIBUTE_UNUSED;
enum machine_mode mode; enum machine_mode mode;
{ {
rtx orig = x; rtx orig = x;
...@@ -1928,7 +1927,7 @@ find_addr_reg (addr) ...@@ -1928,7 +1927,7 @@ find_addr_reg (addr)
char * char *
output_block_move (operands, size_is_constant) output_block_move (operands, size_is_constant)
rtx *operands; rtx *operands;
int size_is_constant; int size_is_constant ATTRIBUTE_UNUSED;
{ {
int align = INTVAL (operands[5]); int align = INTVAL (operands[5]);
unsigned long n_bytes = INTVAL (operands[4]); unsigned long n_bytes = INTVAL (operands[4]);
...@@ -2555,7 +2554,7 @@ static char hp_profile_label_name[8]; ...@@ -2555,7 +2554,7 @@ static char hp_profile_label_name[8];
void void
output_function_prologue (file, size) output_function_prologue (file, size)
FILE *file; FILE *file;
int size; int size ATTRIBUTE_UNUSED;
{ {
/* The function's label and associated .PROC must never be /* The function's label and associated .PROC must never be
separated and must be output *after* any profiling declarations separated and must be output *after* any profiling declarations
...@@ -2942,7 +2941,7 @@ hppa_expand_prologue() ...@@ -2942,7 +2941,7 @@ hppa_expand_prologue()
void void
output_function_epilogue (file, size) output_function_epilogue (file, size)
FILE *file; FILE *file;
int size; int size ATTRIBUTE_UNUSED;
{ {
rtx insn = get_last_insn (); rtx insn = get_last_insn ();
...@@ -3171,7 +3170,7 @@ hppa_expand_epilogue () ...@@ -3171,7 +3170,7 @@ hppa_expand_epilogue ()
rtx rtx
return_addr_rtx (count, frameaddr) return_addr_rtx (count, frameaddr)
int count; int count ATTRIBUTE_UNUSED;
rtx frameaddr; rtx frameaddr;
{ {
rtx label; rtx label;
...@@ -4015,7 +4014,7 @@ import_milli (code) ...@@ -4015,7 +4014,7 @@ import_milli (code)
char * char *
output_mul_insn (unsignedp, insn) output_mul_insn (unsignedp, insn)
int unsignedp; int unsignedp ATTRIBUTE_UNUSED;
rtx insn; rtx insn;
{ {
import_milli (mulI); import_milli (mulI);
...@@ -4344,7 +4343,7 @@ function_arg_padding (mode, type) ...@@ -4344,7 +4343,7 @@ function_arg_padding (mode, type)
struct rtx_def * struct rtx_def *
hppa_builtin_saveregs (arglist) hppa_builtin_saveregs (arglist)
tree arglist; tree arglist ATTRIBUTE_UNUSED;
{ {
rtx offset, dest; rtx offset, dest;
tree fntype = TREE_TYPE (current_function_decl); tree fntype = TREE_TYPE (current_function_decl);
...@@ -4572,7 +4571,7 @@ output_cbranch (operands, nullify, length, negated, insn) ...@@ -4572,7 +4571,7 @@ output_cbranch (operands, nullify, length, negated, insn)
char * char *
output_bb (operands, nullify, length, negated, insn, which) output_bb (operands, nullify, length, negated, insn, which)
rtx *operands; rtx *operands ATTRIBUTE_UNUSED;
int nullify, length, negated; int nullify, length, negated;
rtx insn; rtx insn;
int which; int which;
...@@ -4710,7 +4709,7 @@ output_bb (operands, nullify, length, negated, insn, which) ...@@ -4710,7 +4709,7 @@ output_bb (operands, nullify, length, negated, insn, which)
char * char *
output_bvb (operands, nullify, length, negated, insn, which) output_bvb (operands, nullify, length, negated, insn, which)
rtx *operands; rtx *operands ATTRIBUTE_UNUSED;
int nullify, length, negated; int nullify, length, negated;
rtx insn; rtx insn;
int which; int which;
...@@ -5494,7 +5493,7 @@ hppa_encode_label (sym, permanent) ...@@ -5494,7 +5493,7 @@ hppa_encode_label (sym, permanent)
int int
function_label_operand (op, mode) function_label_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return GET_CODE (op) == SYMBOL_REF && FUNCTION_NAME_P (XSTR (op, 0)); return GET_CODE (op) == SYMBOL_REF && FUNCTION_NAME_P (XSTR (op, 0));
} }
...@@ -5634,7 +5633,7 @@ fmpysuboperands (operands) ...@@ -5634,7 +5633,7 @@ fmpysuboperands (operands)
int int
plus_xor_ior_operator (op, mode) plus_xor_ior_operator (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == PLUS || GET_CODE (op) == XOR return (GET_CODE (op) == PLUS || GET_CODE (op) == XOR
|| GET_CODE (op) == IOR); || GET_CODE (op) == IOR);
...@@ -5657,7 +5656,7 @@ shadd_constant_p (val) ...@@ -5657,7 +5656,7 @@ shadd_constant_p (val)
int int
shadd_operand (op, mode) shadd_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == CONST_INT && shadd_constant_p (INTVAL (op))); return (GET_CODE (op) == CONST_INT && shadd_constant_p (INTVAL (op)));
} }
...@@ -5711,7 +5710,7 @@ basereg_operand (op, mode) ...@@ -5711,7 +5710,7 @@ basereg_operand (op, mode)
int int
non_hard_reg_operand (op, mode) non_hard_reg_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return ! (GET_CODE (op) == REG && REGNO (op) < FIRST_PSEUDO_REGISTER); return ! (GET_CODE (op) == REG && REGNO (op) < FIRST_PSEUDO_REGISTER);
} }
...@@ -5739,7 +5738,7 @@ forward_branch_p (insn) ...@@ -5739,7 +5738,7 @@ forward_branch_p (insn)
int int
eq_neq_comparison_operator (op, mode) eq_neq_comparison_operator (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == EQ || GET_CODE (op) == NE); return (GET_CODE (op) == EQ || GET_CODE (op) == NE);
} }
...@@ -5748,7 +5747,7 @@ eq_neq_comparison_operator (op, mode) ...@@ -5748,7 +5747,7 @@ eq_neq_comparison_operator (op, mode)
int int
movb_comparison_operator (op, mode) movb_comparison_operator (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
return (GET_CODE (op) == EQ || GET_CODE (op) == NE return (GET_CODE (op) == EQ || GET_CODE (op) == NE
|| GET_CODE (op) == LT || GET_CODE (op) == GE); || GET_CODE (op) == LT || GET_CODE (op) == GE);
...@@ -6138,7 +6137,7 @@ pa_reorg (insns) ...@@ -6138,7 +6137,7 @@ pa_reorg (insns)
static void static void
pa_combine_instructions (insns) pa_combine_instructions (insns)
rtx insns; rtx insns ATTRIBUTE_UNUSED;
{ {
rtx anchor, new; rtx anchor, new;
......
...@@ -2474,11 +2474,25 @@ extern char *output_div_insn (); ...@@ -2474,11 +2474,25 @@ extern char *output_div_insn ();
extern char *output_mod_insn (); extern char *output_mod_insn ();
extern char *singlemove_string (); extern char *singlemove_string ();
extern void output_arg_descriptor (); 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 output_global_address ();
extern void print_operand ();
extern struct rtx_def *legitimize_pic_address (); extern struct rtx_def *legitimize_pic_address ();
extern struct rtx_def *gen_cmp_fp (); extern struct rtx_def *gen_cmp_fp ();
extern void hppa_encode_label (); extern void hppa_encode_label ();
extern int arith11_operand (); 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 int11_operand ();
extern int reg_or_cint_move_operand (); extern int reg_or_cint_move_operand ();
extern int arith5_operand (); extern int arith5_operand ();
...@@ -2516,7 +2530,7 @@ extern void hppa_expand_epilogue (); ...@@ -2516,7 +2530,7 @@ extern void hppa_expand_epilogue ();
extern int hppa_can_use_return_insn_p (); extern int hppa_can_use_return_insn_p ();
extern int is_function_label_plus_const (); extern int is_function_label_plus_const ();
extern int jump_in_call_delay (); extern int jump_in_call_delay ();
extern enum reg_class secondary_reload_class ();
/* Declare functions defined in pa.c and used in templates. */ /* Declare functions defined in pa.c and used in templates. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment