aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/d30v/d30v.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-11-04 02:12:14 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-11-04 02:12:14 +0000
commit1943c2c1ad758b5fe93a09acf3083c55b836a747 (patch)
treeef188b8913b20fe3ed8ab98dfb164f11cafa7d74 /gcc/config/d30v/d30v.c
parenta52706f2763cf68a7e15987d16fbfd59c6274065 (diff)
downloadgcc-1943c2c1ad758b5fe93a09acf3083c55b836a747.zip
gcc-1943c2c1ad758b5fe93a09acf3083c55b836a747.tar.gz
gcc-1943c2c1ad758b5fe93a09acf3083c55b836a747.tar.bz2
1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
* 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
Diffstat (limited to 'gcc/config/d30v/d30v.c')
-rw-r--r--gcc/config/d30v/d30v.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/config/d30v/d30v.c b/gcc/config/d30v/d30v.c
index 5d3d7cb..83b7e0c 100644
--- a/gcc/config/d30v/d30v.c
+++ b/gcc/config/d30v/d30v.c
@@ -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;