* 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
+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>
* simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
HOST_WIDE_INT stack_size ATTRIBUTE_UNUSED;
HOST_WIDE_INT rounded_stack_size;
HOST_WIDE_INT struct_value_size ATTRIBUTE_UNUSED;
- rtx next_arg_reg;
+ rtx next_arg_reg ATTRIBUTE_UNUSED;
rtx valreg;
int old_inhibit_defer_pop;
rtx call_fusage;
case CALL:
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'",
XSTR (XEXP (XEXP (x, 0), 1), 0), XSTR (XEXP (x, 0), 1));
break;
/* Output at beginning of assembler file. */
#define ASM_FILE_START(FILE) { \
- char *p, name[40]; \
- if ((p = (char *)strrchr(main_input_filename,'/')) != NULL ? 1 : \
- (p = (char *)strrchr(main_input_filename,']')) != NULL) \
+ char *p2, name[40]; \
+ const char *p; \
+ if ((p = strrchr(main_input_filename,'/')) != NULL ? 1 : \
+ (p = strrchr(main_input_filename,']')) != NULL) \
p++; \
else \
p = main_input_filename; \
strcpy(name,p); \
- if ((p = (char *)strchr(name,'.'))) \
- *p = '\0'; \
+ if ((p2 = strchr(name,'.'))) \
+ *p2 = '\0'; \
fprintf(FILE,"\tname %s\n",name); \
fprintf(FILE,"\tnolist\n\tinclude \"ms1750.inc\"\n\tlist\n\n"); \
fprintf(FILE,"\tglobal\t__main\n\n"); }
""
"*
{
- char *istr;
+ const char *istr;
switch(which_alternative)
{
case 0:
static void clear_args PARAMS ((void));
static void fatal_error PARAMS ((int));
static void set_input PARAMS ((const char *));
+#ifdef ENABLE_SHARED_LIBGCC
static void init_gcc_specs PARAMS ((struct obstack *,
const char *,
const char *));
+#endif
\f
/* The Specs Language
/* Add appropriate libgcc specs to OBSTACK, taking into account
various permutations of -shared-libgcc, -shared, and such. */
+#ifdef ENABLE_SHARED_LIBGCC
static void
init_gcc_specs (obstack, shared_name, static_name)
struct obstack *obstack;
static_name);
obstack_grow (obstack, buffer, strlen (buffer));
}
+#endif /* ENABLE_SHARED_LIBGCC */
/* Initialize the specs lookup routines. */
int i;
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 (" switch (insn_code_number)\n");
printf (" {\n");
printf ("%sint recog%s PARAMS ((rtx, rtx, int *));\n", s_or_e, extension);
printf ("%sint\n\
recog%s (x0, insn, pnum_clobbers)\n\
- rtx x0;\n\
+ rtx x0 ATTRIBUTE_UNUSED;\n\
rtx insn ATTRIBUTE_UNUSED;\n\
int *pnum_clobbers ATTRIBUTE_UNUSED;\n", s_or_e, extension);
break;
printf ("%srtx split%s PARAMS ((rtx, rtx));\n", s_or_e, extension);
printf ("%srtx\n\
split%s (x0, insn)\n\
- rtx x0;\n\
+ rtx x0 ATTRIBUTE_UNUSED;\n\
rtx insn ATTRIBUTE_UNUSED;\n", s_or_e, extension);
break;
case PEEPHOLE2:
s_or_e, extension);
printf ("%srtx\n\
peephole2%s (x0, insn, _pmatch_len)\n\
- rtx x0;\n\
+ rtx x0 ATTRIBUTE_UNUSED;\n\
rtx insn ATTRIBUTE_UNUSED;\n\
int *_pmatch_len ATTRIBUTE_UNUSED;\n", s_or_e, extension);
break;
rtx stack_save = 0;
rtx temp;
struct inline_remap *map = 0;
-#ifdef HAVE_cc0
- rtx cc0_insn = 0;
-#endif
rtvec arg_vector = (rtvec) inl_f->original_arg_vector;
rtx static_chain_value = 0;
int inl_max_uid;
static unsigned HOST_WIDE_INT array_size_for_constructor PARAMS ((tree));
static unsigned min_align PARAMS ((unsigned, unsigned));
static void output_constructor PARAMS ((tree, int, unsigned));
+#ifdef ASM_WEAKEN_LABEL
static void remove_from_pending_weak_list PARAMS ((const char *));
+#endif
static int in_named_entry_eq PARAMS ((const PTR, const PTR));
static hashval_t in_named_entry_hash PARAMS ((const PTR));
#ifdef ASM_OUTPUT_BSS
/* Remove NAME from the pending list of weak symbols. This prevents
the compiler from emitting multiple .weak directives which confuses
some assemblers. */
+#ifdef ASM_WEAKEN_LABEL
static void
remove_from_pending_weak_list (name)
const char *name;
p = &(t->next);
}
}
+#endif /* ASM_WEAKEN_LABEL */
/* Emit an assembler directive to make the symbol for DECL an alias to
the symbol for TARGET. */