dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with ATTRIBUTE_UNUSED.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 4 Nov 2001 02:26:55 +0000 (02:26 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 4 Nov 2001 02:26:55 +0000 (02:26 +0000)
* 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

gcc/ChangeLog
gcc/dwarf2asm.c
gcc/final.c
gcc/gcc.c
gcc/output.h

index 508e94a423425edacc03605eea185e65ed1d2575..4382d73730b2ae5f760d9aa0f5d47084d30cdb7d 100644 (file)
@@ -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.
index 281cb4674a5233f5d0be83fe4387a3824d83215d..25b5dc68075ac2ebe7337dbc916a1b136a9d694a 100644 (file)
@@ -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);
index 6b2ea7eda6014ee716795c2e7bb381037f9de683..ab5779ad801f43370ce64747b40b3c6eb85741ac 100644 (file)
@@ -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;
index ad68645f2e3cda2e280fce1afa53e7fe963afbbc..c6bd8ed56a9afacfde72ceb3ddaafafc994baa2f 100644 (file)
--- 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
 \f
 /* 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)
index e18ceeaa714dfff2f53541822e8cdcab13ec153f..3923325fa4e04520b6e425cee34a752ad3261c1d 100644 (file)
@@ -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.