diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-04 02:26:55 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-04 02:26:55 +0000 |
commit | 7e6b5e5494a3eb9df27b3857e950d0765c6a896c (patch) | |
tree | 1c47f44390c44ea148b2f6c62a3982f0c5742351 /gcc/gcc.c | |
parent | f6020ad06e9ede8f429e9b6d24f1e4c5dccb6d20 (diff) | |
download | gcc-7e6b5e5494a3eb9df27b3857e950d0765c6a896c.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46757 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 11 |
1 files changed, 8 insertions, 3 deletions
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) |