Commit 6894579f by Kaveh R. Ghazi Committed by Kaveh Ghazi

calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.

	* calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
	* 1750a.c (print_operand): Fix format specifier warning.
	* 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
	* 1750a.md: Likewise.
	* gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
	* genemit.c (output_add_clobbers): Mark parameter with
	ATTRIBUTE_UNUSED.
	* genrecog.c (write_subroutine): Likewise.
	* integrate.c (expand_inline_function): Delete unused variable.
	* varasm.c (remove_from_pending_weak_list): Wrap with
	ASM_WEAKEN_LABEL.

From-SVN: r46358
parent 368a1647
2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
* 1750a.c (print_operand): Fix format specifier warning.
* 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
* 1750a.md: Likewise.
* gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
* genemit.c (output_add_clobbers): Mark parameter with
ATTRIBUTE_UNUSED.
* genrecog.c (write_subroutine): Likewise.
* integrate.c (expand_inline_function): Delete unused variable.
* varasm.c (remove_from_pending_weak_list): Wrap with
ASM_WEAKEN_LABEL.
2001-10-19 Jakub Jelinek <jakub@redhat.com> 2001-10-19 Jakub Jelinek <jakub@redhat.com>
* simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
......
...@@ -449,7 +449,7 @@ emit_call_1 (funexp, fndecl, funtype, stack_size, rounded_stack_size, ...@@ -449,7 +449,7 @@ emit_call_1 (funexp, fndecl, funtype, stack_size, rounded_stack_size,
HOST_WIDE_INT stack_size ATTRIBUTE_UNUSED; HOST_WIDE_INT stack_size ATTRIBUTE_UNUSED;
HOST_WIDE_INT rounded_stack_size; HOST_WIDE_INT rounded_stack_size;
HOST_WIDE_INT struct_value_size ATTRIBUTE_UNUSED; HOST_WIDE_INT struct_value_size ATTRIBUTE_UNUSED;
rtx next_arg_reg; rtx next_arg_reg ATTRIBUTE_UNUSED;
rtx valreg; rtx valreg;
int old_inhibit_defer_pop; int old_inhibit_defer_pop;
rtx call_fusage; rtx call_fusage;
......
...@@ -652,7 +652,7 @@ print_operand (file, x, letter) ...@@ -652,7 +652,7 @@ print_operand (file, x, letter)
case CALL: case CALL:
fprintf (file, "CALL nargs="); fprintf (file, "CALL nargs=");
fprintf (file, HOST_PTR_PRINTF, XEXP (x, 1)); fprintf (file, HOST_PTR_PRINTF, (PTR) XEXP (x, 1));
fprintf (file, ", func is either '%s' or '%s'", fprintf (file, ", func is either '%s' or '%s'",
XSTR (XEXP (XEXP (x, 0), 1), 0), XSTR (XEXP (x, 0), 1)); XSTR (XEXP (XEXP (x, 0), 1), 0), XSTR (XEXP (x, 0), 1));
break; break;
......
...@@ -857,15 +857,16 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA ...@@ -857,15 +857,16 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA
/* Output at beginning of assembler file. */ /* Output at beginning of assembler file. */
#define ASM_FILE_START(FILE) { \ #define ASM_FILE_START(FILE) { \
char *p, name[40]; \ char *p2, name[40]; \
if ((p = (char *)strrchr(main_input_filename,'/')) != NULL ? 1 : \ const char *p; \
(p = (char *)strrchr(main_input_filename,']')) != NULL) \ if ((p = strrchr(main_input_filename,'/')) != NULL ? 1 : \
(p = strrchr(main_input_filename,']')) != NULL) \
p++; \ p++; \
else \ else \
p = main_input_filename; \ p = main_input_filename; \
strcpy(name,p); \ strcpy(name,p); \
if ((p = (char *)strchr(name,'.'))) \ if ((p2 = strchr(name,'.'))) \
*p = '\0'; \ *p2 = '\0'; \
fprintf(FILE,"\tname %s\n",name); \ fprintf(FILE,"\tname %s\n",name); \
fprintf(FILE,"\tnolist\n\tinclude \"ms1750.inc\"\n\tlist\n\n"); \ fprintf(FILE,"\tnolist\n\tinclude \"ms1750.inc\"\n\tlist\n\n"); \
fprintf(FILE,"\tglobal\t__main\n\n"); } fprintf(FILE,"\tglobal\t__main\n\n"); }
......
...@@ -667,7 +667,7 @@ ...@@ -667,7 +667,7 @@
"" ""
"* "*
{ {
char *istr; const char *istr;
switch(which_alternative) switch(which_alternative)
{ {
case 0: case 0:
......
...@@ -313,9 +313,11 @@ static int execute PARAMS ((void)); ...@@ -313,9 +313,11 @@ static int execute PARAMS ((void));
static void clear_args PARAMS ((void)); static void clear_args PARAMS ((void));
static void fatal_error PARAMS ((int)); static void fatal_error PARAMS ((int));
static void set_input PARAMS ((const char *)); static void set_input PARAMS ((const char *));
#ifdef ENABLE_SHARED_LIBGCC
static void init_gcc_specs PARAMS ((struct obstack *, static void init_gcc_specs PARAMS ((struct obstack *,
const char *, const char *,
const char *)); const char *));
#endif
/* The Specs Language /* The Specs Language
...@@ -1376,6 +1378,7 @@ static struct spec_list *specs = (struct spec_list *) 0; ...@@ -1376,6 +1378,7 @@ static struct spec_list *specs = (struct spec_list *) 0;
/* Add appropriate libgcc specs to OBSTACK, taking into account /* Add appropriate libgcc specs to OBSTACK, taking into account
various permutations of -shared-libgcc, -shared, and such. */ various permutations of -shared-libgcc, -shared, and such. */
#ifdef ENABLE_SHARED_LIBGCC
static void static void
init_gcc_specs (obstack, shared_name, static_name) init_gcc_specs (obstack, shared_name, static_name)
struct obstack *obstack; struct obstack *obstack;
...@@ -1401,6 +1404,7 @@ init_gcc_specs (obstack, shared_name, static_name) ...@@ -1401,6 +1404,7 @@ init_gcc_specs (obstack, shared_name, static_name)
static_name); static_name);
obstack_grow (obstack, buffer, strlen (buffer)); obstack_grow (obstack, buffer, strlen (buffer));
} }
#endif /* ENABLE_SHARED_LIBGCC */
/* Initialize the specs lookup routines. */ /* Initialize the specs lookup routines. */
......
...@@ -672,7 +672,7 @@ output_add_clobbers () ...@@ -672,7 +672,7 @@ output_add_clobbers ()
int i; int i;
printf ("\n\nvoid\nadd_clobbers (pattern, insn_code_number)\n"); printf ("\n\nvoid\nadd_clobbers (pattern, insn_code_number)\n");
printf (" rtx pattern;\n int insn_code_number;\n"); printf (" rtx pattern ATTRIBUTE_UNUSED;\n int insn_code_number;\n");
printf ("{\n"); printf ("{\n");
printf (" switch (insn_code_number)\n"); printf (" switch (insn_code_number)\n");
printf (" {\n"); printf (" {\n");
......
...@@ -2349,7 +2349,7 @@ write_subroutine (head, type) ...@@ -2349,7 +2349,7 @@ write_subroutine (head, type)
printf ("%sint recog%s PARAMS ((rtx, rtx, int *));\n", s_or_e, extension); printf ("%sint recog%s PARAMS ((rtx, rtx, int *));\n", s_or_e, extension);
printf ("%sint\n\ printf ("%sint\n\
recog%s (x0, insn, pnum_clobbers)\n\ recog%s (x0, insn, pnum_clobbers)\n\
rtx x0;\n\ rtx x0 ATTRIBUTE_UNUSED;\n\
rtx insn ATTRIBUTE_UNUSED;\n\ rtx insn ATTRIBUTE_UNUSED;\n\
int *pnum_clobbers ATTRIBUTE_UNUSED;\n", s_or_e, extension); int *pnum_clobbers ATTRIBUTE_UNUSED;\n", s_or_e, extension);
break; break;
...@@ -2357,7 +2357,7 @@ recog%s (x0, insn, pnum_clobbers)\n\ ...@@ -2357,7 +2357,7 @@ recog%s (x0, insn, pnum_clobbers)\n\
printf ("%srtx split%s PARAMS ((rtx, rtx));\n", s_or_e, extension); printf ("%srtx split%s PARAMS ((rtx, rtx));\n", s_or_e, extension);
printf ("%srtx\n\ printf ("%srtx\n\
split%s (x0, insn)\n\ split%s (x0, insn)\n\
rtx x0;\n\ rtx x0 ATTRIBUTE_UNUSED;\n\
rtx insn ATTRIBUTE_UNUSED;\n", s_or_e, extension); rtx insn ATTRIBUTE_UNUSED;\n", s_or_e, extension);
break; break;
case PEEPHOLE2: case PEEPHOLE2:
...@@ -2365,7 +2365,7 @@ split%s (x0, insn)\n\ ...@@ -2365,7 +2365,7 @@ split%s (x0, insn)\n\
s_or_e, extension); s_or_e, extension);
printf ("%srtx\n\ printf ("%srtx\n\
peephole2%s (x0, insn, _pmatch_len)\n\ peephole2%s (x0, insn, _pmatch_len)\n\
rtx x0;\n\ rtx x0 ATTRIBUTE_UNUSED;\n\
rtx insn ATTRIBUTE_UNUSED;\n\ rtx insn ATTRIBUTE_UNUSED;\n\
int *_pmatch_len ATTRIBUTE_UNUSED;\n", s_or_e, extension); int *_pmatch_len ATTRIBUTE_UNUSED;\n", s_or_e, extension);
break; break;
......
...@@ -663,9 +663,6 @@ expand_inline_function (fndecl, parms, target, ignore, type, ...@@ -663,9 +663,6 @@ expand_inline_function (fndecl, parms, target, ignore, type,
rtx stack_save = 0; rtx stack_save = 0;
rtx temp; rtx temp;
struct inline_remap *map = 0; struct inline_remap *map = 0;
#ifdef HAVE_cc0
rtx cc0_insn = 0;
#endif
rtvec arg_vector = (rtvec) inl_f->original_arg_vector; rtvec arg_vector = (rtvec) inl_f->original_arg_vector;
rtx static_chain_value = 0; rtx static_chain_value = 0;
int inl_max_uid; int inl_max_uid;
......
...@@ -163,7 +163,9 @@ static void output_after_function_constants PARAMS ((void)); ...@@ -163,7 +163,9 @@ static void output_after_function_constants PARAMS ((void));
static unsigned HOST_WIDE_INT array_size_for_constructor PARAMS ((tree)); static unsigned HOST_WIDE_INT array_size_for_constructor PARAMS ((tree));
static unsigned min_align PARAMS ((unsigned, unsigned)); static unsigned min_align PARAMS ((unsigned, unsigned));
static void output_constructor PARAMS ((tree, int, unsigned)); static void output_constructor PARAMS ((tree, int, unsigned));
#ifdef ASM_WEAKEN_LABEL
static void remove_from_pending_weak_list PARAMS ((const char *)); static void remove_from_pending_weak_list PARAMS ((const char *));
#endif
static int in_named_entry_eq PARAMS ((const PTR, const PTR)); static int in_named_entry_eq PARAMS ((const PTR, const PTR));
static hashval_t in_named_entry_hash PARAMS ((const PTR)); static hashval_t in_named_entry_hash PARAMS ((const PTR));
#ifdef ASM_OUTPUT_BSS #ifdef ASM_OUTPUT_BSS
...@@ -5047,6 +5049,7 @@ weak_finish () ...@@ -5047,6 +5049,7 @@ weak_finish ()
/* Remove NAME from the pending list of weak symbols. This prevents /* Remove NAME from the pending list of weak symbols. This prevents
the compiler from emitting multiple .weak directives which confuses the compiler from emitting multiple .weak directives which confuses
some assemblers. */ some assemblers. */
#ifdef ASM_WEAKEN_LABEL
static void static void
remove_from_pending_weak_list (name) remove_from_pending_weak_list (name)
const char *name; const char *name;
...@@ -5066,6 +5069,7 @@ remove_from_pending_weak_list (name) ...@@ -5066,6 +5069,7 @@ remove_from_pending_weak_list (name)
p = &(t->next); p = &(t->next);
} }
} }
#endif /* ASM_WEAKEN_LABEL */
/* Emit an assembler directive to make the symbol for DECL an alias to /* Emit an assembler directive to make the symbol for DECL an alias to
the symbol for TARGET. */ the symbol for TARGET. */
......
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