Commit ab2877a3 by Kaveh R. Ghazi Committed by Kaveh Ghazi

arc.c (arc_init): Don't use ISO C style function definitions.

	* arc.c (arc_init): Don't use ISO C style function definitions.
	* arm.c (count_insns_for_constant, thumb_far_jump_used_p,
	arm_get_strip_length, arm_strip_name_encoding): Likewise.
	* avr.h (progmem_section): Likewise.
	* h8300.c h8300_asm_insn_count): Likewise.
	* m32r.c (init_idents): Likewise.
	* s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
	* sh.c (sh_cfun_interrupt_handler_p): Likewise.
	* xtensa.c (xtensa_build_va_list): Likewise.

From-SVN: r56209
parent e65e6212
2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* arc.c (arc_init): Don't use ISO C style function definitions.
* arm.c (count_insns_for_constant, thumb_far_jump_used_p,
arm_get_strip_length, arm_strip_name_encoding): Likewise.
* avr.h (progmem_section): Likewise.
* h8300.c h8300_asm_insn_count): Likewise.
* m32r.c (init_idents): Likewise.
* s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
* sh.c (sh_cfun_interrupt_handler_p): Likewise.
* xtensa.c (xtensa_build_va_list): Likewise.
2002-08-11 Neil Booth <neil@daikokuya.co.uk> 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
* c-common.h (enum c_language_kind): Emphasize that clk_c is 0. * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
......
...@@ -116,7 +116,7 @@ struct gcc_target targetm = TARGET_INITIALIZER; ...@@ -116,7 +116,7 @@ struct gcc_target targetm = TARGET_INITIALIZER;
/* Called by OVERRIDE_OPTIONS to initialize various things. */ /* Called by OVERRIDE_OPTIONS to initialize various things. */
void void
arc_init (void) arc_init ()
{ {
char *tmp; char *tmp;
......
...@@ -115,6 +115,8 @@ static void thumb_output_function_prologue PARAMS ((FILE *, Hint)); ...@@ -115,6 +115,8 @@ static void thumb_output_function_prologue PARAMS ((FILE *, Hint));
static int arm_comp_type_attributes PARAMS ((tree, tree)); static int arm_comp_type_attributes PARAMS ((tree, tree));
static void arm_set_default_type_attributes PARAMS ((tree)); static void arm_set_default_type_attributes PARAMS ((tree));
static int arm_adjust_cost PARAMS ((rtx, rtx, rtx, int)); static int arm_adjust_cost PARAMS ((rtx, rtx, rtx, int));
static int count_insns_for_constant PARAMS ((HOST_WIDE_INT, int));
static int arm_get_strip_length PARAMS ((int));
#ifdef OBJECT_FORMAT_ELF #ifdef OBJECT_FORMAT_ELF
static void arm_elf_asm_named_section PARAMS ((const char *, unsigned int)); static void arm_elf_asm_named_section PARAMS ((const char *, unsigned int));
#endif #endif
...@@ -1068,7 +1070,9 @@ arm_split_constant (code, mode, val, target, source, subtargets) ...@@ -1068,7 +1070,9 @@ arm_split_constant (code, mode, val, target, source, subtargets)
} }
static int static int
count_insns_for_constant (HOST_WIDE_INT remainder, int i) count_insns_for_constant (remainder, i)
HOST_WIDE_INT remainder;
int i;
{ {
HOST_WIDE_INT temp1; HOST_WIDE_INT temp1;
int num_insns = 0; int num_insns = 0;
...@@ -9811,7 +9815,8 @@ thumb_shiftable_const (val) ...@@ -9811,7 +9815,8 @@ thumb_shiftable_const (val)
or might contain a far jump. */ or might contain a far jump. */
int int
thumb_far_jump_used_p (int in_prologue) thumb_far_jump_used_p (in_prologue)
int in_prologue;
{ {
rtx insn; rtx insn;
...@@ -10764,7 +10769,8 @@ thumb_reload_in_hi (operands) ...@@ -10764,7 +10769,8 @@ thumb_reload_in_hi (operands)
that starts with the character 'c'. */ that starts with the character 'c'. */
static int static int
arm_get_strip_length (char c) arm_get_strip_length (c)
int c;
{ {
switch (c) switch (c)
{ {
...@@ -10777,7 +10783,8 @@ arm_get_strip_length (char c) ...@@ -10777,7 +10783,8 @@ arm_get_strip_length (char c)
and all prefix encodings stripped from it. */ and all prefix encodings stripped from it. */
const char * const char *
arm_strip_name_encoding (const char * name) arm_strip_name_encoding (name)
const char * name;
{ {
int skip; int skip;
......
...@@ -1754,7 +1754,7 @@ do { \ ...@@ -1754,7 +1754,7 @@ do { \
#define EXTRA_SECTION_FUNCTIONS \ #define EXTRA_SECTION_FUNCTIONS \
\ \
void \ void \
progmem_section (void) \ progmem_section () \
{ \ { \
if (in_section != in_progmem) \ if (in_section != in_progmem) \
{ \ { \
......
...@@ -2942,7 +2942,8 @@ output_a_shift (operands) ...@@ -2942,7 +2942,8 @@ output_a_shift (operands)
} }
static unsigned int static unsigned int
h8300_asm_insn_count (const char *template) h8300_asm_insn_count (template)
const char *template;
{ {
unsigned int count = 1; unsigned int count = 1;
......
...@@ -77,6 +77,7 @@ static int m32r_issue_rate PARAMS ((void)); ...@@ -77,6 +77,7 @@ static int m32r_issue_rate PARAMS ((void));
static void m32r_select_section PARAMS ((tree, int, unsigned HOST_WIDE_INT)); static void m32r_select_section PARAMS ((tree, int, unsigned HOST_WIDE_INT));
static void m32r_encode_section_info PARAMS ((tree, int)); static void m32r_encode_section_info PARAMS ((tree, int));
static const char *m32r_strip_name_encoding PARAMS ((const char *)); static const char *m32r_strip_name_encoding PARAMS ((const char *));
static void init_idents PARAMS ((void));
/* Initialize the GCC target structure. */ /* Initialize the GCC target structure. */
#undef TARGET_ATTRIBUTE_TABLE #undef TARGET_ATTRIBUTE_TABLE
...@@ -271,7 +272,7 @@ static tree large_ident1; ...@@ -271,7 +272,7 @@ static tree large_ident1;
static tree large_ident2; static tree large_ident2;
static void static void
init_idents PARAMS ((void)) init_idents ()
{ {
if (small_ident1 == 0) if (small_ident1 == 0)
{ {
......
...@@ -2401,7 +2401,7 @@ s390_adjust_priority (insn, priority) ...@@ -2401,7 +2401,7 @@ s390_adjust_priority (insn, priority)
/* Split all branches that exceed the maximum distance. */ /* Split all branches that exceed the maximum distance. */
static void static void
s390_split_branches (void) s390_split_branches ()
{ {
rtx temp_reg = gen_rtx_REG (Pmode, RETURN_REGNUM); rtx temp_reg = gen_rtx_REG (Pmode, RETURN_REGNUM);
rtx insn, pat, label, target, jump, tmp; rtx insn, pat, label, target, jump, tmp;
...@@ -2819,7 +2819,7 @@ int s390_pool_overflow = 0; ...@@ -2819,7 +2819,7 @@ int s390_pool_overflow = 0;
#define S390_POOL_CHUNK_MAX 0xe00 #define S390_POOL_CHUNK_MAX 0xe00
static void static void
s390_chunkify_pool (void) s390_chunkify_pool ()
{ {
rtx base_reg = gen_rtx_REG (Pmode, rtx base_reg = gen_rtx_REG (Pmode,
TARGET_64BIT? BASE_REGISTER : RETURN_REGNUM); TARGET_64BIT? BASE_REGISTER : RETURN_REGNUM);
......
...@@ -5757,7 +5757,7 @@ sh_handle_trap_exit_attribute (node, name, args, flags, no_add_attrs) ...@@ -5757,7 +5757,7 @@ sh_handle_trap_exit_attribute (node, name, args, flags, no_add_attrs)
} }
int int
sh_cfun_interrupt_handler_p (void) sh_cfun_interrupt_handler_p ()
{ {
return (lookup_attribute ("interrupt_handler", return (lookup_attribute ("interrupt_handler",
DECL_ATTRIBUTES (current_function_decl)) DECL_ATTRIBUTES (current_function_decl))
......
...@@ -2322,7 +2322,7 @@ xtensa_return_addr (count, frame) ...@@ -2322,7 +2322,7 @@ xtensa_return_addr (count, frame)
argument word N for N >= 6. */ argument word N for N >= 6. */
tree tree
xtensa_build_va_list (void) xtensa_build_va_list ()
{ {
tree f_stk, f_reg, f_ndx, record, type_decl; tree f_stk, f_reg, f_ndx, record, type_decl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment