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/gcc.c | |
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/gcc.c')
-rw-r--r-- | gcc/gcc.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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) |