OSDN Git Service

9a9c9538572a9e4570acc2fbad08efe3d531452b
[pf3gnuchains/gcc-fork.git] / gcc / config / darwin-protos.h
1 /* Prototypes.
2    Copyright (C) 2001, 2002 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 extern int name_needs_quotes PARAMS ((const char *));
22
23 extern void machopic_validate_stub_or_non_lazy_ptr PARAMS ((const char *, int));
24
25 extern char *machopic_function_base_name PARAMS ((void));
26 extern char *machopic_non_lazy_ptr_name PARAMS ((const char*));
27 extern char *machopic_stub_name PARAMS ((const char*));
28
29 extern void machopic_add_gc_roots PARAMS ((void));
30
31 extern void machopic_picsymbol_stub_section PARAMS ((void));
32 extern void machopic_symbol_stub_section PARAMS ((void));
33 extern void machopic_lazy_symbol_ptr_section PARAMS ((void));
34 extern void machopic_nl_symbol_ptr_section PARAMS ((void));
35
36 extern void constructor_section PARAMS ((void));
37 extern void destructor_section PARAMS ((void));
38 extern void mod_init_section PARAMS ((void));
39 extern void mod_term_section PARAMS ((void));
40
41 #ifdef RTX_CODE
42
43 extern int machopic_operand_p PARAMS ((rtx));
44 extern enum machopic_addr_class machopic_classify_name PARAMS ((const char*));
45
46 extern rtx machopic_indirect_data_reference PARAMS ((rtx, rtx));
47 extern rtx machopic_indirect_call_target PARAMS ((rtx));
48 extern rtx machopic_legitimize_pic_address PARAMS ((rtx, enum machine_mode, rtx));
49
50 extern void machopic_asm_out_constructor PARAMS ((rtx, int));
51 extern void machopic_asm_out_destructor PARAMS ((rtx, int));
52 #endif /* RTX_CODE */
53
54 #ifdef TREE_CODE
55
56 extern enum machopic_addr_class machopic_classify_ident PARAMS ((tree));
57 extern void machopic_define_ident PARAMS ((tree));
58 extern void machopic_define_name PARAMS ((const char*));
59 extern int machopic_name_defined_p PARAMS ((const char*));
60 extern int machopic_ident_defined_p PARAMS ((tree));
61 extern void darwin_encode_section_info PARAMS ((tree, int));
62
63 #endif /* TREE_CODE */
64
65 extern void machopic_finish PARAMS ((FILE *));
66
67 extern void machopic_output_possible_stub_label PARAMS ((FILE *, const char*));
68
69 extern void darwin_exception_section PARAMS ((void));
70 extern void darwin_eh_frame_section PARAMS ((void));
71 extern void machopic_select_section PARAMS ((tree, int,
72                                              unsigned HOST_WIDE_INT));
73
74 #ifdef GCC_C_PRAGMA_H
75 extern void darwin_pragma_ignore PARAMS ((cpp_reader *));
76 extern void darwin_pragma_options PARAMS ((cpp_reader *));
77 extern void darwin_pragma_unused PARAMS ((cpp_reader *));
78 #endif