2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
+ ATTRIBUTE_UNUSED.
+ * final.c (final_scan_insn): Add brackets around body of if-stmt.
+ * gcc.c (convert_filename): Add static prototype. Const-ify.
+ Wrap variable in macros controlling its use.
+ * output.h (sdata_section): Add prototype.
+
* 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
(ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
* c4x.h (INIT_SECTION_FUNCTION): Add prototype.
different section or object file. */
void
-dw2_asm_output_pcrel VPARAMS ((int size, const char *label,
+dw2_asm_output_pcrel VPARAMS ((int size ATTRIBUTE_UNUSED,
+ const char *label ATTRIBUTE_UNUSED,
const char *comment, ...))
{
VA_OPEN (ap, comment);
#endif
if (align && NEXT_INSN (insn))
+ {
#ifdef ASM_OUTPUT_MAX_SKIP_ALIGN
- ASM_OUTPUT_MAX_SKIP_ALIGN (file, align, max_skip);
+ ASM_OUTPUT_MAX_SKIP_ALIGN (file, align, max_skip);
#else
- ASM_OUTPUT_ALIGN (file, align);
+ ASM_OUTPUT_ALIGN (file, align);
#endif
+ }
}
#ifdef HAVE_cc0
CC_STATUS_INIT;
const char *,
const char *));
#endif
+#if defined(HAVE_TARGET_OBJECT_SUFFIX) || defined(HAVE_TARGET_EXECUTABLE_SUFFIX)
+static const char *convert_filename PARAMS ((const char *, int));
+#endif
\f
/* The Specs Language
/* Convert NAME to a new name if it is the standard suffix. DO_EXE
is true if we should look for an executable suffix as well. */
-static char *
+static const char *
convert_filename (name, do_exe)
- char *name;
- int do_exe;
+ const char *name;
+ int do_exe ATTRIBUTE_UNUSED;
{
+#if defined(HAVE_TARGET_EXECUTABLE_SUFFIX)
int i;
+#endif
int len;
if (name == NULL)
extern void drectve_section PARAMS ((void));
#endif
+#ifdef SDATA_SECTION_ASM_OP
+extern void sdata_section PARAMS ((void));
+#endif
+
#ifdef TREE_CODE
/* Tell assembler to change to section NAME for DECL.
If DECL is NULL, just switch to section NAME.