Commit 9c808aad by Andreas Jaeger Committed by Andreas Jaeger

alpha.md: Remove usage of PARAMS.

        * config/alpha/alpha.md: Remove usage of PARAMS.

        * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
        * config/i386/i386-interix.h: Likewise.
        * config/i386/winnt.c: Likewise.
        * config/i386/cygming.h: Likewise.
        * config/i386/cygwin2.c: Likewise.
        * config/darwin.c: Likewise.
        * config/darwin-c.c: Likewise.
        * config/darwin-protos.h: Likewise.
        * config/darwin.h: Likewise.
        * config/s390/s390-protos.h: Likewise.
        * config/s390/s390.c: Likewise.
        * config/ia64/ia64.c: Likewse
        * config/ia64/ia64-protos.h: Likewise.

From-SVN: r70515
parent e20bcc5e
2003-08-17 Andreas Jaeger <aj@suse.de>
* config/alpha/alpha.md: Remove usage of PARAMS.
* config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
* config/i386/i386-interix.h: Likewise.
* config/i386/winnt.c: Likewise.
* config/i386/cygming.h: Likewise.
* config/i386/cygwin2.c: Likewise.
* config/darwin.c: Likewise.
* config/darwin-c.c: Likewise.
* config/darwin-protos.h: Likewise.
* config/darwin.h: Likewise.
* config/s390/s390-protos.h: Likewise.
* config/s390/s390.c: Likewise.
* config/ia64/ia64.c: Likewse
* config/ia64/ia64-protos.h: Likewise.
2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* config/sparc/sparc.c: Convert to ISO C. * config/sparc/sparc.c: Convert to ISO C.
......
...@@ -7171,7 +7171,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7171,7 +7171,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_extxl_be; gen = gen_extxl_be;
else else
...@@ -7186,7 +7186,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7186,7 +7186,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_extxl_be; gen = gen_extxl_be;
else else
...@@ -7201,7 +7201,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7201,7 +7201,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_extxl_be; gen = gen_extxl_be;
else else
...@@ -7216,7 +7216,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7216,7 +7216,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_extxl_be; gen = gen_extxl_be;
else else
...@@ -7231,7 +7231,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7231,7 +7231,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_extwh_be; gen = gen_extwh_be;
else else
...@@ -7246,7 +7246,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7246,7 +7246,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_extlh_be; gen = gen_extlh_be;
else else
...@@ -7261,7 +7261,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7261,7 +7261,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_extqh_be; gen = gen_extqh_be;
else else
...@@ -7276,7 +7276,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7276,7 +7276,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_insbl_be; gen = gen_insbl_be;
else else
...@@ -7292,7 +7292,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7292,7 +7292,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_inswl_be; gen = gen_inswl_be;
else else
...@@ -7308,7 +7308,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7308,7 +7308,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_insll_be; gen = gen_insll_be;
else else
...@@ -7325,7 +7325,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7325,7 +7325,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_insql_be; gen = gen_insql_be;
else else
...@@ -7370,7 +7370,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7370,7 +7370,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx, rtx);
rtx mask; rtx mask;
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_mskxl_be; gen = gen_mskxl_be;
...@@ -7387,7 +7387,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7387,7 +7387,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx, rtx);
rtx mask; rtx mask;
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_mskxl_be; gen = gen_mskxl_be;
...@@ -7404,7 +7404,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7404,7 +7404,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx, rtx);
rtx mask; rtx mask;
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_mskxl_be; gen = gen_mskxl_be;
...@@ -7421,7 +7421,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none" ...@@ -7421,7 +7421,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi,none"
(match_operand:DI 2 "reg_or_8bit_operand" "")] (match_operand:DI 2 "reg_or_8bit_operand" "")]
"" ""
{ {
rtx (*gen) PARAMS ((rtx, rtx, rtx, rtx)); rtx (*gen) (rtx, rtx, rtx, rtx);
rtx mask; rtx mask;
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
gen = gen_mskxl_be; gen = gen_mskxl_be;
......
/* Darwin support needed only by C/C++ frontends. /* Darwin support needed only by C/C++ frontends.
Copyright (C) 2001 Copyright (C) 2001, 2003 Free Software Foundation, Inc.
Free Software Foundation, Inc.
Contributed by Apple Computer Inc. Contributed by Apple Computer Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -38,8 +37,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -38,8 +37,8 @@ Boston, MA 02111-1307, USA. */
/* Maintain a small stack of alignments. This is similar to pragma /* Maintain a small stack of alignments. This is similar to pragma
pack's stack, but simpler. */ pack's stack, but simpler. */
static void push_field_alignment PARAMS ((int)); static void push_field_alignment (int);
static void pop_field_alignment PARAMS ((void)); static void pop_field_alignment (void);
typedef struct align_stack typedef struct align_stack
{ {
...@@ -50,8 +49,7 @@ typedef struct align_stack ...@@ -50,8 +49,7 @@ typedef struct align_stack
static struct align_stack * field_align_stack = NULL; static struct align_stack * field_align_stack = NULL;
static void static void
push_field_alignment (bit_alignment) push_field_alignment (int bit_alignment)
int bit_alignment;
{ {
align_stack *entry = (align_stack *) xmalloc (sizeof (align_stack)); align_stack *entry = (align_stack *) xmalloc (sizeof (align_stack));
...@@ -63,7 +61,7 @@ push_field_alignment (bit_alignment) ...@@ -63,7 +61,7 @@ push_field_alignment (bit_alignment)
} }
static void static void
pop_field_alignment () pop_field_alignment (void)
{ {
if (field_align_stack) if (field_align_stack)
{ {
...@@ -80,8 +78,7 @@ pop_field_alignment () ...@@ -80,8 +78,7 @@ pop_field_alignment ()
/* Handlers for Darwin-specific pragmas. */ /* Handlers for Darwin-specific pragmas. */
void void
darwin_pragma_ignore (pfile) darwin_pragma_ignore (cpp_reader *pfile ATTRIBUTE_UNUSED)
cpp_reader *pfile ATTRIBUTE_UNUSED;
{ {
/* Do nothing. */ /* Do nothing. */
} }
...@@ -89,8 +86,7 @@ darwin_pragma_ignore (pfile) ...@@ -89,8 +86,7 @@ darwin_pragma_ignore (pfile)
/* #pragma options align={mac68k|power|reset} */ /* #pragma options align={mac68k|power|reset} */
void void
darwin_pragma_options (pfile) darwin_pragma_options (cpp_reader *pfile ATTRIBUTE_UNUSED)
cpp_reader *pfile ATTRIBUTE_UNUSED;
{ {
const char *arg; const char *arg;
tree t, x; tree t, x;
...@@ -122,8 +118,7 @@ darwin_pragma_options (pfile) ...@@ -122,8 +118,7 @@ darwin_pragma_options (pfile)
/* #pragma unused ([var {, var}*]) */ /* #pragma unused ([var {, var}*]) */
void void
darwin_pragma_unused (pfile) darwin_pragma_unused (cpp_reader *pfile ATTRIBUTE_UNUSED)
cpp_reader *pfile ATTRIBUTE_UNUSED;
{ {
tree decl, x; tree decl, x;
int tok; int tok;
......
...@@ -18,105 +18,105 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -18,105 +18,105 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
extern int name_needs_quotes PARAMS ((const char *)); extern int name_needs_quotes (const char *);
extern void machopic_validate_stub_or_non_lazy_ptr PARAMS ((const char *, int)); extern void machopic_validate_stub_or_non_lazy_ptr (const char *, int);
extern const char *machopic_function_base_name PARAMS ((void)); extern const char *machopic_function_base_name (void);
extern void machopic_output_function_base_name (FILE *); extern void machopic_output_function_base_name (FILE *);
extern const char *machopic_non_lazy_ptr_name PARAMS ((const char*)); extern const char *machopic_non_lazy_ptr_name (const char*);
extern const char *machopic_stub_name PARAMS ((const char*)); extern const char *machopic_stub_name (const char*);
extern void machopic_picsymbol_stub_section PARAMS ((void)); extern void machopic_picsymbol_stub_section (void);
extern void machopic_picsymbol_stub1_section PARAMS ((void)); extern void machopic_picsymbol_stub1_section (void);
extern void machopic_symbol_stub_section PARAMS ((void)); extern void machopic_symbol_stub_section (void);
extern void machopic_symbol_stub1_section PARAMS ((void)); extern void machopic_symbol_stub1_section (void);
extern void machopic_lazy_symbol_ptr_section PARAMS ((void)); extern void machopic_lazy_symbol_ptr_section (void);
extern void machopic_nl_symbol_ptr_section PARAMS ((void)); extern void machopic_nl_symbol_ptr_section (void);
extern void constructor_section PARAMS ((void)); extern void constructor_section (void);
extern void destructor_section PARAMS ((void)); extern void destructor_section (void);
extern void mod_init_section PARAMS ((void)); extern void mod_init_section (void);
extern void mod_term_section PARAMS ((void)); extern void mod_term_section (void);
#ifdef RTX_CODE #ifdef RTX_CODE
extern int machopic_operand_p PARAMS ((rtx)); extern int machopic_operand_p (rtx);
extern enum machopic_addr_class machopic_classify_name PARAMS ((const char*)); extern enum machopic_addr_class machopic_classify_name (const char*);
extern rtx machopic_indirect_data_reference PARAMS ((rtx, rtx)); extern rtx machopic_indirect_data_reference (rtx, rtx);
extern rtx machopic_indirect_call_target PARAMS ((rtx)); extern rtx machopic_indirect_call_target (rtx);
extern rtx machopic_legitimize_pic_address PARAMS ((rtx, enum machine_mode, rtx)); extern rtx machopic_legitimize_pic_address (rtx, enum machine_mode, rtx);
extern void machopic_asm_out_constructor PARAMS ((rtx, int)); extern void machopic_asm_out_constructor (rtx, int);
extern void machopic_asm_out_destructor PARAMS ((rtx, int)); extern void machopic_asm_out_destructor (rtx, int);
#endif /* RTX_CODE */ #endif /* RTX_CODE */
#ifdef TREE_CODE #ifdef TREE_CODE
extern enum machopic_addr_class machopic_classify_ident PARAMS ((tree)); extern enum machopic_addr_class machopic_classify_ident (tree);
extern void machopic_define_ident PARAMS ((tree)); extern void machopic_define_ident (tree);
extern void machopic_define_name PARAMS ((const char*)); extern void machopic_define_name (const char*);
extern int machopic_name_defined_p PARAMS ((const char*)); extern int machopic_name_defined_p (const char*);
extern int machopic_ident_defined_p PARAMS ((tree)); extern int machopic_ident_defined_p (tree);
extern void darwin_encode_section_info PARAMS ((tree, rtx, int)); extern void darwin_encode_section_info (tree, rtx, int);
extern const char *darwin_strip_name_encoding PARAMS ((const char *)); extern const char *darwin_strip_name_encoding (const char *);
#endif /* TREE_CODE */ #endif /* TREE_CODE */
extern void machopic_finish PARAMS ((FILE *)); extern void machopic_finish (FILE *);
extern void machopic_output_possible_stub_label PARAMS ((FILE *, const char*)); extern void machopic_output_possible_stub_label (FILE *, const char*);
extern void darwin_exception_section PARAMS ((void)); extern void darwin_exception_section (void);
extern void darwin_eh_frame_section PARAMS ((void)); extern void darwin_eh_frame_section (void);
extern void machopic_select_section PARAMS ((tree, int, extern void machopic_select_section (tree, int, unsigned HOST_WIDE_INT);
unsigned HOST_WIDE_INT)); extern void machopic_select_rtx_section (enum machine_mode, rtx,
extern void machopic_select_rtx_section PARAMS ((enum machine_mode, rtx, unsigned HOST_WIDE_INT);
unsigned HOST_WIDE_INT));
extern void darwin_pragma_ignore PARAMS ((struct cpp_reader *)); extern void darwin_pragma_ignore (struct cpp_reader *);
extern void darwin_pragma_options PARAMS ((struct cpp_reader *)); extern void darwin_pragma_options (struct cpp_reader *);
extern void darwin_pragma_unused PARAMS ((struct cpp_reader *)); extern void darwin_pragma_unused (struct cpp_reader *);
extern void darwin_file_end PARAMS ((void)); extern void darwin_file_end (void);
/* Expanded by EXTRA_SECTION_FUNCTIONS into varasm.o. */ /* Expanded by EXTRA_SECTION_FUNCTIONS into varasm.o. */
extern void const_section PARAMS ((void)); extern void const_section (void);
extern void const_data_section PARAMS ((void)); extern void const_data_section (void);
extern void cstring_section PARAMS ((void)); extern void cstring_section (void);
extern void literal4_section PARAMS ((void)); extern void literal4_section (void);
extern void literal8_section PARAMS ((void)); extern void literal8_section (void);
extern void constructor_section PARAMS ((void)); extern void constructor_section (void);
extern void mod_init_section PARAMS ((void)); extern void mod_init_section (void);
extern void mod_term_section PARAMS ((void)); extern void mod_term_section (void);
extern void destructor_section PARAMS ((void)); extern void destructor_section (void);
extern void objc_class_section PARAMS ((void)); extern void objc_class_section (void);
extern void objc_meta_class_section PARAMS ((void)); extern void objc_meta_class_section (void);
extern void objc_category_section PARAMS ((void)); extern void objc_category_section (void);
extern void objc_class_vars_section PARAMS ((void)); extern void objc_class_vars_section (void);
extern void objc_instance_vars_section PARAMS ((void)); extern void objc_instance_vars_section (void);
extern void objc_cls_meth_section PARAMS ((void)); extern void objc_cls_meth_section (void);
extern void objc_inst_meth_section PARAMS ((void)); extern void objc_inst_meth_section (void);
extern void objc_cat_cls_meth_section PARAMS ((void)); extern void objc_cat_cls_meth_section (void);
extern void objc_cat_inst_meth_section PARAMS ((void)); extern void objc_cat_inst_meth_section (void);
extern void objc_selector_refs_section PARAMS ((void)); extern void objc_selector_refs_section (void);
extern void objc_selector_fixup_section PARAMS ((void)); extern void objc_selector_fixup_section (void);
extern void objc_symbols_section PARAMS ((void)); extern void objc_symbols_section (void);
extern void objc_module_info_section PARAMS ((void)); extern void objc_module_info_section (void);
extern void objc_protocol_section PARAMS ((void)); extern void objc_protocol_section (void);
extern void objc_string_object_section PARAMS ((void)); extern void objc_string_object_section (void);
extern void objc_constant_string_object_section PARAMS ((void)); extern void objc_constant_string_object_section (void);
extern void objc_class_names_section PARAMS ((void)); extern void objc_class_names_section (void);
extern void objc_meth_var_names_section PARAMS ((void)); extern void objc_meth_var_names_section (void);
extern void objc_meth_var_types_section PARAMS ((void)); extern void objc_meth_var_types_section (void);
extern void objc_cls_refs_section PARAMS ((void)); extern void objc_cls_refs_section (void);
extern void machopic_lazy_symbol_ptr_section PARAMS ((void)); extern void machopic_lazy_symbol_ptr_section (void);
extern void machopic_nl_symbol_ptr_section PARAMS ((void)); extern void machopic_nl_symbol_ptr_section (void);
extern void machopic_symbol_stub_section PARAMS ((void)); extern void machopic_symbol_stub_section (void);
extern void machopic_picsymbol_stub_section PARAMS ((void)); extern void machopic_picsymbol_stub_section (void);
extern void machopic_output_stub PARAMS ((FILE *, const char *, const char *)); extern void machopic_output_stub (FILE *, const char *, const char *);
extern void darwin_exception_section PARAMS ((void)); extern void darwin_exception_section (void);
extern void darwin_eh_frame_section PARAMS ((void)); extern void darwin_eh_frame_section (void);
extern void darwin_globalize_label PARAMS ((FILE *, const char *)); extern void darwin_globalize_label (FILE *, const char *);
extern void darwin_asm_output_dwarf_delta PARAMS ((FILE *, int, const char *, const char *)); extern void darwin_asm_output_dwarf_delta (FILE *, int, const char *,
const char *);
...@@ -42,13 +42,12 @@ Boston, MA 02111-1307, USA. */ ...@@ -42,13 +42,12 @@ Boston, MA 02111-1307, USA. */
#include "langhooks.h" #include "langhooks.h"
#include "tm_p.h" #include "tm_p.h"
static int machopic_data_defined_p PARAMS ((const char *)); static int machopic_data_defined_p (const char *);
static void update_non_lazy_ptrs PARAMS ((const char *)); static void update_non_lazy_ptrs (const char *);
static void update_stubs PARAMS ((const char *)); static void update_stubs (const char *);
int int
name_needs_quotes (name) name_needs_quotes (const char *name)
const char *name;
{ {
int c; int c;
while ((c = *name++) != '\0') while ((c = *name++) != '\0')
...@@ -68,8 +67,7 @@ name_needs_quotes (name) ...@@ -68,8 +67,7 @@ name_needs_quotes (name)
static GTY(()) tree machopic_defined_list; static GTY(()) tree machopic_defined_list;
enum machopic_addr_class enum machopic_addr_class
machopic_classify_ident (ident) machopic_classify_ident (tree ident)
tree ident;
{ {
const char *name = IDENTIFIER_POINTER (ident); const char *name = IDENTIFIER_POINTER (ident);
int lprefix = (((name[0] == '*' || name[0] == '&') int lprefix = (((name[0] == '*' || name[0] == '&')
...@@ -165,15 +163,13 @@ machopic_classify_ident (ident) ...@@ -165,15 +163,13 @@ machopic_classify_ident (ident)
enum machopic_addr_class enum machopic_addr_class
machopic_classify_name (name) machopic_classify_name (const char *name)
const char *name;
{ {
return machopic_classify_ident (get_identifier (name)); return machopic_classify_ident (get_identifier (name));
} }
int int
machopic_ident_defined_p (ident) machopic_ident_defined_p (tree ident)
tree ident;
{ {
switch (machopic_classify_ident (ident)) switch (machopic_classify_ident (ident))
{ {
...@@ -187,8 +183,7 @@ machopic_ident_defined_p (ident) ...@@ -187,8 +183,7 @@ machopic_ident_defined_p (ident)
} }
static int static int
machopic_data_defined_p (name) machopic_data_defined_p (const char *name)
const char *name;
{ {
switch (machopic_classify_ident (get_identifier (name))) switch (machopic_classify_ident (get_identifier (name)))
{ {
...@@ -200,15 +195,13 @@ machopic_data_defined_p (name) ...@@ -200,15 +195,13 @@ machopic_data_defined_p (name)
} }
int int
machopic_name_defined_p (name) machopic_name_defined_p (const char *name)
const char *name;
{ {
return machopic_ident_defined_p (get_identifier (name)); return machopic_ident_defined_p (get_identifier (name));
} }
void void
machopic_define_ident (ident) machopic_define_ident (tree ident)
tree ident;
{ {
if (!machopic_ident_defined_p (ident)) if (!machopic_ident_defined_p (ident))
machopic_defined_list = machopic_defined_list =
...@@ -216,8 +209,7 @@ machopic_define_ident (ident) ...@@ -216,8 +209,7 @@ machopic_define_ident (ident)
} }
void void
machopic_define_name (name) machopic_define_name (const char *name)
const char *name;
{ {
machopic_define_ident (get_identifier (name)); machopic_define_ident (get_identifier (name));
} }
...@@ -225,7 +217,7 @@ machopic_define_name (name) ...@@ -225,7 +217,7 @@ machopic_define_name (name)
static GTY(()) char * function_base; static GTY(()) char * function_base;
const char * const char *
machopic_function_base_name () machopic_function_base_name (void)
{ {
const char *current_name; const char *current_name;
/* if dynamic-no-pic is on, we should not get here */ /* if dynamic-no-pic is on, we should not get here */
...@@ -271,8 +263,7 @@ static GTY(()) tree machopic_non_lazy_pointers; ...@@ -271,8 +263,7 @@ static GTY(()) tree machopic_non_lazy_pointers;
a new one. */ a new one. */
const char * const char *
machopic_non_lazy_ptr_name (name) machopic_non_lazy_ptr_name (const char *name)
const char *name;
{ {
const char *temp_name; const char *temp_name;
tree temp, ident = get_identifier (name); tree temp, ident = get_identifier (name);
...@@ -334,8 +325,7 @@ static GTY(()) tree machopic_stubs; ...@@ -334,8 +325,7 @@ static GTY(()) tree machopic_stubs;
generating a new stub name if necessary. */ generating a new stub name if necessary. */
const char * const char *
machopic_stub_name (name) machopic_stub_name (const char *name)
const char *name;
{ {
tree temp, ident = get_identifier (name); tree temp, ident = get_identifier (name);
const char *tname; const char *tname;
...@@ -394,9 +384,7 @@ machopic_stub_name (name) ...@@ -394,9 +384,7 @@ machopic_stub_name (name)
} }
void void
machopic_validate_stub_or_non_lazy_ptr (name, validate_stub) machopic_validate_stub_or_non_lazy_ptr (const char *name, int validate_stub)
const char *name;
int validate_stub;
{ {
const char *real_name; const char *real_name;
tree temp, ident = get_identifier (name), id2; tree temp, ident = get_identifier (name), id2;
...@@ -423,8 +411,7 @@ machopic_validate_stub_or_non_lazy_ptr (name, validate_stub) ...@@ -423,8 +411,7 @@ machopic_validate_stub_or_non_lazy_ptr (name, validate_stub)
source using indirections. */ source using indirections. */
rtx rtx
machopic_indirect_data_reference (orig, reg) machopic_indirect_data_reference (rtx orig, rtx reg)
rtx orig, reg;
{ {
rtx ptr_ref = orig; rtx ptr_ref = orig;
...@@ -557,8 +544,7 @@ machopic_indirect_data_reference (orig, reg) ...@@ -557,8 +544,7 @@ machopic_indirect_data_reference (orig, reg)
corresponding symbol_stub if necessary. Return a new MEM. */ corresponding symbol_stub if necessary. Return a new MEM. */
rtx rtx
machopic_indirect_call_target (target) machopic_indirect_call_target (rtx target)
rtx target;
{ {
if (GET_CODE (target) != MEM) if (GET_CODE (target) != MEM)
return target; return target;
...@@ -585,9 +571,7 @@ machopic_indirect_call_target (target) ...@@ -585,9 +571,7 @@ machopic_indirect_call_target (target)
} }
rtx rtx
machopic_legitimize_pic_address (orig, mode, reg) machopic_legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
rtx orig, reg;
enum machine_mode mode;
{ {
rtx pic_ref = orig; rtx pic_ref = orig;
...@@ -862,8 +846,7 @@ machopic_legitimize_pic_address (orig, mode, reg) ...@@ -862,8 +846,7 @@ machopic_legitimize_pic_address (orig, mode, reg)
void void
machopic_finish (asm_out_file) machopic_finish (FILE *asm_out_file)
FILE *asm_out_file;
{ {
tree temp; tree temp;
...@@ -938,8 +921,7 @@ machopic_finish (asm_out_file) ...@@ -938,8 +921,7 @@ machopic_finish (asm_out_file)
} }
int int
machopic_operand_p (op) machopic_operand_p (rtx op)
rtx op;
{ {
if (MACHOPIC_JUST_INDIRECT) if (MACHOPIC_JUST_INDIRECT)
{ {
...@@ -970,10 +952,7 @@ machopic_operand_p (op) ...@@ -970,10 +952,7 @@ machopic_operand_p (op)
use later. */ use later. */
void void
darwin_encode_section_info (decl, rtl, first) darwin_encode_section_info (tree decl, rtx rtl, int first ATTRIBUTE_UNUSED)
tree decl;
rtx rtl;
int first ATTRIBUTE_UNUSED;
{ {
char code = '\0'; char code = '\0';
int defined = 0; int defined = 0;
...@@ -1043,8 +1022,7 @@ darwin_encode_section_info (decl, rtl, first) ...@@ -1043,8 +1022,7 @@ darwin_encode_section_info (decl, rtl, first)
/* Undo the effects of the above. */ /* Undo the effects of the above. */
const char * const char *
darwin_strip_name_encoding (str) darwin_strip_name_encoding (const char *str)
const char *str;
{ {
return str[0] == '!' ? str + 4 : str; return str[0] == '!' ? str + 4 : str;
} }
...@@ -1053,8 +1031,7 @@ darwin_strip_name_encoding (str) ...@@ -1053,8 +1031,7 @@ darwin_strip_name_encoding (str)
stripped name matches the argument. */ stripped name matches the argument. */
static void static void
update_non_lazy_ptrs (name) update_non_lazy_ptrs (const char *name)
const char *name;
{ {
const char *name1, *name2; const char *name1, *name2;
tree temp; tree temp;
...@@ -1086,9 +1063,7 @@ update_non_lazy_ptrs (name) ...@@ -1086,9 +1063,7 @@ update_non_lazy_ptrs (name)
just emit the stub label now and we don't bother emitting the stub later. */ just emit the stub label now and we don't bother emitting the stub later. */
void void
machopic_output_possible_stub_label (file, name) machopic_output_possible_stub_label (FILE *file, const char *name)
FILE *file;
const char *name;
{ {
tree temp; tree temp;
...@@ -1119,8 +1094,7 @@ machopic_output_possible_stub_label (file, name) ...@@ -1119,8 +1094,7 @@ machopic_output_possible_stub_label (file, name)
stripped name matches the argument. */ stripped name matches the argument. */
static void static void
update_stubs (name) update_stubs (const char *name)
const char *name;
{ {
const char *name1, *name2; const char *name1, *name2;
tree temp; tree temp;
...@@ -1148,10 +1122,8 @@ update_stubs (name) ...@@ -1148,10 +1122,8 @@ update_stubs (name)
} }
void void
machopic_select_section (exp, reloc, align) machopic_select_section (tree exp, int reloc,
tree exp; unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED)
int reloc;
unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED;
{ {
void (*base_function)(void); void (*base_function)(void);
...@@ -1261,10 +1233,8 @@ machopic_select_section (exp, reloc, align) ...@@ -1261,10 +1233,8 @@ machopic_select_section (exp, reloc, align)
They must go in "const". */ They must go in "const". */
void void
machopic_select_rtx_section (mode, x, align) machopic_select_rtx_section (enum machine_mode mode, rtx x,
enum machine_mode mode; unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED)
rtx x;
unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED;
{ {
if (GET_MODE_SIZE (mode) == 8) if (GET_MODE_SIZE (mode) == 8)
literal8_section (); literal8_section ();
...@@ -1277,9 +1247,7 @@ machopic_select_rtx_section (mode, x, align) ...@@ -1277,9 +1247,7 @@ machopic_select_rtx_section (mode, x, align)
} }
void void
machopic_asm_out_constructor (symbol, priority) machopic_asm_out_constructor (rtx symbol, int priority ATTRIBUTE_UNUSED)
rtx symbol;
int priority ATTRIBUTE_UNUSED;
{ {
if (MACHOPIC_INDIRECT) if (MACHOPIC_INDIRECT)
...@@ -1295,9 +1263,7 @@ machopic_asm_out_constructor (symbol, priority) ...@@ -1295,9 +1263,7 @@ machopic_asm_out_constructor (symbol, priority)
} }
void void
machopic_asm_out_destructor (symbol, priority) machopic_asm_out_destructor (rtx symbol, int priority ATTRIBUTE_UNUSED)
rtx symbol;
int priority ATTRIBUTE_UNUSED;
{ {
if (MACHOPIC_INDIRECT) if (MACHOPIC_INDIRECT)
...@@ -1312,9 +1278,7 @@ machopic_asm_out_destructor (symbol, priority) ...@@ -1312,9 +1278,7 @@ machopic_asm_out_destructor (symbol, priority)
} }
void void
darwin_globalize_label (stream, name) darwin_globalize_label (FILE *stream, const char *name)
FILE *stream;
const char *name;
{ {
if (!!strncmp (name, "_OBJC_", 6)) if (!!strncmp (name, "_OBJC_", 6))
default_globalize_label (stream, name); default_globalize_label (stream, name);
...@@ -1330,10 +1294,8 @@ darwin_globalize_label (stream, name) ...@@ -1330,10 +1294,8 @@ darwin_globalize_label (stream, name)
static int darwin_dwarf_label_counter; static int darwin_dwarf_label_counter;
void void
darwin_asm_output_dwarf_delta (file, size, lab1, lab2) darwin_asm_output_dwarf_delta (FILE *file, int size ATTRIBUTE_UNUSED,
FILE *file; const char *lab1, const char *lab2)
int size ATTRIBUTE_UNUSED;
const char *lab1, *lab2;
{ {
const char *p = lab1 + (lab1[0] == '*'); const char *p = lab1 + (lab1[0] == '*');
int islocaldiff = (p[0] == 'L'); int islocaldiff = (p[0] == 'L');
...@@ -1350,7 +1312,7 @@ darwin_asm_output_dwarf_delta (file, size, lab1, lab2) ...@@ -1350,7 +1312,7 @@ darwin_asm_output_dwarf_delta (file, size, lab1, lab2)
} }
void void
darwin_file_end () darwin_file_end (void)
{ {
machopic_finish (asm_out_file); machopic_finish (asm_out_file);
if (strcmp (lang_hooks.name, "GNU C++") == 0) if (strcmp (lang_hooks.name, "GNU C++") == 0)
...@@ -1362,4 +1324,3 @@ darwin_file_end () ...@@ -1362,4 +1324,3 @@ darwin_file_end ()
} }
#include "gt-darwin.h" #include "gt-darwin.h"
...@@ -478,9 +478,9 @@ do { text_section (); \ ...@@ -478,9 +478,9 @@ do { text_section (); \
#undef SECTION_FUNCTION #undef SECTION_FUNCTION
#define SECTION_FUNCTION(FUNCTION, SECTION, DIRECTIVE, OBJC) \ #define SECTION_FUNCTION(FUNCTION, SECTION, DIRECTIVE, OBJC) \
extern void FUNCTION PARAMS ((void)); \ extern void FUNCTION (void); \
void \ void \
FUNCTION () \ FUNCTION (void) \
{ \ { \
if (in_section != SECTION) \ if (in_section != SECTION) \
{ \ { \
...@@ -521,7 +521,7 @@ FUNCTION () \ ...@@ -521,7 +521,7 @@ FUNCTION () \
#undef EXTRA_SECTION_FUNCTIONS #undef EXTRA_SECTION_FUNCTIONS
#define EXTRA_SECTION_FUNCTIONS \ #define EXTRA_SECTION_FUNCTIONS \
static void objc_section_init PARAMS ((void)); \ static void objc_section_init (void); \
SECTION_FUNCTION (const_section, \ SECTION_FUNCTION (const_section, \
in_const, \ in_const, \
".const", 0) \ ".const", 0) \
...@@ -636,7 +636,7 @@ SECTION_FUNCTION (darwin_eh_frame_section, \ ...@@ -636,7 +636,7 @@ SECTION_FUNCTION (darwin_eh_frame_section, \
".section __TEXT,__eh_frame", 0) \ ".section __TEXT,__eh_frame", 0) \
\ \
static void \ static void \
objc_section_init () \ objc_section_init (void) \
{ \ { \
static int been_here = 0; \ static int been_here = 0; \
\ \
......
...@@ -130,7 +130,7 @@ drectve_section () \ ...@@ -130,7 +130,7 @@ drectve_section () \
in_section = in_drectve; \ in_section = in_drectve; \
} \ } \
} }
void drectve_section PARAMS ((void)); void drectve_section (void);
/* Switch to SECTION (an `enum in_section'). /* Switch to SECTION (an `enum in_section').
...@@ -139,11 +139,9 @@ void drectve_section PARAMS ((void)); ...@@ -139,11 +139,9 @@ void drectve_section PARAMS ((void));
ASM_DECLARE_OBJECT_NAME and then switch back to the original section ASM_DECLARE_OBJECT_NAME and then switch back to the original section
afterwards. */ afterwards. */
#define SWITCH_TO_SECTION_FUNCTION \ #define SWITCH_TO_SECTION_FUNCTION \
void switch_to_section PARAMS ((enum in_section, tree)); \ void switch_to_section (enum in_section, tree); \
void \ void \
switch_to_section (section, decl) \ switch_to_section (enum in_section section, tree decl) \
enum in_section section; \
tree decl; \
{ \ { \
switch (section) \ switch (section) \
{ \ { \
...@@ -248,7 +246,7 @@ do { \ ...@@ -248,7 +246,7 @@ do { \
symbols must be explicitly imported from shared libraries (DLLs). */ symbols must be explicitly imported from shared libraries (DLLs). */
#define MULTIPLE_SYMBOL_SPACES #define MULTIPLE_SYMBOL_SPACES
extern void i386_pe_unique_section PARAMS ((TREE, int)); extern void i386_pe_unique_section (TREE, int);
#define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section #define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section
#define SUPPORTS_ONE_ONLY 1 #define SUPPORTS_ONE_ONLY 1
...@@ -328,12 +326,12 @@ extern void i386_pe_unique_section PARAMS ((TREE, int)); ...@@ -328,12 +326,12 @@ extern void i386_pe_unique_section PARAMS ((TREE, int));
/* External function declarations. */ /* External function declarations. */
extern void i386_pe_record_external_function PARAMS ((const char *)); extern void i386_pe_record_external_function (const char *);
extern void i386_pe_declare_function_type PARAMS ((FILE *, const char *, int)); extern void i386_pe_declare_function_type (FILE *, const char *, int);
extern void i386_pe_record_exported_symbol PARAMS ((const char *, int)); extern void i386_pe_record_exported_symbol (const char *, int);
extern void i386_pe_file_end PARAMS ((void)); extern void i386_pe_file_end (void);
extern int i386_pe_dllexport_name_p PARAMS ((const char *)); extern int i386_pe_dllexport_name_p (const char *);
extern int i386_pe_dllimport_name_p PARAMS ((const char *)); extern int i386_pe_dllimport_name_p (const char *);
/* For Win32 ABI compatibility */ /* For Win32 ABI compatibility */
#undef DEFAULT_PCC_STRUCT_RETURN #undef DEFAULT_PCC_STRUCT_RETURN
......
...@@ -199,7 +199,7 @@ char *cvt_to_mingw[] = ...@@ -199,7 +199,7 @@ char *cvt_to_mingw[] =
#undef GEN_CVT_ARRAY #undef GEN_CVT_ARRAY
#endif /*GEN_CVT_ARRAY*/ #endif /*GEN_CVT_ARRAY*/
void mingw_scan PARAMS ((int, const char * const *, char **)); void mingw_scan (int, const char * const *, char **);
#if 1 #if 1
#define GCC_DRIVER_HOST_INITIALIZATION \ #define GCC_DRIVER_HOST_INITIALIZATION \
do \ do \
......
...@@ -28,13 +28,13 @@ Boston, MA 02111-1307, USA. */ ...@@ -28,13 +28,13 @@ Boston, MA 02111-1307, USA. */
#include <string.h> #include <string.h>
/* /*
static void remove_w32api PARAMS ((void)); static void remove_w32api (void);
*/ */
static void add_mingw PARAMS ((void)); static void add_mingw (void);
static void set_mingw PARAMS((void)) __attribute__ ((constructor)); static void set_mingw (void) __attribute__ ((constructor));
static void static void
add_mingw () add_mingw (void)
{ {
char **av; char **av;
char *p; char *p;
...@@ -59,7 +59,7 @@ add_mingw () ...@@ -59,7 +59,7 @@ add_mingw ()
static void static void
set_mingw () set_mingw (void)
{ {
char *env = getenv ("GCC_CYGWIN_MINGW"); char *env = getenv ("GCC_CYGWIN_MINGW");
if (env && *env == '1') if (env && *env == '1')
......
/* Target definitions for GNU compiler for Intel 80386 running Interix /* Target definitions for GNU compiler for Intel 80386 running Interix
Parts Copyright (C) 1991, 1999, 2000, 2002 Free Software Foundation, Inc. Parts Copyright (C) 1991, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
Parts: Parts:
by Douglas B. Rupp (drupp@cs.washington.edu). by Douglas B. Rupp (drupp@cs.washington.edu).
...@@ -341,7 +341,7 @@ while (0) ...@@ -341,7 +341,7 @@ while (0)
symbols must be explicitly imported from shared libraries (DLLs). */ symbols must be explicitly imported from shared libraries (DLLs). */
#define MULTIPLE_SYMBOL_SPACES #define MULTIPLE_SYMBOL_SPACES
extern void i386_pe_unique_section PARAMS ((tree, int)); extern void i386_pe_unique_section (tree, int);
#define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section #define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section
#define SUPPORTS_ONE_ONLY 1 #define SUPPORTS_ONE_ONLY 1
......
...@@ -46,13 +46,13 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -46,13 +46,13 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
multiple times. multiple times.
*/ */
static tree associated_type PARAMS ((tree)); static tree associated_type (tree);
const char * gen_stdcall_suffix PARAMS ((tree)); const char * gen_stdcall_suffix (tree);
const char * gen_fastcall_suffix PARAMS ((tree)); const char * gen_fastcall_suffix (tree);
int i386_pe_dllexport_p PARAMS ((tree)); int i386_pe_dllexport_p (tree);
int i386_pe_dllimport_p PARAMS ((tree)); int i386_pe_dllimport_p (tree);
void i386_pe_mark_dllexport PARAMS ((tree)); void i386_pe_mark_dllexport (tree);
void i386_pe_mark_dllimport PARAMS ((tree)); void i386_pe_mark_dllimport (tree);
/* This is we how mark internal identifiers with dllimport or dllexport /* This is we how mark internal identifiers with dllimport or dllexport
attributes. */ attributes. */
...@@ -66,12 +66,8 @@ void i386_pe_mark_dllimport PARAMS ((tree)); ...@@ -66,12 +66,8 @@ void i386_pe_mark_dllimport PARAMS ((tree));
/* Handle a "dllimport" or "dllexport" attribute; /* Handle a "dllimport" or "dllexport" attribute;
arguments as in struct attribute_spec.handler. */ arguments as in struct attribute_spec.handler. */
tree tree
ix86_handle_dll_attribute (pnode, name, args, flags, no_add_attrs) ix86_handle_dll_attribute (tree * pnode, tree name, tree args, int flags,
tree * pnode; bool *no_add_attrs)
tree name;
tree args;
int flags;
bool *no_add_attrs;
{ {
tree node = *pnode; tree node = *pnode;
...@@ -145,12 +141,9 @@ ix86_handle_dll_attribute (pnode, name, args, flags, no_add_attrs) ...@@ -145,12 +141,9 @@ ix86_handle_dll_attribute (pnode, name, args, flags, no_add_attrs)
/* Handle a "shared" attribute; /* Handle a "shared" attribute;
arguments as in struct attribute_spec.handler. */ arguments as in struct attribute_spec.handler. */
tree tree
ix86_handle_shared_attribute (node, name, args, flags, no_add_attrs) ix86_handle_shared_attribute (tree *node, tree name,
tree *node; tree args ATTRIBUTE_UNUSED,
tree name; int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
tree args ATTRIBUTE_UNUSED;
int flags ATTRIBUTE_UNUSED;
bool *no_add_attrs;
{ {
if (TREE_CODE (*node) != VAR_DECL) if (TREE_CODE (*node) != VAR_DECL)
{ {
...@@ -166,8 +159,7 @@ ix86_handle_shared_attribute (node, name, args, flags, no_add_attrs) ...@@ -166,8 +159,7 @@ ix86_handle_shared_attribute (node, name, args, flags, no_add_attrs)
imported or exported. */ imported or exported. */
static tree static tree
associated_type (decl) associated_type (tree decl)
tree decl;
{ {
tree t = NULL_TREE; tree t = NULL_TREE;
...@@ -192,8 +184,7 @@ associated_type (decl) ...@@ -192,8 +184,7 @@ associated_type (decl)
/* Return nonzero if DECL is a dllexport'd object. */ /* Return nonzero if DECL is a dllexport'd object. */
int int
i386_pe_dllexport_p (decl) i386_pe_dllexport_p (tree decl)
tree decl;
{ {
tree exp; tree exp;
...@@ -219,8 +210,7 @@ i386_pe_dllexport_p (decl) ...@@ -219,8 +210,7 @@ i386_pe_dllexport_p (decl)
/* Return nonzero if DECL is a dllimport'd object. */ /* Return nonzero if DECL is a dllimport'd object. */
int int
i386_pe_dllimport_p (decl) i386_pe_dllimport_p (tree decl)
tree decl;
{ {
tree imp; tree imp;
int context_imp = 0; int context_imp = 0;
...@@ -300,8 +290,7 @@ i386_pe_dllimport_p (decl) ...@@ -300,8 +290,7 @@ i386_pe_dllimport_p (decl)
/* Return nonzero if SYMBOL is marked as being dllexport'd. */ /* Return nonzero if SYMBOL is marked as being dllexport'd. */
int int
i386_pe_dllexport_name_p (symbol) i386_pe_dllexport_name_p (const char *symbol)
const char *symbol;
{ {
return (strncmp (DLL_EXPORT_PREFIX, symbol, return (strncmp (DLL_EXPORT_PREFIX, symbol,
strlen (DLL_EXPORT_PREFIX)) == 0); strlen (DLL_EXPORT_PREFIX)) == 0);
...@@ -310,8 +299,7 @@ i386_pe_dllexport_name_p (symbol) ...@@ -310,8 +299,7 @@ i386_pe_dllexport_name_p (symbol)
/* Return nonzero if SYMBOL is marked as being dllimport'd. */ /* Return nonzero if SYMBOL is marked as being dllimport'd. */
int int
i386_pe_dllimport_name_p (symbol) i386_pe_dllimport_name_p (const char *symbol)
const char *symbol;
{ {
return (strncmp (DLL_IMPORT_PREFIX, symbol, return (strncmp (DLL_IMPORT_PREFIX, symbol,
strlen (DLL_IMPORT_PREFIX)) == 0); strlen (DLL_IMPORT_PREFIX)) == 0);
...@@ -321,8 +309,7 @@ i386_pe_dllimport_name_p (symbol) ...@@ -321,8 +309,7 @@ i386_pe_dllimport_name_p (symbol)
Note that we override the previous setting (eg: dllimport). */ Note that we override the previous setting (eg: dllimport). */
void void
i386_pe_mark_dllexport (decl) i386_pe_mark_dllexport (tree decl)
tree decl;
{ {
const char *oldname; const char *oldname;
char *newname; char *newname;
...@@ -364,8 +351,7 @@ i386_pe_mark_dllexport (decl) ...@@ -364,8 +351,7 @@ i386_pe_mark_dllexport (decl)
/* Mark a DECL as being dllimport'd. */ /* Mark a DECL as being dllimport'd. */
void void
i386_pe_mark_dllimport (decl) i386_pe_mark_dllimport (tree decl)
tree decl;
{ {
const char *oldname; const char *oldname;
char *newname; char *newname;
...@@ -421,8 +407,7 @@ i386_pe_mark_dllimport (decl) ...@@ -421,8 +407,7 @@ i386_pe_mark_dllimport (decl)
atsign (@) followed by the number of bytes of arguments. */ atsign (@) followed by the number of bytes of arguments. */
const char * const char *
gen_fastcall_suffix (decl) gen_fastcall_suffix (tree decl)
tree decl;
{ {
int total = 0; int total = 0;
...@@ -459,8 +444,7 @@ gen_fastcall_suffix (decl) ...@@ -459,8 +444,7 @@ gen_fastcall_suffix (decl)
arguments */ arguments */
const char * const char *
gen_stdcall_suffix (decl) gen_stdcall_suffix (tree decl)
tree decl;
{ {
int total = 0; int total = 0;
/* ??? This probably should use XSTR (XEXP (DECL_RTL (decl), 0), 0) instead /* ??? This probably should use XSTR (XEXP (DECL_RTL (decl), 0), 0) instead
...@@ -494,10 +478,7 @@ gen_stdcall_suffix (decl) ...@@ -494,10 +478,7 @@ gen_stdcall_suffix (decl)
} }
void void
i386_pe_encode_section_info (decl, rtl, first) i386_pe_encode_section_info (tree decl, rtx rtl, int first)
tree decl;
rtx rtl;
int first;
{ {
default_encode_section_info (decl, rtl, first); default_encode_section_info (decl, rtl, first);
...@@ -557,8 +538,7 @@ i386_pe_encode_section_info (decl, rtl, first) ...@@ -557,8 +538,7 @@ i386_pe_encode_section_info (decl, rtl, first)
prefix if it exists. */ prefix if it exists. */
const char * const char *
i386_pe_strip_name_encoding (str) i386_pe_strip_name_encoding (const char *str)
const char *str;
{ {
if (strncmp (str, DLL_IMPORT_PREFIX, strlen (DLL_IMPORT_PREFIX)) if (strncmp (str, DLL_IMPORT_PREFIX, strlen (DLL_IMPORT_PREFIX))
== 0) == 0)
...@@ -574,8 +554,7 @@ i386_pe_strip_name_encoding (str) ...@@ -574,8 +554,7 @@ i386_pe_strip_name_encoding (str)
/* Also strip the stdcall suffix. */ /* Also strip the stdcall suffix. */
const char * const char *
i386_pe_strip_name_encoding_full (str) i386_pe_strip_name_encoding_full (const char *str)
const char *str;
{ {
const char *p; const char *p;
const char *name = i386_pe_strip_name_encoding (str); const char *name = i386_pe_strip_name_encoding (str);
...@@ -630,9 +609,7 @@ void i386_pe_output_labelref (stream, name) ...@@ -630,9 +609,7 @@ void i386_pe_output_labelref (stream, name)
} }
void void
i386_pe_unique_section (decl, reloc) i386_pe_unique_section (tree decl, int reloc)
tree decl;
int reloc;
{ {
int len; int len;
const char *name, *prefix; const char *name, *prefix;
...@@ -678,10 +655,7 @@ i386_pe_unique_section (decl, reloc) ...@@ -678,10 +655,7 @@ i386_pe_unique_section (decl, reloc)
#define SECTION_PE_SHARED SECTION_MACH_DEP #define SECTION_PE_SHARED SECTION_MACH_DEP
unsigned int unsigned int
i386_pe_section_type_flags (decl, name, reloc) i386_pe_section_type_flags (tree decl, const char *name, int reloc)
tree decl;
const char *name;
int reloc;
{ {
static htab_t htab; static htab_t htab;
unsigned int flags; unsigned int flags;
...@@ -727,9 +701,7 @@ i386_pe_section_type_flags (decl, name, reloc) ...@@ -727,9 +701,7 @@ i386_pe_section_type_flags (decl, name, reloc)
} }
void void
i386_pe_asm_named_section (name, flags) i386_pe_asm_named_section (const char *name, unsigned int flags)
const char *name;
unsigned int flags;
{ {
char flagchars[8], *f = flagchars; char flagchars[8], *f = flagchars;
...@@ -766,10 +738,7 @@ i386_pe_asm_named_section (name, flags) ...@@ -766,10 +738,7 @@ i386_pe_asm_named_section (name, flags)
visible. */ visible. */
void void
i386_pe_declare_function_type (file, name, public) i386_pe_declare_function_type (FILE *file, const char *name, int public)
FILE *file;
const char *name;
int public;
{ {
fprintf (file, "\t.def\t"); fprintf (file, "\t.def\t");
assemble_name (file, name); assemble_name (file, name);
...@@ -795,8 +764,7 @@ static struct extern_list *extern_head; ...@@ -795,8 +764,7 @@ static struct extern_list *extern_head;
for it then. */ for it then. */
void void
i386_pe_record_external_function (name) i386_pe_record_external_function (const char *name)
const char *name;
{ {
struct extern_list *p; struct extern_list *p;
...@@ -824,9 +792,7 @@ static struct export_list *export_head; ...@@ -824,9 +792,7 @@ static struct export_list *export_head;
linkonce. */ linkonce. */
void void
i386_pe_record_exported_symbol (name, is_data) i386_pe_record_exported_symbol (const char *name, int is_data)
const char *name;
int is_data;
{ {
struct export_list *p; struct export_list *p;
...@@ -842,7 +808,7 @@ i386_pe_record_exported_symbol (name, is_data) ...@@ -842,7 +808,7 @@ i386_pe_record_exported_symbol (name, is_data)
output the .drectve section. */ output the .drectve section. */
void void
i386_pe_file_end () i386_pe_file_end (void)
{ {
struct extern_list *p; struct extern_list *p;
......
...@@ -21,77 +21,81 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -21,77 +21,81 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* Declare functions in s390.c. */ /* Declare functions in s390.c. */
extern void optimization_options PARAMS ((int, int)); extern void optimization_options (int, int);
extern void override_options PARAMS ((void)); extern void override_options (void);
extern int s390_arg_frame_offset PARAMS ((void)); extern int s390_arg_frame_offset (void);
extern void s390_load_got PARAMS ((int)); extern void s390_load_got (int);
extern void s390_emit_prologue PARAMS ((void)); extern void s390_emit_prologue (void);
extern void s390_emit_epilogue PARAMS ((void)); extern void s390_emit_epilogue (void);
extern void s390_function_profiler PARAMS ((FILE *, int)); extern void s390_function_profiler (FILE *, int);
#ifdef RTX_CODE #ifdef RTX_CODE
extern int s390_extra_constraint PARAMS ((rtx, int)); extern int s390_extra_constraint (rtx, int);
extern int const0_operand PARAMS ((rtx, enum machine_mode)); extern int const0_operand (rtx, enum machine_mode);
extern int consttable_operand PARAMS ((rtx, enum machine_mode)); extern int consttable_operand (rtx, enum machine_mode);
extern int larl_operand PARAMS ((rtx, enum machine_mode)); extern int larl_operand (rtx, enum machine_mode);
extern int s_operand PARAMS ((rtx, enum machine_mode)); extern int s_operand (rtx, enum machine_mode);
extern int s_imm_operand PARAMS ((rtx, enum machine_mode)); extern int s_imm_operand (rtx, enum machine_mode);
extern int bras_sym_operand PARAMS ((rtx, enum machine_mode)); extern int bras_sym_operand (rtx, enum machine_mode);
extern int load_multiple_operation PARAMS ((rtx, enum machine_mode)); extern int load_multiple_operation (rtx, enum machine_mode);
extern int store_multiple_operation PARAMS ((rtx, enum machine_mode)); extern int store_multiple_operation (rtx, enum machine_mode);
extern int s390_single_hi PARAMS ((rtx, enum machine_mode, int)); extern int s390_single_hi (rtx, enum machine_mode, int);
extern int s390_extract_hi PARAMS ((rtx, enum machine_mode, int)); extern int s390_extract_hi (rtx, enum machine_mode, int);
extern int s390_single_qi PARAMS ((rtx, enum machine_mode, int)); extern int s390_single_qi (rtx, enum machine_mode, int);
extern int s390_extract_qi PARAMS ((rtx, enum machine_mode, int)); extern int s390_extract_qi (rtx, enum machine_mode, int);
extern bool s390_split_ok_p PARAMS ((rtx, rtx, enum machine_mode, int)); extern bool s390_split_ok_p (rtx, rtx, enum machine_mode, int);
extern int tls_symbolic_operand PARAMS ((rtx)); extern int tls_symbolic_operand (rtx);
extern int s390_match_ccmode PARAMS ((rtx, enum machine_mode)); extern int s390_match_ccmode (rtx, enum machine_mode);
extern enum machine_mode s390_tm_ccmode PARAMS ((rtx, rtx, int)); extern enum machine_mode s390_tm_ccmode (rtx, rtx, int);
extern enum machine_mode s390_select_ccmode PARAMS ((enum rtx_code, rtx, rtx)); extern enum machine_mode s390_select_ccmode (enum rtx_code, rtx, rtx);
extern int symbolic_reference_mentioned_p PARAMS ((rtx)); extern int symbolic_reference_mentioned_p (rtx);
extern int tls_symbolic_reference_mentioned_p PARAMS ((rtx)); extern int tls_symbolic_reference_mentioned_p (rtx);
extern rtx s390_tls_get_offset PARAMS ((void)); extern rtx s390_tls_get_offset (void);
extern int legitimate_la_operand_p PARAMS ((rtx)); extern int legitimate_la_operand_p (rtx);
extern int preferred_la_operand_p PARAMS ((rtx)); extern int preferred_la_operand_p (rtx);
extern int legitimate_pic_operand_p PARAMS ((rtx)); extern int legitimate_pic_operand_p (rtx);
extern int legitimate_constant_p PARAMS ((rtx)); extern int legitimate_constant_p (rtx);
extern int legitimate_reload_constant_p PARAMS ((rtx)); extern int legitimate_reload_constant_p (rtx);
extern int legitimate_address_p PARAMS ((enum machine_mode, rtx, int)); extern int legitimate_address_p (enum machine_mode, rtx, int);
extern rtx legitimize_pic_address PARAMS ((rtx, rtx)); extern rtx legitimize_pic_address (rtx, rtx);
extern rtx legitimize_address PARAMS ((rtx, rtx, enum machine_mode)); extern rtx legitimize_address (rtx, rtx, enum machine_mode);
extern enum reg_class s390_preferred_reload_class PARAMS ((rtx, enum reg_class)); extern enum reg_class s390_preferred_reload_class (rtx, enum reg_class);
extern enum reg_class s390_secondary_input_reload_class PARAMS ((enum reg_class, enum machine_mode, rtx)); extern enum reg_class s390_secondary_input_reload_class (enum reg_class,
extern enum reg_class s390_secondary_output_reload_class PARAMS ((enum reg_class, enum machine_mode, rtx)); enum machine_mode,
extern int s390_plus_operand PARAMS ((rtx, enum machine_mode)); rtx);
extern void s390_expand_plus_operand PARAMS ((rtx, rtx, rtx)); extern enum reg_class s390_secondary_output_reload_class (enum reg_class,
extern void emit_symbolic_move PARAMS ((rtx *)); enum machine_mode,
extern void s390_load_address PARAMS ((rtx, rtx)); rtx);
extern void s390_expand_movstr PARAMS ((rtx, rtx, rtx)); extern int s390_plus_operand (rtx, enum machine_mode);
extern void s390_expand_clrstr PARAMS ((rtx, rtx)); extern void s390_expand_plus_operand (rtx, rtx, rtx);
extern void s390_expand_cmpmem PARAMS ((rtx, rtx, rtx, rtx)); extern void emit_symbolic_move (rtx *);
extern rtx s390_return_addr_rtx PARAMS ((int, rtx)); extern void s390_load_address (rtx, rtx);
extern void s390_expand_movstr (rtx, rtx, rtx);
extern void s390_expand_clrstr (rtx, rtx);
extern void s390_expand_cmpmem (rtx, rtx, rtx, rtx);
extern rtx s390_return_addr_rtx (int, rtx);
extern void s390_output_symbolic_const PARAMS ((FILE *, rtx)); extern void s390_output_symbolic_const (FILE *, rtx);
extern void print_operand_address PARAMS ((FILE *, rtx)); extern void print_operand_address (FILE *, rtx);
extern void print_operand PARAMS ((FILE *, rtx, int)); extern void print_operand (FILE *, rtx, int);
extern void s390_output_constant_pool PARAMS ((rtx, rtx)); extern void s390_output_constant_pool (rtx, rtx);
extern void s390_trampoline_template PARAMS ((FILE *)); extern void s390_trampoline_template (FILE *);
extern void s390_initialize_trampoline PARAMS ((rtx, rtx, rtx)); extern void s390_initialize_trampoline (rtx, rtx, rtx);
extern rtx s390_gen_rtx_const_DI PARAMS ((int, int)); extern rtx s390_gen_rtx_const_DI (int, int);
extern void s390_output_dwarf_dtprel PARAMS ((FILE*, int, rtx)); extern void s390_output_dwarf_dtprel (FILE*, int, rtx);
extern int s390_agen_dep_p PARAMS ((rtx, rtx)); extern int s390_agen_dep_p (rtx, rtx);
#endif /* RTX_CODE */ #endif /* RTX_CODE */
#ifdef TREE_CODE #ifdef TREE_CODE
extern int s390_function_arg_pass_by_reference PARAMS ((enum machine_mode, tree)); extern int s390_function_arg_pass_by_reference (enum machine_mode, tree);
extern void s390_function_arg_advance PARAMS ((CUMULATIVE_ARGS *, enum machine_mode, tree, int)); extern void s390_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
extern tree s390_build_va_list PARAMS ((void)); tree, int);
extern tree s390_build_va_list (void);
#ifdef RTX_CODE #ifdef RTX_CODE
extern rtx s390_function_arg PARAMS ((CUMULATIVE_ARGS *, enum machine_mode, tree, int)); extern rtx s390_function_arg (CUMULATIVE_ARGS *, enum machine_mode, tree, int);
extern void s390_va_start PARAMS ((tree, rtx)); extern void s390_va_start (tree, rtx);
extern rtx s390_va_arg PARAMS ((tree, tree)); extern rtx s390_va_arg (tree, tree);
#endif /* RTX_CODE */ #endif /* RTX_CODE */
#endif /* TREE_CODE */ #endif /* TREE_CODE */
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