OSDN Git Service

Backport from mainline
[pf3gnuchains/gcc-fork.git] / gcc / config / v850 / v850-protos.h
1 /* Prototypes for v850.c functions used in the md file & elsewhere.
2    Copyright (C) 1999, 2000, 2002, 2004, 2005, 2007, 2010, 2011
3    Free Software Foundation, Inc.
4
5    This file is part of GCC.
6
7    GCC is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3, or (at your option)
10    any later version.
11
12    GCC is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with GCC; see the file COPYING3.  If not see
19    <http://www.gnu.org/licenses/>.  */
20
21 /* Function prototypes that cannot exist in v850.h due to dependency
22    complications.  */
23 #ifndef GCC_V850_PROTOS_H
24 #define GCC_V850_PROTOS_H
25
26 extern void   expand_prologue               (void);
27 extern void   expand_epilogue               (void);
28 extern int    v850_handle_pragma            (int (*)(void), void (*)(int), char *);
29 extern int    compute_register_save_size    (long *);
30 extern int    compute_frame_size            (int, long *);
31 extern void   v850_init_expanders           (void);
32
33 #ifdef RTX_CODE
34 extern rtx    v850_return_addr              (int);
35 extern const char *output_move_single       (rtx *);
36 extern void   notice_update_cc              (rtx, rtx);
37 extern char * construct_save_jarl           (rtx);
38 extern char * construct_restore_jr          (rtx);
39 #ifdef HAVE_MACHINE_MODES
40 extern char * construct_dispose_instruction (rtx);
41 extern char * construct_prepare_instruction (rtx);
42 extern int    ep_memory_operand             (rtx, enum machine_mode, int);
43 extern int    v850_float_z_comparison_operator (rtx, enum machine_mode);
44 extern int    v850_float_nz_comparison_operator (rtx, enum machine_mode);
45 extern rtx    v850_gen_compare              (enum rtx_code, enum machine_mode,
46                                              rtx, rtx);
47 extern enum machine_mode  v850_gen_float_compare (enum rtx_code,
48                                                   enum machine_mode, rtx, rtx);
49 extern enum machine_mode  v850_select_cc_mode (RTX_CODE, rtx, rtx);
50 #endif
51 #endif /* RTX_CODE */
52
53 #ifdef TREE_CODE
54 extern int    v850_interrupt_function_p     (tree);
55 extern void   v850_output_aligned_bss       (FILE *, tree, const char *, unsigned HOST_WIDE_INT, int);
56 extern void   v850_output_common            (FILE *, tree, const char *, int, int);
57 extern void   v850_output_local             (FILE *, tree, const char *, int, int);
58 extern v850_data_area v850_get_data_area    (tree);
59 #endif
60
61 extern void ghs_pragma_section              (struct cpp_reader *);
62 extern void ghs_pragma_interrupt            (struct cpp_reader *);
63 extern void ghs_pragma_starttda             (struct cpp_reader *);
64 extern void ghs_pragma_startsda             (struct cpp_reader *);
65 extern void ghs_pragma_startzda             (struct cpp_reader *);
66 extern void ghs_pragma_endtda               (struct cpp_reader *);
67 extern void ghs_pragma_endsda               (struct cpp_reader *);
68 extern void ghs_pragma_endzda               (struct cpp_reader *);
69
70 #endif /* ! GCC_V850_PROTOS_H */