aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-11-04 02:26:55 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-11-04 02:26:55 +0000
commit40cdfca60cab2c798fe7138a2d633b93bfd52c4f (patch)
tree1c47f44390c44ea148b2f6c62a3982f0c5742351 /gcc/gcc.c
parent76648a8bad33fe3207eedc498a44859f7d5318e8 (diff)
downloadgcc-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.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index ad68645..c6bd8ed 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)