1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 4 Nov 2001 02:12:14 +0000 (02:12 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 4 Nov 2001 02:12:14 +0000 (02:12 +0000)
* 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
(ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
* c4x.h (INIT_SECTION_FUNCTION): Add prototype.
(ASM_FILE_START): Const-ify.
(ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
specifier warning.
* c4x.md: Don't use the 'U' integer suffix.
* clipper.md (clipper_movstr): Delete declaration.
* d30v-protos.h (d30v_move_2words): Const-ify.
(debug_stack_info): Add prototype.
* d30v.c: Include "integrate.h".
(d30v_function_arg_boundary, d30v_function_arg,
d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
signed/unsigned warnings.
(d30v_print_operand_memory_reference, d30v_move_2words):
Const-ify.
* d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
* fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
* fr30.md: Const-ify.
* h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
* i370.c (i370_label_scan, mvs_get_label): Make definition static.
(mvs_get_label_page): Hide unused static function.
* i860.c (current_function_original_name): Const-ify.
* i860/sysv3.h (current_function_original_name): Likewise.
* i860/sysv4.h (current_function_original_name): Likewise.
* i960.md: Add default case in switches.  Remove unused variable.
* i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
* m32r.md: Const-ify.
* m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
* m68hc11.c: Include "reload.h".
(static_chain_reg, print_options, m68hc11_asm_file_start):
Const-ify.
* m68hc11.md: Delete unused variable.  Const-ify.  Add parens
around & in comparison.
* mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
* mn10200.c (shift_mode): Remove trailing comma.
* mn10300-protos.h (output_tst): Const-ify.
* mn10300.c (output_tst): Likewise.
* pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
warnings.
* pa-protos.h (output_ascii): Use regular char *, not unsigned.
* pa.c (output_ascii): Likewise.
* pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
* pdp11.md (expand_unop): Delete declarations.
* pj-protos.h (pj_output_addsi3): Const-ify.
* pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
unique_src_operand): Add prototypes.
(pj_output_store_into_lval): Make definition static.
(pj_function_incoming_arg): Don't use unary plus.
(pj_output_addsi3): Const-ify.
* romp.md (get_symref): Delete declarations.
* v850-c.c (mark_current_function_as_interrupt): Don't return
value from void function.
* v850.c: Include "integrate.h".
* v850.h (ASM_OUTPUT_LABELREF): Const-ify.
* vax-protos.h (const_section): Add prototype.

From-SVN: r46755

37 files changed:
gcc/ChangeLog
gcc/config/1750a/1750a.h
gcc/config/c4x/c4x.h
gcc/config/c4x/c4x.md
gcc/config/clipper/clipper.md
gcc/config/d30v/d30v-protos.h
gcc/config/d30v/d30v.c
gcc/config/d30v/d30v.h
gcc/config/fr30/fr30.c
gcc/config/fr30/fr30.md
gcc/config/h8300/h8300.h
gcc/config/i370/i370.c
gcc/config/i860/i860.c
gcc/config/i860/sysv3.h
gcc/config/i860/sysv4.h
gcc/config/i960/i960.md
gcc/config/i960/vx960-coff.h
gcc/config/m32r/m32r.md
gcc/config/m68hc11/m68hc11-protos.h
gcc/config/m68hc11/m68hc11.c
gcc/config/m68hc11/m68hc11.md
gcc/config/mcore/mcore.h
gcc/config/mn10200/mn10200.c
gcc/config/mn10300/mn10300-protos.h
gcc/config/mn10300/mn10300.c
gcc/config/pa/long_double.h
gcc/config/pa/pa-protos.h
gcc/config/pa/pa.c
gcc/config/pa/som.h
gcc/config/pdp11/pdp11.md
gcc/config/pj/pj-protos.h
gcc/config/pj/pj.c
gcc/config/romp/romp.md
gcc/config/v850/v850-c.c
gcc/config/v850/v850.c
gcc/config/v850/v850.h
gcc/config/vax/vax-protos.h

index 4f20f30..508e94a 100644 (file)
@@ -1,3 +1,63 @@
+2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
+       (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
+       * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
+       (ASM_FILE_START): Const-ify.
+       (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
+       specifier warning.
+       * c4x.md: Don't use the 'U' integer suffix.
+       * clipper.md (clipper_movstr): Delete declaration.
+       * d30v-protos.h (d30v_move_2words): Const-ify.
+       (debug_stack_info): Add prototype.
+       * d30v.c: Include "integrate.h".
+       (d30v_function_arg_boundary, d30v_function_arg,
+       d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
+       signed/unsigned warnings.
+       (d30v_print_operand_memory_reference, d30v_move_2words):
+       Const-ify.
+       * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
+       * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
+       * fr30.md: Const-ify.
+       * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
+       * i370.c (i370_label_scan, mvs_get_label): Make definition static.
+       (mvs_get_label_page): Hide unused static function.
+       * i860.c (current_function_original_name): Const-ify.
+       * i860/sysv3.h (current_function_original_name): Likewise.
+       * i860/sysv4.h (current_function_original_name): Likewise.
+       * i960.md: Add default case in switches.  Remove unused variable.
+       * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
+       * m32r.md: Const-ify.
+       * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
+       * m68hc11.c: Include "reload.h".
+       (static_chain_reg, print_options, m68hc11_asm_file_start):
+       Const-ify.
+       * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
+       around & in comparison.
+       * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
+       * mn10200.c (shift_mode): Remove trailing comma.
+       * mn10300-protos.h (output_tst): Const-ify.
+       * mn10300.c (output_tst): Likewise.
+       * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
+       warnings.
+       * pa-protos.h (output_ascii): Use regular char *, not unsigned.
+       * pa.c (output_ascii): Likewise.
+       * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
+       * pdp11.md (expand_unop): Delete declarations.
+       * pj-protos.h (pj_output_addsi3): Const-ify.
+       * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
+       pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
+       unique_src_operand): Add prototypes.
+       (pj_output_store_into_lval): Make definition static.
+       (pj_function_incoming_arg): Don't use unary plus.
+       (pj_output_addsi3): Const-ify.
+       * romp.md (get_symref): Delete declarations.
+       * v850-c.c (mark_current_function_as_interrupt): Don't return
+       value from void function.
+       * v850.c: Include "integrate.h".
+       * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
+       * vax-protos.h (const_section): Add prototype.
+
 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
 
         * machmode.def: Add documentation for the seventh argument in
index 07af479..e9e51e9 100644 (file)
@@ -917,6 +917,7 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA
 #define EXTRA_SECTIONS  in_readonly_data
 
 #define EXTRA_SECTION_FUNCTIONS                \
+    extern void const_section PARAMS ((void));                 \
     void const_section()                                       \
     {                                                          \
        fprintf(asm_out_file,"\tkonst\n");                      \
@@ -1105,7 +1106,7 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA
        if (label_pending)                                              \
           label_pending = 0;                                           \
        datalbl[datalbl_ndx].size += LEN;                               \
-       for (i = 0; i < LEN; i++) {                                     \
+       for (i = 0; i < (int) LEN; i++) {                               \
          if ((i % 15) == 0) {                                          \
            if (i != 0)                                                 \
              fprintf(FILE,"\n");                                       \
index 202b4c0..8b5025c 100644 (file)
@@ -1984,6 +1984,7 @@ if (REG_P (OP1) && ! REG_P (OP0))                 \
   FINI_SECTION_FUNCTION
 
 #define INIT_SECTION_FUNCTION                                  \
+extern void init_section PARAMS ((void));                      \
 void                                                           \
 init_section ()                                                        \
 {                                                              \
@@ -2096,8 +2097,8 @@ const_section ()                                                  \
     fprintf (FILE, "\t.file\t");                               \
     if (TARGET_TI)                                             \
       {                                                                \
-        char *p;                                               \
-        char *after_dir = main_input_filename;                 \
+        const char *p;                                         \
+        const char *after_dir = main_input_filename;           \
        for (p = main_input_filename; *p; p++)                  \
          if (*p == '/')                                        \
            after_dir = p + 1;                                  \
@@ -2122,7 +2123,7 @@ const_section ()                                                  \
     REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);            \
     REAL_VALUE_TO_DECIMAL (VALUE, "%20lf", str);       \
     if (sizeof (int) == sizeof (long))                 \
-      fprintf (FILE, "\t.word\t0%08xh\t; %s\n", l, str);\
+      fprintf (FILE, "\t.word\t0%08xh\t; %s\n", (int) l, str);\
     else                                               \
       fprintf (FILE, "\t.word\t0%08lxh\t; %s\n", l, str);\
   } while (0);
@@ -2144,7 +2145,7 @@ const_section ()                                                  \
     l[1] = (l[0] << 8) | ((l[1] >> 24) & 0xff);                \
     if (sizeof (int) == sizeof (long))                 \
       fprintf (FILE, "\t.word\t0%08xh\t; %s\n\t.word\t0%08xh\n", \
-               l[0], str, l[1]);                               \
+               (int) l[0], str, (int) l[1]);           \
     else                                                       \
       fprintf (FILE, "\t.word\t0%08lxh\t; %s\n\t.word\t0%08lxh\n", \
                l[0], str, l[1]);                               \
index d6493fe..c8aefa9 100644 (file)
    (use (label_ref (match_operand 4 "" "")))]
   ""
   "if (! TARGET_LOOP_UNSIGNED 
-       && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > (1U << 31))
+       && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > ((unsigned) 1 << 31))
      FAIL;
    if (INTVAL (operands[3]) > 1 || ! TARGET_RPTB)
      {
index 2d2a504..b6906fa 100644 (file)
   ""
   "*
 {
-  extern void clipper_movstr ();
   clipper_movstr (operands);
   return \"\";
 }"
index 0dfa8f1..8beaa7a 100644 (file)
@@ -126,12 +126,13 @@ extern rtx d30v_legitimize_address        PARAMS ((rtx, rtx,
                                                 enum machine_mode, int));
 extern int d30v_mode_dependent_address_p PARAMS ((rtx));
 extern rtx d30v_emit_comparison                PARAMS ((int, rtx, rtx, rtx));
-extern char *d30v_move_2words          PARAMS ((rtx *, rtx));
+extern const char *d30v_move_2words    PARAMS ((rtx *, rtx));
 extern int d30v_emit_cond_move         PARAMS ((rtx, rtx, rtx, rtx));
 extern void d30v_machine_dependent_reorg PARAMS ((rtx));
 extern rtx d30v_return_addr            PARAMS ((void));
 #endif
 extern void d30v_init_expanders                PARAMS ((void));
+extern void debug_stack_info           PARAMS ((d30v_stack_t *));
 
 \f
 /* External variables referenced */
index 5d3d7cb..83b7e0c 100644 (file)
@@ -38,6 +38,7 @@
 #include "except.h"
 #include "function.h"
 #include "toplev.h"
+#include "integrate.h"
 #include "ggc.h"
 #include "target.h"
 #include "target-def.h"
@@ -1952,7 +1953,7 @@ d30v_function_arg_boundary (mode, type)
 {
   int size = ((mode == BLKmode && type)
              ? int_size_in_bytes (type)
-             : GET_MODE_SIZE (mode));
+             : (int) GET_MODE_SIZE (mode));
 
   return (size > UNITS_PER_WORD) ? 2*UNITS_PER_WORD : UNITS_PER_WORD;
 }
@@ -1997,7 +1998,7 @@ d30v_function_arg (cum, mode, type, named, incoming)
 {
   int size = ((mode == BLKmode && type)
              ? int_size_in_bytes (type)
-             : GET_MODE_SIZE (mode));
+             : (int) GET_MODE_SIZE (mode));
   int adjust = (size > UNITS_PER_WORD && (*cum & 1) != 0);
   rtx ret;
 
@@ -2046,7 +2047,7 @@ d30v_function_arg_partial_nregs (cum, mode, type, named)
 {
   int bytes = ((mode == BLKmode)
               ? int_size_in_bytes (type)
-              : GET_MODE_SIZE (mode));
+              : (int) GET_MODE_SIZE (mode));
   int words = (bytes + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
   int adjust = (bytes > UNITS_PER_WORD && (*cum & 1) != 0);
   int arg_num = *cum + adjust;
@@ -2109,7 +2110,7 @@ d30v_function_arg_advance (cum, mode, type, named)
 {
   int bytes = ((mode == BLKmode)
               ? int_size_in_bytes (type)
-              : GET_MODE_SIZE (mode));
+              : (int) GET_MODE_SIZE (mode));
   int words = D30V_ALIGN (bytes, UNITS_PER_WORD) / UNITS_PER_WORD;
   int adjust = (bytes > UNITS_PER_WORD && (*cum & 1) != 0);
 
@@ -2719,7 +2720,7 @@ d30v_print_operand_memory_reference (stream, x)
 
   else
     {
-      char *suffix = "";
+      const char *suffix = "";
       int offset0  = 0;
 
       if (GET_CODE (x0) == SUBREG)
@@ -3366,7 +3367,7 @@ d30v_emit_comparison (test_int, result, arg1, arg2)
 /* Return appropriate code to move 2 words.  Since DImode registers must start
    on even register numbers, there is no possibility of overlap.  */
 
-char *
+const char *
 d30v_move_2words (operands, insn)
      rtx operands[];
      rtx insn;
index 783455f..841105d 100644 (file)
@@ -1534,7 +1534,7 @@ extern enum reg_class regno_reg_class[];
        'g', 'i', 'm', 'n', 'o', 'p', 'r', 's' */
 
 extern enum reg_class reg_class_from_letter[];
-#define REG_CLASS_FROM_LETTER(CHAR) reg_class_from_letter[ CHAR ]
+#define REG_CLASS_FROM_LETTER(CHAR) reg_class_from_letter[(unsigned char)(CHAR)]
 
 /* A C expression which is nonzero if register number NUM is suitable for use
    as a base register in operand addresses.  It may be either a suitable hard
index 275efcd..1a6cb31 100644 (file)
@@ -118,6 +118,9 @@ static struct fr30_frame_info       current_frame_info;
 /* Zero structure to initialize current_frame_info.  */
 static struct fr30_frame_info  zero_frame_info;
 
+static rtx fr30_pass_by_reference PARAMS ((tree, tree));
+static rtx fr30_pass_by_value PARAMS ((tree, tree));
+
 #define FRAME_POINTER_MASK     (1 << (FRAME_POINTER_REGNUM))
 #define RETURN_POINTER_MASK    (1 << (RETURN_POINTER_REGNUM))
 
index 18621e4..6bdfa48 100644 (file)
   ""
   "*
   {
-  char *          ldi_instr;
+  const char *    ldi_instr;
   const char *    tmp_reg;
   static char     buffer[100];
   REAL_VALUE_TYPE d;
       {
         static char   buffer [100];
        const char *  tmp_reg; 
-       char *        ldi_insn;
+       const char *  ldi_insn;
        
         tmp_reg = reg_names [COMPILER_SCRATCH_REGISTER];
        
       {
         static char   buffer [100];
        const char *  tmp_reg; 
-       char *        ldi_insn;
+       const char *  ldi_insn;
        
         tmp_reg = reg_names [COMPILER_SCRATCH_REGISTER];
        
       {
         static char   buffer [100];
        const char *  tmp_reg; 
-       char *        ldi_insn;
+       const char *  ldi_insn;
        
         tmp_reg = reg_names [COMPILER_SCRATCH_REGISTER];
 
index 1f2e077..b7802dc 100644 (file)
@@ -1104,6 +1104,7 @@ struct cum_arg
 #define EXTRA_SECTIONS in_readonly_data
 
 #define EXTRA_SECTION_FUNCTIONS                                                \
+extern void readonly_data PARAMS ((void));                             \
 void                                                                   \
 readonly_data ()                                                       \
 {                                                                      \
index 1547da2..bbdcfa6 100644 (file)
@@ -411,7 +411,7 @@ i370_short_branch (insn)
        if (addr > lp -> label_last_ref) lp->label_last_ref = addr;     \
 }
 
-void 
+static void 
 i370_label_scan () 
 {
    rtx insn;
@@ -590,7 +590,7 @@ check_label_emit ()
    allocated from memory.
    ID is the label number of the label being added to the list.  */
 
-label_node_t *
+static label_node_t *
 mvs_get_label (id)
      int id;
 {
@@ -702,6 +702,7 @@ mvs_check_label (id)
 /* Get the page on which the label sits.  This will be used to 
    determine is a register reload is really needed.  */
 
+#if 0
 int
 mvs_get_label_page(int id)
 {
@@ -714,6 +715,7 @@ mvs_get_label_page(int id)
     }
   return -1;
 }
+#endif
 
 /* The label list for the current page freed by linking the list onto the free
    label element chain.  */
index 26a82f1..5b70d5a 100644 (file)
@@ -1663,7 +1663,7 @@ sfmode_constant_to_ulong (x)
 
 extern char call_used_regs[];
 
-char *current_function_original_name;
+const char *current_function_original_name;
 
 static int must_preserve_r1;
 static unsigned must_preserve_bytes;
index 5380aa2..6f82d6e 100644 (file)
@@ -53,7 +53,7 @@ Boston, MA 02111-1307, USA.  */
 /* Output the special word the System V SDB wants to see just before
    the first word of each function's prologue code.  */
 
-extern char *current_function_original_name;
+extern const char *current_function_original_name;
 
 /* This special macro is used to output a magic word just before the
    first word of each function.  On some versions of UNIX running on
index c92c2a9..0b54e3a 100644 (file)
@@ -119,7 +119,7 @@ Boston, MA 02111-1307, USA.  */
 /* Output the special word the svr4 SDB wants to see just before
    the first word of each function's prologue code.  */
 
-extern char *current_function_original_name;
+extern const char *current_function_original_name;
 
 /* This special macro is used to output a magic word just before the
    first word of each function.  On some versions of UNIX running on
index 68e8fd3..80e4efa 100644 (file)
       if (operands[1] == const0_rtx)
        return \"st     g14,%0\";
       return \"st      %1,%0\";      
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,address,load,store")
       return \"ld      %1,%0\";
     case 3:
       return \"st      %1,%0\";      
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,address,load,store")
       if (operands[1] == const0_rtx)
        return \"stos   g14,%0\";
       return \"stos    %1,%0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,misc,load,store")
       return \"ldos    %1,%0\";
     case 3:
       return \"stos    %1,%0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,misc,load,store")
       if (operands[1] == const0_rtx)
        return \"stob   g14,%0\";
       return \"stob    %1,%0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,misc,load,store")
       return \"ldob    %1,%0\";
     case 3:
       return \"stob    %1,%0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,misc,load,store")
       return i960_output_ldconst (operands[0], operands[1]);
     case 5:
        return i960_output_move_double_zero (operands[0]);
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,move,load,load,store,store")])
       return i960_output_move_double (operands[0], operands[1]);
     case 2:
       return i960_output_ldconst (operands[0], operands[1]);
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,move,load,load,store")])
       return i960_output_ldconst (operands[0], operands[1]);
     case 5:
       return i960_output_move_quad_zero (operands[0]);
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,move,load,load,store,store")])
       return i960_output_move_quad (operands[0], operands[1]);
     case 2:
       return i960_output_ldconst (operands[0], operands[1]);
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,move,load,load,store")])
     case 5:
       operands[1] = adjust_address (operands[0], VOIDmode, 4);
       return \"st      g14,%0\;st      g14,%1\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,move,load,fpload,fpstore,fpstore")])
       return \"ldl     %1,%0\";
     case 4:
       return \"stl     %1,%0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,move,load,fpload,fpstore")])
       if (operands[1] == CONST0_RTX (SFmode))
        return \"st     g14,%0\";
       return \"st      %1,%0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,move,load,fpload,fpstore")])
       return \"ld      %1,%0\";
     case 4:
       return \"st      %1,%0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,move,load,fpload,fpstore")])
       return \"ldt     %1,%0\";
     case 4:
       return \"stt     %1,%0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "move,move,load,fpload,fpstore")])
   rtx chain = operands[0];
   rtx handler = operands[1];
   rtx stack = operands[2];
-  rtx label = operands[3];
 
   /* We must restore the stack pointer, frame pointer, previous frame
      pointer and the return instruction pointer.  Since the ret
index 157ee26..7635258 100644 (file)
@@ -21,6 +21,7 @@ Boston, MA 02111-1307, USA.  */
 /* This file just exists to give specs for the 960 running on VxWorks.
    VxWorks does all the library stuff itself.  */
 
+#undef MULTILIB_DEFAULTS
 #define MULTILIB_DEFAULTS { "msoft-float" }
 
 #undef LIB_SPEC
index e692b2c..5b8bac9 100644 (file)
   ""
   "*
 {
-  char *br,*invbr;
+  const char *br,*invbr;
   char asmtext[40];
 
   switch (GET_CODE (operands[1]))
   ""
   "*
 {
-  char *br,*invbr;
+  const char *br,*invbr;
   char asmtext[40];
 
   switch (GET_CODE (operands[1]))
index af265e8..e775234 100644 (file)
@@ -34,7 +34,7 @@ extern int m68hc11_function_block_profiler PARAMS((FILE*,int));
 
 extern int m68hc11_block_profiler PARAMS((FILE*,int));
 
-extern void m68hc11_asm_file_start PARAMS((FILE*, char*));
+extern void m68hc11_asm_file_start PARAMS((FILE*, const char*));
 
 #ifdef TREE_CODE
 extern void m68hc11_function_arg_advance PARAMS((CUMULATIVE_ARGS*,
index b60ccc2..00d27e0 100644 (file)
@@ -52,6 +52,7 @@ Note:
 #include "basic-block.h"
 #include "function.h"
 #include "ggc.h"
+#include "reload.h"
 #include "target.h"
 #include "target-def.h"
 
@@ -1095,7 +1096,7 @@ m68hc11_initialize_trampoline (tramp, fnaddr, cxt)
      rtx fnaddr;
      rtx cxt;
 {
-  char *static_chain_reg = reg_names[STATIC_CHAIN_REGNUM];
+  const char *static_chain_reg = reg_names[STATIC_CHAIN_REGNUM];
 
   /* Skip the '*'.  */
   if (*static_chain_reg == '*')
@@ -5216,7 +5217,7 @@ static void
 print_options (out)
      FILE *out;
 {
-  char *a_time;
+  const char *a_time;
   long c_time;
   int i;
   extern int save_argc;
@@ -5246,7 +5247,7 @@ print_options (out)
 void
 m68hc11_asm_file_start (out, main_file)
      FILE *out;
-     char *main_file;
+     const char *main_file;
 {
   fprintf (out, ";;;-----------------------------------------\n");
   fprintf (out, ";;; Start MC68HC11 gcc assembly output\n");
index c1b80f5..10886d2 100644 (file)
   ""
  "*
 {
-  rtx ops[2];
-
   if (A_REG_P (operands[0]))
     return \"#\";
 
   "*
 {
   rtx   ops[3];
-  char* add_insn;
-  char* inc_insn;
-  char* incb_mem;
-  char* inch_mem;
+  const char* add_insn;
+  const char* inc_insn;
+  const char* incb_mem;
+  const char* inch_mem;
   HOST_WIDE_INT val;
 
   if (which_alternative > 2)
     output_asm_insn (\"ldd\\t%2\", operands);
   if ((INTVAL (operands[1]) & 0x0ff00) == 0x100)
     output_asm_insn (\"inca\", operands);
-  else if (INTVAL (operands[1]) & 0x0ff00 == 0xff00)
+  else if ((INTVAL (operands[1]) & 0x0ff00) == 0xff00)
     output_asm_insn (\"deca\", operands);
   else if (INTVAL (operands[1]) != 0)
     output_asm_insn (\"adda\\t%h1\", operands);
index d7b611b..1fd73a8 100644 (file)
@@ -1111,6 +1111,7 @@ switch_to_section (section, decl)                         \
 }
 
 /* Switch into a generic section.  */
+#undef TARGET_ASM_NAMED_SECTION
 #define TARGET_ASM_NAMED_SECTION  mcore_asm_named_section
 
 /* This is how to output an insn to push a register on the stack.
index 45432ac..5f286e5 100644 (file)
@@ -1029,7 +1029,7 @@ enum shift_type
 
 enum shift_mode
   {
-    HIshift
+    HIshift
   };
 
 /* For single bit shift insns, record assembler and what bits of the
index ee4a443..abd17ed 100644 (file)
@@ -34,7 +34,7 @@ extern void mn10300_gen_multiple_store PARAMS ((int));
 extern void notice_update_cc PARAMS ((rtx, rtx));
 extern enum reg_class secondary_reload_class PARAMS ((enum reg_class,
                                                      enum machine_mode, rtx));
-extern char *output_tst PARAMS ((rtx, rtx));
+extern const char *output_tst PARAMS ((rtx, rtx));
 extern int store_multiple_operation PARAMS ((rtx, enum machine_mode));
 extern int symbolic_operand PARAMS ((rtx, enum machine_mode));
 extern int call_address_operand PARAMS ((rtx, enum machine_mode));
index 66c8e8d..23fe80f 100644 (file)
@@ -1029,7 +1029,7 @@ function_arg_partial_nregs (cum, mode, type, named)
 }
 
 /* Output a tst insn.  */
-char *
+const char *
 output_tst (operand, insn)
      rtx operand, insn;
 {
index fa7a710..f8358cc 100644 (file)
@@ -24,10 +24,10 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_OUTPUT_LONG_DOUBLE(FILE,VALUE)                              \
 do { long value[4];                                                     \
      REAL_VALUE_TO_TARGET_LONG_DOUBLE ((VALUE), value);                 \
-     fprintf((FILE), "%s\t0x%x\n", "\t.word", value[0]);                \
-     fprintf((FILE), "%s\t0x%x\n", "\t.word", value[1]);                \
-     fprintf((FILE), "%s\t0x%x\n", "\t.word", value[2]);                \
-     fprintf((FILE), "%s\t0x%x\n", "\t.word", value[3]);                \
+     fprintf((FILE), "%s\t0x%lx\n", "\t.word", value[0]);                \
+     fprintf((FILE), "%s\t0x%lx\n", "\t.word", value[1]);                \
+     fprintf((FILE), "%s\t0x%lx\n", "\t.word", value[2]);                \
+     fprintf((FILE), "%s\t0x%lx\n", "\t.word", value[3]);                \
    } while (0)
 
 
index 03d4ee2..999579d 100644 (file)
@@ -133,7 +133,7 @@ extern struct rtx_def *hppa_builtin_saveregs PARAMS ((void));
 
 extern void output_deferred_plabels PARAMS ((FILE *));
 extern void override_options PARAMS ((void));
-extern void output_ascii PARAMS ((FILE *, const unsigned char *, int));
+extern void output_ascii PARAMS ((FILE *, const char *, int));
 extern int compute_frame_size PARAMS ((int, int *));
 extern int and_mask_p PARAMS ((unsigned HOST_WIDE_INT));
 extern int cint_ok_for_move PARAMS ((HOST_WIDE_INT));
index f715d08..8ae8617 100644 (file)
@@ -2488,7 +2488,7 @@ output_64bit_ior (operands)
 void
 output_ascii (file, p, size)
      FILE *file;
-     const unsigned char *p;
+     const char *p;
      int size;
 {
   int i;
index 863b4f7..c11a247 100644 (file)
@@ -285,6 +285,7 @@ do {  \
    works correctly).  */
 
 #define EXTRA_SECTION_FUNCTIONS                                                \
+extern void readonly_data PARAMS ((void));                             \
 void                                                                   \
 readonly_data ()                                                       \
 {                                                                      \
index bbc2b9b..13f8d02 100644 (file)
   ""
   "
 {
-  extern rtx expand_unop ();
   if (GET_CODE (operands[2]) == CONST_INT)
     operands[2] = GEN_INT (~INTVAL (operands[2]));
   else
   ""
   "
 {
-  extern rtx expand_unop ();
   if (GET_CODE (operands[2]) == CONST_INT)
     operands[2] = GEN_INT (~INTVAL (operands[2]));
   else
   ""
   "
 {
-  extern rtx expand_unop ();
   rtx op = operands[2];
   if (GET_CODE (op) == CONST_INT)
     operands[2] = GEN_INT (((1 << 8) - 1) & ~INTVAL (op));
index d26df65..9bec333 100644 (file)
@@ -34,7 +34,7 @@ extern int pj_unsigned_comparison_operator PARAMS ((rtx, enum machine_mode));
 extern rtx pj_workout_arg_words PARAMS ((rtx, rtx));
 extern void pj_machine_dependent_reorg PARAMS ((rtx));
 extern void pj_print_operand PARAMS ((FILE * stream, rtx x, int code));
-extern char *pj_output_addsi3 PARAMS ((rtx * operands));
+extern const char *pj_output_addsi3 PARAMS ((rtx * operands));
 
 #ifdef TREE_CODE
 extern rtx pj_expand_builtin_va_arg PARAMS ((tree valist, tree type));
index 6536627..8e64883 100644 (file)
@@ -110,6 +110,14 @@ enum machine_mode pj_cmp_mode;
 
 static void pj_output_rval PARAMS ((rtx, enum machine_mode, rtx));
 static void pj_output_store_into_lval PARAMS ((enum machine_mode mode, rtx op));
+static void pj_output_push_int PARAMS ((int));
+static void pj_output_load PARAMS ((enum machine_mode, int));
+static void pj_output_inc PARAMS ((rtx, int));
+static void pj_output_cnv_op PARAMS ((enum insn_code, rtx));
+static char mode_to_char PARAMS ((enum machine_mode));
+static void pj_output_varidx PARAMS ((enum machine_mode, int, int));
+static void pj_print_cond PARAMS ((enum rtx_code));
+static rtx *unique_src_operand PARAMS ((rtx *, rtx));
 
 /* These vectors turn a register number into an offset from the vars
    pointer register.  */
@@ -568,7 +576,7 @@ pj_output_rval (op, mode, outer_op)
 
 /* Store the top of stack into the lval operand OP.  */
 
-void
+static void
 pj_output_store_into_lval (mode, op)
      enum machine_mode mode;
      rtx op;
@@ -829,7 +837,7 @@ pj_function_incoming_arg (cum, mode, passed_type, named_arg)
       int i;
       if (mode == DImode || mode == DFmode)
        {
-         cum->arg_adjust[cum->total_words + 0] = +1;
+         cum->arg_adjust[cum->total_words + 0] = 1;
          cum->arg_adjust[cum->total_words + 1] = -1;
        }
       else
@@ -844,7 +852,7 @@ pj_function_incoming_arg (cum, mode, passed_type, named_arg)
 /* Output code to add two SImode values.  Deals carefully with the the common
    case of moving the optop.  */
 
-char *
+const char *
 pj_output_addsi3 (operands)
      rtx *operands;
 {
index 131e78c..010f009 100644 (file)
   operands[0] = XEXP (operands[0], 0);
   if (GET_CODE (operands[0]) == SYMBOL_REF)
     {
-      extern rtx get_symref ();
       char *real_fcnname
        = (char *) alloca (strlen (XSTR (operands[0], 0)) + 2);
 
   operands[1] = XEXP (operands[1], 0);
   if (GET_CODE (operands[1]) == SYMBOL_REF)
     {
-      extern rtx get_symref ();
       char *real_fcnname =
                (char *) alloca (strlen (XSTR (operands[1], 0)) + 2);
 
index 84aef1f..02092a3 100644 (file)
@@ -93,7 +93,7 @@ mark_current_function_as_interrupt ()
   if (current_function_decl ==  NULL_TREE)
     {
       warning ("Cannot set interrupt attribute: no current function");
-      return 0;
+      return;
     }
 
   name = get_identifier ("interrupt");
@@ -101,7 +101,7 @@ mark_current_function_as_interrupt ()
   if (name == NULL_TREE || TREE_CODE (name) != IDENTIFIER_NODE)
     {
       warning ("Cannot set interrupt attribute: no such identifier");
-      return 0;
+      return;
     }
   
   decl_attributes (&current_function_decl,
index ea83c15..de4ebbb 100644 (file)
@@ -39,6 +39,7 @@ Boston, MA 02111-1307, USA.  */
 #include "cpplib.h"
 #include "c-lex.h"
 #include "ggc.h"
+#include "integrate.h"
 #include "tm_p.h"
 #include "target.h"
 #include "target-def.h"
index dc71c7a..1636fd1 100644 (file)
@@ -1346,7 +1346,7 @@ do { char dstr[30];                                       \
 #undef ASM_OUTPUT_LABELREF
 #define ASM_OUTPUT_LABELREF(FILE, NAME)           \
   do {                                            \
-  char* real_name;                                \
+  const char* real_name;                          \
   STRIP_NAME_ENCODING (real_name, (NAME));        \
   asm_fprintf (FILE, "%U%s", real_name);          \
   } while (0)
index a149838..f836c1e 100644 (file)
@@ -36,3 +36,4 @@ extern void vms_check_external PARAMS ((tree, const char *, int));
 #endif /* TREE_CODE */
 
 extern void vms_flush_pending_externals PARAMS ((FILE *));
+extern void const_section PARAMS ((void));