mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 15:49:54 +08:00
dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with ATTRIBUTE_UNUSED.
* 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. From-SVN: r46757
This commit is contained in:
parent
76648a8bad
commit
40cdfca60c
@ -1,5 +1,12 @@
|
||||
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.
|
||||
|
@ -190,7 +190,8 @@ dw2_asm_output_offset VPARAMS ((int size, const char *label,
|
||||
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);
|
||||
|
@ -2271,11 +2271,13 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
|
||||
#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;
|
||||
|
11
gcc/gcc.c
11
gcc/gcc.c
@ -318,6 +318,9 @@ static void init_gcc_specs PARAMS ((struct obstack *,
|
||||
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
|
||||
|
||||
/* The Specs Language
|
||||
|
||||
@ -2900,12 +2903,14 @@ static int *warn_std_ptr = 0;
|
||||
/* 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)
|
||||
|
@ -198,6 +198,10 @@ extern void tdesc_section PARAMS ((void));
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user