summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-11 18:48:52 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-11 18:48:52 +0000
commit908e141ddf5a0ce101f5cb3bd9d5623cb22c457d (patch)
tree211d57614adba530ea45b8f7a9e688250f9f7175
parent17dd17662ba95a0cbb4ec35327095c08290da99b (diff)
downloadgcc-908e141ddf5a0ce101f5cb3bd9d5623cb22c457d.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56209 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog12
-rw-r--r--gcc/config/arc/arc.c2
-rw-r--r--gcc/config/arm/arm.c15
-rw-r--r--gcc/config/avr/avr.h2
-rw-r--r--gcc/config/h8300/h8300.c3
-rw-r--r--gcc/config/m32r/m32r.c3
-rw-r--r--gcc/config/s390/s390.c4
-rw-r--r--gcc/config/sh/sh.c2
-rw-r--r--gcc/config/xtensa/xtensa.c2
9 files changed, 33 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b70668754f0..a60f193f95e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,15 @@
+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>
* c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index f1efc05a1b2..a733340fb98 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -116,7 +116,7 @@ struct gcc_target targetm = TARGET_INITIALIZER;
/* Called by OVERRIDE_OPTIONS to initialize various things. */
void
-arc_init (void)
+arc_init ()
{
char *tmp;
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index eb0481d2fe8..5ff47c24383 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -115,6 +115,8 @@ static void thumb_output_function_prologue PARAMS ((FILE *, Hint));
static int arm_comp_type_attributes PARAMS ((tree, tree));
static void arm_set_default_type_attributes PARAMS ((tree));
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
static void arm_elf_asm_named_section PARAMS ((const char *, unsigned int));
#endif
@@ -1068,7 +1070,9 @@ arm_split_constant (code, mode, val, target, source, subtargets)
}
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;
int num_insns = 0;
@@ -9811,7 +9815,8 @@ thumb_shiftable_const (val)
or might contain a far jump. */
int
-thumb_far_jump_used_p (int in_prologue)
+thumb_far_jump_used_p (in_prologue)
+ int in_prologue;
{
rtx insn;
@@ -10764,7 +10769,8 @@ thumb_reload_in_hi (operands)
that starts with the character 'c'. */
static int
-arm_get_strip_length (char c)
+arm_get_strip_length (c)
+ int c;
{
switch (c)
{
@@ -10777,7 +10783,8 @@ arm_get_strip_length (char c)
and all prefix encodings stripped from it. */
const char *
-arm_strip_name_encoding (const char * name)
+arm_strip_name_encoding (name)
+ const char * name;
{
int skip;
diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h
index 274d42700f9..cf62b8b71d2 100644
--- a/gcc/config/avr/avr.h
+++ b/gcc/config/avr/avr.h
@@ -1754,7 +1754,7 @@ do { \
#define EXTRA_SECTION_FUNCTIONS \
\
void \
-progmem_section (void) \
+progmem_section () \
{ \
if (in_section != in_progmem) \
{ \
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index 5406c19ab94..d79eba345b9 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -2942,7 +2942,8 @@ output_a_shift (operands)
}
static unsigned int
-h8300_asm_insn_count (const char *template)
+h8300_asm_insn_count (template)
+ const char *template;
{
unsigned int count = 1;
diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c
index df100dfd98e..c4814317a1d 100644
--- a/gcc/config/m32r/m32r.c
+++ b/gcc/config/m32r/m32r.c
@@ -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_encode_section_info PARAMS ((tree, int));
static const char *m32r_strip_name_encoding PARAMS ((const char *));
+static void init_idents PARAMS ((void));
/* Initialize the GCC target structure. */
#undef TARGET_ATTRIBUTE_TABLE
@@ -271,7 +272,7 @@ static tree large_ident1;
static tree large_ident2;
static void
-init_idents PARAMS ((void))
+init_idents ()
{
if (small_ident1 == 0)
{
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index 5a12ed9ec71..fa7cd685bbd 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -2401,7 +2401,7 @@ s390_adjust_priority (insn, priority)
/* Split all branches that exceed the maximum distance. */
static void
-s390_split_branches (void)
+s390_split_branches ()
{
rtx temp_reg = gen_rtx_REG (Pmode, RETURN_REGNUM);
rtx insn, pat, label, target, jump, tmp;
@@ -2819,7 +2819,7 @@ int s390_pool_overflow = 0;
#define S390_POOL_CHUNK_MAX 0xe00
static void
-s390_chunkify_pool (void)
+s390_chunkify_pool ()
{
rtx base_reg = gen_rtx_REG (Pmode,
TARGET_64BIT? BASE_REGISTER : RETURN_REGNUM);
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index ad9ac7d4c4f..c1a4534b577 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -5757,7 +5757,7 @@ sh_handle_trap_exit_attribute (node, name, args, flags, no_add_attrs)
}
int
-sh_cfun_interrupt_handler_p (void)
+sh_cfun_interrupt_handler_p ()
{
return (lookup_attribute ("interrupt_handler",
DECL_ATTRIBUTES (current_function_decl))
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index 572687a978c..8bab197c688 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -2322,7 +2322,7 @@ xtensa_return_addr (count, frame)
argument word N for N >= 6. */
tree
-xtensa_build_va_list (void)
+xtensa_build_va_list ()
{
tree f_stk, f_reg, f_ndx, record, type_decl;