diff options
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/dwarf2asm.c | 3 | ||||
-rw-r--r-- | gcc/final.c | 6 | ||||
-rw-r--r-- | gcc/gcc.c | 11 | ||||
-rw-r--r-- | gcc/output.h | 4 |
5 files changed, 25 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 508e94a4234..4382d73730b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c index 281cb4674a5..25b5dc68075 100644 --- a/gcc/dwarf2asm.c +++ b/gcc/dwarf2asm.c @@ -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); diff --git a/gcc/final.c b/gcc/final.c index 6b2ea7eda60..ab5779ad801 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -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; diff --git a/gcc/gcc.c b/gcc/gcc.c index ad68645f2e3..c6bd8ed56a9 100644 --- a/gcc/gcc.c +++ b/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) diff --git a/gcc/output.h b/gcc/output.h index e18ceeaa714..3923325fa4e 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -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. |