diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-11-04 02:26:55 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-11-04 02:26:55 +0000 |
commit | 40cdfca60cab2c798fe7138a2d633b93bfd52c4f (patch) | |
tree | 1c47f44390c44ea148b2f6c62a3982f0c5742351 /gcc | |
parent | 76648a8bad33fe3207eedc498a44859f7d5318e8 (diff) | |
download | gcc-40cdfca60cab2c798fe7138a2d633b93bfd52c4f.zip gcc-40cdfca60cab2c798fe7138a2d633b93bfd52c4f.tar.gz gcc-40cdfca60cab2c798fe7138a2d633b93bfd52c4f.tar.bz2 |
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
Diffstat (limited to 'gcc')
-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 508e94a..4382d73 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 281cb46..25b5dc6 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 6b2ea7e..ab5779a 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; @@ -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 e18ceea..3923325 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. |