]> gcc.gnu.org Git - gcc.git/commitdiff
calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 19 Oct 2001 19:37:09 +0000 (19:37 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 19 Oct 2001 19:37:09 +0000 (19:37 +0000)
* calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
* 1750a.c (print_operand): Fix format specifier warning.
* 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
* 1750a.md: Likewise.
* gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
* genemit.c (output_add_clobbers): Mark parameter with
ATTRIBUTE_UNUSED.
* genrecog.c (write_subroutine): Likewise.
* integrate.c (expand_inline_function): Delete unused variable.
* varasm.c (remove_from_pending_weak_list): Wrap with
ASM_WEAKEN_LABEL.

From-SVN: r46358

gcc/ChangeLog
gcc/calls.c
gcc/config/1750a/1750a.c
gcc/config/1750a/1750a.h
gcc/config/1750a/1750a.md
gcc/gcc.c
gcc/genemit.c
gcc/genrecog.c
gcc/integrate.c
gcc/varasm.c

index cd0732cb8dd2d3304eb661a77f01352a94f3b712..4404282ddf468233d9e515e197a9f84d39ee3a4c 100644 (file)
@@ -1,3 +1,17 @@
+2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
+       * 1750a.c (print_operand): Fix format specifier warning.
+       * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
+       * 1750a.md: Likewise.
+       * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
+       * genemit.c (output_add_clobbers): Mark parameter with
+       ATTRIBUTE_UNUSED.
+       * genrecog.c (write_subroutine): Likewise.
+       * integrate.c (expand_inline_function): Delete unused variable.
+       * varasm.c (remove_from_pending_weak_list): Wrap with
+       ASM_WEAKEN_LABEL.
+
 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
 
        * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
index 5b5657fc1b957eb837af3b6b2bf101e417291eef..5a4850242bc9cc4df0f152123b8dd81b9545d942 100644 (file)
@@ -449,7 +449,7 @@ emit_call_1 (funexp, fndecl, funtype, stack_size, rounded_stack_size,
      HOST_WIDE_INT stack_size ATTRIBUTE_UNUSED;
      HOST_WIDE_INT rounded_stack_size;
      HOST_WIDE_INT struct_value_size ATTRIBUTE_UNUSED;
-     rtx next_arg_reg;
+     rtx next_arg_reg ATTRIBUTE_UNUSED;
      rtx valreg;
      int old_inhibit_defer_pop;
      rtx call_fusage;
index 4856de2a37ac76f0903a23d7dc4cac11452780c7..8f2ba21b5e630fb7f3e7efdb827b208d3c1a7b06 100644 (file)
@@ -652,7 +652,7 @@ print_operand (file, x, letter)
 
     case CALL:
       fprintf (file, "CALL nargs=");
-      fprintf (file, HOST_PTR_PRINTF, XEXP (x, 1));
+      fprintf (file, HOST_PTR_PRINTF, (PTR) XEXP (x, 1));
       fprintf (file, ", func is either '%s' or '%s'",
               XSTR (XEXP (XEXP (x, 0), 1), 0), XSTR (XEXP (x, 0), 1));
       break;
index ac6e7ee6335173062197cfa329df898cb181e8c2..07af4798b15c536df1159eaad6a65861ae2fd753 100644 (file)
@@ -857,15 +857,16 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA
 /* Output at beginning of assembler file.  */
 
 #define ASM_FILE_START(FILE)   {                                       \
-   char *p, name[40];                                                  \
-   if ((p = (char *)strrchr(main_input_filename,'/')) != NULL ? 1 :    \
-       (p = (char *)strrchr(main_input_filename,']')) != NULL)         \
+   char *p2, name[40];                                                 \
+   const char *p;                                                      \
+   if ((p = strrchr(main_input_filename,'/')) != NULL ? 1 :            \
+       (p = strrchr(main_input_filename,']')) != NULL)                 \
        p++;                                                            \
    else                                                                        \
        p = main_input_filename;                                        \
    strcpy(name,p);                                                     \
-   if ((p = (char *)strchr(name,'.')))                                 \
-       *p = '\0';                                                      \
+   if ((p2 = strchr(name,'.')))                                                \
+       *p2 = '\0';                                                     \
    fprintf(FILE,"\tname %s\n",name);                                   \
    fprintf(FILE,"\tnolist\n\tinclude \"ms1750.inc\"\n\tlist\n\n");     \
    fprintf(FILE,"\tglobal\t__main\n\n");  }
index e9a4deb198e6935e31dde4de34a66c3a15a694ad..1f4098f0f803b552c3fa3094cd935e980b2a33a5 100644 (file)
   ""
   "*
    {
-     char *istr;
+     const char *istr;
      switch(which_alternative)
        {
        case 0:
index df036e9c7e963cf138c293f7cf02c7c1f90bbf9f..504bba275eebd66d4df6e4ebb0d0f7b90d00e5c2 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -313,9 +313,11 @@ static int execute                 PARAMS ((void));
 static void clear_args                 PARAMS ((void));
 static void fatal_error                        PARAMS ((int));
 static void set_input                  PARAMS ((const char *));
+#ifdef ENABLE_SHARED_LIBGCC
 static void init_gcc_specs              PARAMS ((struct obstack *,
                                                 const char *,
                                                 const char *));
+#endif
 \f
 /* The Specs Language
 
@@ -1376,6 +1378,7 @@ static struct spec_list *specs = (struct spec_list *) 0;
 /* Add appropriate libgcc specs to OBSTACK, taking into account
    various permutations of -shared-libgcc, -shared, and such.  */
 
+#ifdef ENABLE_SHARED_LIBGCC
 static void
 init_gcc_specs (obstack, shared_name, static_name)
      struct obstack *obstack;
@@ -1401,6 +1404,7 @@ init_gcc_specs (obstack, shared_name, static_name)
           static_name);
   obstack_grow (obstack, buffer, strlen (buffer));
 }
+#endif /* ENABLE_SHARED_LIBGCC */
 
 /* Initialize the specs lookup routines.  */
 
index 24d41874c51ef6d55417d7da1d315b72d305846e..34d671164cd1a523e578e0737fcd467d7f7bd789 100644 (file)
@@ -672,7 +672,7 @@ output_add_clobbers ()
   int i;
 
   printf ("\n\nvoid\nadd_clobbers (pattern, insn_code_number)\n");
-  printf ("     rtx pattern;\n     int insn_code_number;\n");
+  printf ("     rtx pattern ATTRIBUTE_UNUSED;\n     int insn_code_number;\n");
   printf ("{\n");
   printf ("  switch (insn_code_number)\n");
   printf ("    {\n");
index 7e1d849c70b8aec4e433e93f70554c4101ec5061..4a3198b7ff28748786d2515ebbce6b519be2e512 100644 (file)
@@ -2349,7 +2349,7 @@ write_subroutine (head, type)
       printf ("%sint recog%s PARAMS ((rtx, rtx, int *));\n", s_or_e, extension);
       printf ("%sint\n\
 recog%s (x0, insn, pnum_clobbers)\n\
-     rtx x0;\n\
+     rtx x0 ATTRIBUTE_UNUSED;\n\
      rtx insn ATTRIBUTE_UNUSED;\n\
      int *pnum_clobbers ATTRIBUTE_UNUSED;\n", s_or_e, extension);
       break;
@@ -2357,7 +2357,7 @@ recog%s (x0, insn, pnum_clobbers)\n\
       printf ("%srtx split%s PARAMS ((rtx, rtx));\n", s_or_e, extension);
       printf ("%srtx\n\
 split%s (x0, insn)\n\
-     rtx x0;\n\
+     rtx x0 ATTRIBUTE_UNUSED;\n\
      rtx insn ATTRIBUTE_UNUSED;\n", s_or_e, extension);
       break;
     case PEEPHOLE2:
@@ -2365,7 +2365,7 @@ split%s (x0, insn)\n\
              s_or_e, extension);
       printf ("%srtx\n\
 peephole2%s (x0, insn, _pmatch_len)\n\
-     rtx x0;\n\
+     rtx x0 ATTRIBUTE_UNUSED;\n\
      rtx insn ATTRIBUTE_UNUSED;\n\
      int *_pmatch_len ATTRIBUTE_UNUSED;\n", s_or_e, extension);
       break;
