2000-01-14 17:57:31 -05:00
|
|
|
/* Definitions of target machine for GNU compiler.
|
|
|
|
Hitachi H8/300 version generating coff
|
|
|
|
Copyright (C) 2000 Free SoftwareFoundation, Inc.
|
|
|
|
Contributed by Steve Chamberlain (sac@cygnus.com),
|
|
|
|
Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com).
|
|
|
|
|
|
|
|
This file is part of GNU CC.
|
|
|
|
|
|
|
|
GNU CC is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
GNU CC is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with GNU CC; see the file COPYING. If not, write to
|
|
|
|
the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
|
c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if REGISTER_TARGET_PRAGMAS is defined.
* c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
REGISTER_TARGET_PRAGMAS is defined. Duplicate some
definitions from cpplib.h.
* cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
already done it.
* tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
documentation for REGISTER_TARGET_PRAGMAS.
* c-lex.c: Include cpplib.h before c-pragma.h. Define a
default-pragma callback to implement -Wunknown-pragmas if
USE_CPPLIB.
* c-parse.in: Move all includes to top of file.
* c-pragma.c: Include cpplib.h before c-pragma.h. Include
tm_p.h.
(dispatch_pragma): Put the namespace in the -Wunknown-pragmas
warning.
(init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
* arm.h, arm-protos.h, arm.c,
c4x.h, c4x-protos.h, c4x.c,
h8300.h, h8300-protos.h, h8300.c,
i370.h, i370-protos.h, i370.c,
i960.h, i960-protos.h, i960.c,
sh.h, sh-protos.h, sh.c,
v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
* d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
multiple include guard.
* i370.md (untyped_call): Use GEN_CALL.
(umodsi3): Remove unused variable.
* sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
* v850.c (output_move_single, output_move_double): Constify
return value.
(print_operand): Constify a char *.
* v850.h (struct small_memory_info): Constify name member.
From-SVN: r36249
2000-09-07 18:24:34 -04:00
|
|
|
#ifndef GCC_H8300_PROTOS_H
|
|
|
|
#define GCC_H8300_PROTOS_H
|
|
|
|
|
2000-01-14 17:57:31 -05:00
|
|
|
/* Declarations for functions used in insn-output.c. */
|
|
|
|
#ifdef RTX_CODE
|
|
|
|
extern const char *emit_a_shift PARAMS ((rtx, rtx *));
|
2000-08-10 21:43:47 -04:00
|
|
|
extern const char *emit_a_rotate PARAMS ((int, rtx *));
|
2000-01-14 17:57:31 -05:00
|
|
|
extern const char *output_adds_subs PARAMS ((rtx *));
|
2000-07-06 00:08:07 -04:00
|
|
|
extern const char *output_simode_bld PARAMS ((int, int, rtx[]));
|
2000-01-14 17:57:31 -05:00
|
|
|
extern void print_operand_address PARAMS ((FILE *, rtx));
|
|
|
|
extern const char *byte_reg PARAMS ((rtx, int));
|
|
|
|
extern int const_costs PARAMS ((rtx, enum rtx_code));
|
|
|
|
extern void print_operand PARAMS ((FILE *, rtx, int));
|
|
|
|
extern void final_prescan_insn PARAMS ((rtx, rtx *, int));
|
|
|
|
extern int do_movsi PARAMS ((rtx[]));
|
|
|
|
extern void notice_update_cc PARAMS ((rtx, rtx));
|
|
|
|
extern int expand_a_shift PARAMS ((enum machine_mode, int, rtx[]));
|
2000-08-10 21:43:47 -04:00
|
|
|
extern int expand_a_rotate PARAMS ((int, rtx[]));
|
2000-01-14 17:57:31 -05:00
|
|
|
extern int fix_bit_operand PARAMS ((rtx *, int, enum rtx_code));
|
|
|
|
extern int h8300_adjust_insn_length PARAMS ((rtx, int));
|
2000-05-18 12:52:10 -04:00
|
|
|
extern void split_adds_subs PARAMS ((enum machine_mode, rtx[]));
|
2000-01-14 17:57:31 -05:00
|
|
|
|
|
|
|
extern int general_operand_src PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int general_operand_dst PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int o_operand PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int p_operand PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int call_insn_operand PARAMS ((rtx, enum machine_mode));
|
2000-05-18 12:52:10 -04:00
|
|
|
extern int two_insn_adds_subs_operand PARAMS ((rtx, enum machine_mode));
|
2000-01-14 17:57:31 -05:00
|
|
|
extern int small_call_insn_operand PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int jump_address_operand PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int bit_operand PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int bit_memory_operand PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int eq_operator PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int bit_operator PARAMS ((rtx, enum machine_mode));
|
|
|
|
extern int nshift_operator PARAMS ((rtx, enum machine_mode));
|
|
|
|
#endif /* RTX_CODE */
|
|
|
|
|
|
|
|
#ifdef TREE_CODE
|
|
|
|
extern struct rtx_def *function_arg PARAMS ((CUMULATIVE_ARGS *,
|
|
|
|
enum machine_mode, tree, int));
|
|
|
|
extern int h8300_valid_machine_decl_attribute PARAMS ((tree, tree, tree,
|
|
|
|
tree));
|
|
|
|
extern int h8300_funcvec_function_p PARAMS ((tree));
|
|
|
|
extern int h8300_eightbit_data_p PARAMS ((tree));
|
|
|
|
extern int h8300_tiny_data_p PARAMS ((tree));
|
|
|
|
extern void h8300_encode_label PARAMS ((tree));
|
|
|
|
#endif /* TREE_CODE */
|
|
|
|
|
|
|
|
extern void h8300_init_once PARAMS ((void));
|
|
|
|
extern void function_prologue PARAMS ((FILE *, int));
|
|
|
|
extern void function_epilogue PARAMS ((FILE *, int));
|
|
|
|
extern void asm_file_start PARAMS ((FILE *));
|
|
|
|
extern void asm_file_end PARAMS ((FILE *));
|
2000-05-18 12:52:10 -04:00
|
|
|
extern int ok_for_bclr PARAMS ((HOST_WIDE_INT));
|
|
|
|
extern int small_power_of_two PARAMS ((HOST_WIDE_INT));
|
2000-01-14 17:57:31 -05:00
|
|
|
extern int initial_offset PARAMS ((int, int));
|
c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if REGISTER_TARGET_PRAGMAS is defined.
* c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
REGISTER_TARGET_PRAGMAS is defined. Duplicate some
definitions from cpplib.h.
* cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
already done it.
* tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
documentation for REGISTER_TARGET_PRAGMAS.
* c-lex.c: Include cpplib.h before c-pragma.h. Define a
default-pragma callback to implement -Wunknown-pragmas if
USE_CPPLIB.
* c-parse.in: Move all includes to top of file.
* c-pragma.c: Include cpplib.h before c-pragma.h. Include
tm_p.h.
(dispatch_pragma): Put the namespace in the -Wunknown-pragmas
warning.
(init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
* arm.h, arm-protos.h, arm.c,
c4x.h, c4x-protos.h, c4x.c,
h8300.h, h8300-protos.h, h8300.c,
i370.h, i370-protos.h, i370.c,
i960.h, i960-protos.h, i960.c,
sh.h, sh-protos.h, sh.c,
v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
* d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
multiple include guard.
* i370.md (untyped_call): Use GEN_CALL.
(umodsi3): Remove unused variable.
* sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
* v850.c (output_move_single, output_move_double): Constify
return value.
(print_operand): Constify a char *.
* v850.h (struct small_memory_info): Constify name member.
From-SVN: r36249
2000-09-07 18:24:34 -04:00
|
|
|
|
|
|
|
#ifdef _C_PRAGMA_H
|
|
|
|
extern void h8300_pr_interrupt PARAMS ((cpp_reader *));
|
|
|
|
extern void h8300_pr_saveall PARAMS ((cpp_reader *));
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* GCC_H8300_PROTOS_H */
|