sparc.c (sparc_emit_float_lib_cmp): Call emit_library_call with LCT_NORMAL.
authorDavid S. Miller <davem@redhat.com>
Mon, 15 Apr 2002 10:11:16 +0000 (03:11 -0700)
committerDavid S. Miller <davem@gcc.gnu.org>
Mon, 15 Apr 2002 10:11:16 +0000 (03:11 -0700)
2002-04-15  David S. Miller  <davem@redhat.com>

* config/sparc/sparc.c (sparc_emit_float_lib_cmp):
Call emit_library_call with LCT_NORMAL.
(sparc_initialize_trampoline): Use LCT_foo instead of
magic constant in emit_library_call invocations.
(sparc64_initialize_trampoline): Likewise.
(sparc_profile_hook): Likewise.
* config/sparc/sparc.md: Likewise.

* config/sparc/sparc.c (sparc_extra_constraint_check):
Fix type of argument 'c'.
* config/sparc/sparc-protos.h (sparc_extra_constraint_check):
Likewise.

From-SVN: r52321

gcc/ChangeLog
gcc/config/sparc/sparc-protos.h
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.md

index 8ff923ca9fd098aa1f6e7c161c77ab8c11d2fcef..299fff47b0ad1f2d13ac04defbf6f2a886969aae 100644 (file)
@@ -1,3 +1,18 @@
+2002-04-15  David S. Miller  <davem@redhat.com>
+
+       * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
+       Call emit_library_call with LCT_NORMAL.
+       (sparc_initialize_trampoline): Use LCT_foo instead of
+       magic constant in emit_library_call invocations.
+       (sparc64_initialize_trampoline): Likewise.
+       (sparc_profile_hook): Likewise.
+       * config/sparc/sparc.md: Likewise.
+
+       * config/sparc/sparc.c (sparc_extra_constraint_check):
+       Fix type of argument 'c'.
+       * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
+       Likewise.
+
 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
 
        * diagnostic.h (output_buffer_state): Redefine.
index 27359df462f4ab60a9883df9b9face4401b5d62c..17f22f463e1707a04d50acf413ce42def6569e37 100644 (file)
@@ -117,7 +117,7 @@ extern char *sparc_v8plus_shift PARAMS ((rtx *, rtx, const char *));
    32 bits of REG are 0 before INSN.  */   
 extern int sparc_check_64 PARAMS ((rtx, rtx));
 extern rtx gen_df_reg PARAMS ((rtx, int));
-extern int sparc_extra_constraint_check PARAMS ((rtx, char, int));
+extern int sparc_extra_constraint_check PARAMS ((rtx, int, int));
 #endif /* RTX_CODE */
 
 #endif /* __SPARC_PROTOS_H__ */
index f7c28a70dc15132d53555f4e0f55726b01a3cbe2..ccfbc902f0bd35a027a55b57a01c743b1d5f6e3d 100644 (file)
@@ -5374,7 +5374,7 @@ sparc_emit_float_lib_cmp (x, y, comparison)
       else
        slot1 = y;
 
-      emit_library_call (gen_rtx_SYMBOL_REF (Pmode, qpfunc), 1,
+      emit_library_call (gen_rtx_SYMBOL_REF (Pmode, qpfunc), LCT_NORMAL,
                         DImode, 2,
                         XEXP (slot0, 0), Pmode,
                         XEXP (slot1, 0), Pmode);
@@ -5383,7 +5383,7 @@ sparc_emit_float_lib_cmp (x, y, comparison)
     }
   else
     {
-      emit_library_call (gen_rtx_SYMBOL_REF (Pmode, qpfunc), 1,
+      emit_library_call (gen_rtx_SYMBOL_REF (Pmode, qpfunc), LCT_NORMAL,
                         SImode, 2,
                         x, TFmode, y, TFmode);
 
@@ -6391,7 +6391,7 @@ sparc_initialize_trampoline (tramp, fnaddr, cxt)
    */
 #ifdef TRANSFER_FROM_TRAMPOLINE
   emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "__enable_execute_stack"),
-                     0, VOIDmode, 1, tramp, Pmode);
+                     LCT_NORMAL, VOIDmode, 1, tramp, Pmode);
 #endif
 
   emit_move_insn
@@ -6442,7 +6442,7 @@ sparc64_initialize_trampoline (tramp, fnaddr, cxt)
 {
 #ifdef TRANSFER_FROM_TRAMPOLINE
   emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "__enable_execute_stack"),
-                     0, VOIDmode, 1, tramp, Pmode);
+                     LCT_NORMAL, VOIDmode, 1, tramp, Pmode);
 #endif
 
   /*
@@ -8547,7 +8547,7 @@ sparc_profile_hook (labelno)
   lab = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (buf));
   fun = gen_rtx_SYMBOL_REF (Pmode, MCOUNT_FUNCTION);
 
-  emit_library_call (fun, 0, VOIDmode, 1, lab, Pmode);
+  emit_library_call (fun, LCT_NORMAL, VOIDmode, 1, lab, Pmode);
 }
 \f
 /* Mark ARG, which is really a struct ultrasparc_pipline_state *, for
@@ -8613,7 +8613,7 @@ sparc_elf_asm_named_section (name, flags)
 int
 sparc_extra_constraint_check (op, c, strict)
      rtx op;
-     char c;
+     int c;
      int strict;
 {
   int reload_ok_mem;
index 3ce7988e115ab6a486fc4d00cca17449ecd8fb2c..cc362dcb44fe933040fac1bc6ea0e336591c1cc6 100644 (file)
       else
        slot0 = operands[0];
 
-      emit_library_call (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_stoq\"), 0,
+      emit_library_call (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_stoq\"), LCT_NORMAL,
                         VOIDmode, 2,
                         XEXP (slot0, 0), Pmode,
                         operands[1], SFmode);
       else
        slot0 = operands[0];
 
-      emit_library_call (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_dtoq\"), 0,
+      emit_library_call (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_dtoq\"), LCT_NORMAL,
                         VOIDmode, 2,
                         XEXP (slot0, 0), Pmode,
                         operands[1], DFmode);
        slot0 = operands[1];
 
       emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_qtos\"),
-                              operands[0], 0, SFmode, 1,
+                              operands[0], LCT_NORMAL, SFmode, 1,
                               XEXP (slot0, 0), Pmode);
       DONE;
     }
        slot0 = operands[1];
 
       emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_qtod\"),
-                              operands[0], 0, DFmode, 1,
+                              operands[0], LCT_NORMAL, DFmode, 1,
                               XEXP (slot0, 0), Pmode);
       DONE;
     }
        slot0 = operands[1];
 
       emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_qtoi\"),
-                              operands[0], 0, SImode, 1,
+                              operands[0], LCT_NORMAL, SImode, 1,
                               XEXP (slot0, 0), Pmode);
       DONE;
     }
     slot0 = operands[1];
 
   emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_qtoui\"),
-                          operands[0], 0, SImode, 1,
+                          operands[0], LCT_NORMAL, SImode, 1,
                           XEXP (slot0, 0), Pmode);
   DONE;
 }")
        slot0 = operands[1];
 
       emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_qtox\"),
-                              operands[0], 0, DImode, 1,
+                              operands[0], LCT_NORMAL, DImode, 1,
                               XEXP (slot0, 0), Pmode);
       DONE;
     }
     slot0 = operands[1];
 
   emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"_Qp_qtoux\"),
-                          operands[0], 0, DImode, 1,
+                          operands[0], LCT_NORMAL, DImode, 1,
                           XEXP (slot0, 0), Pmode);
   DONE;
 }")