index 8e1ff76b9fb5c9a1c18d4b3e33d8ce983eb77284..874029fbb9cd965bf21d8061a2f9455e594fc963 100644 (file)
@@ -663,9 +663,6 @@ expand_inline_function (fndecl, parms, target, ignore, type,
   rtx stack_save = 0;
   rtx temp;
   struct inline_remap *map = 0;
-#ifdef HAVE_cc0
-  rtx cc0_insn = 0;
-#endif
   rtvec arg_vector = (rtvec) inl_f->original_arg_vector;
   rtx static_chain_value = 0;
   int inl_max_uid;
index 0d6dc76c3a355a31a7eabcf451ca8533a95e007d..525d9c3e4b26c6fe50ca99163f4840b094a8185b 100644 (file)
@@ -163,7 +163,9 @@ static void output_after_function_constants PARAMS ((void));
 static unsigned HOST_WIDE_INT array_size_for_constructor PARAMS ((tree));
 static unsigned min_align              PARAMS ((unsigned, unsigned));
 static void output_constructor         PARAMS ((tree, int, unsigned));
+#ifdef ASM_WEAKEN_LABEL
 static void remove_from_pending_weak_list      PARAMS ((const char *));
+#endif
 static int in_named_entry_eq           PARAMS ((const PTR, const PTR));
 static hashval_t in_named_entry_hash   PARAMS ((const PTR));
 #ifdef ASM_OUTPUT_BSS
@@ -5047,6 +5049,7 @@ weak_finish ()
 /* Remove NAME from the pending list of weak symbols.  This prevents
    the compiler from emitting multiple .weak directives which confuses
    some assemblers.  */
+#ifdef ASM_WEAKEN_LABEL
 static void
 remove_from_pending_weak_list (name)
      const char *name;
@@ -5066,6 +5069,7 @@ remove_from_pending_weak_list (name)
         p = &(t->next);
     }
 }
+#endif /* ASM_WEAKEN_LABEL */
 
 /* Emit an assembler directive to make the symbol for DECL an alias to
    the symbol for TARGET.  */
This page took 0.074367 seconds and 5 git commands to generate.