i386.c (legitimize_tls_address): Generate tls_initial_exec_64_sun only when !TARGET_X32.
[gcc.git] / gcc / toplev.h
1 /* toplev.h - Various declarations for functions found in toplev.c
2 Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
3 2008, 2009, 2010
4 Free Software Foundation, Inc.
5
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
11 version.
12
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
21
22 #ifndef GCC_TOPLEV_H
23 #define GCC_TOPLEV_H
24
25 /* Decoded options, and number of such options. */
26 extern struct cl_decoded_option *save_decoded_options;
27 extern unsigned int save_decoded_options_count;
28
29 extern int toplev_main (int, char **);
30 extern void rest_of_decl_compilation (tree, int, int);
31 extern void rest_of_type_compilation (tree, int);
32 extern void init_optimization_passes (void);
33 extern void finish_optimization_passes (void);
34 extern bool enable_rtl_dump_file (void);
35
36 /* In except.c. Initialize exception handling. This is used by the Ada
37 and LTO front ends to initialize EH "on demand". See lto-streamer-in.c
38 and ada/gcc-interface/misc.c. */
39 extern void init_eh (void);
40
41 extern void announce_function (tree);
42
43 extern void wrapup_global_declaration_1 (tree);
44 extern bool wrapup_global_declaration_2 (tree);
45 extern bool wrapup_global_declarations (tree *, int);
46 extern void check_global_declaration_1 (tree);
47 extern void check_global_declarations (tree *, int);
48 extern void emit_debug_global_declarations (tree *, int);
49 extern void write_global_declarations (void);
50
51 extern void dump_memory_report (bool);
52
53 extern void target_reinit (void);
54
55 /* A unique local time stamp, might be zero if none is available. */
56 extern unsigned local_tick;
57
58 /* True if the user has tagged the function with the 'section'
59 attribute. */
60
61 extern bool user_defined_section_attribute;
62
63 /* See toplev.c. */
64 extern int flag_rerun_cse_after_global_opts;
65
66 extern void print_version (FILE *, const char *);
67
68 /* The hashtable, so that the C front ends can pass it to cpplib. */
69 extern struct ht *ident_hash;
70
71 /* Functions used to get and set GCC's notion of in what directory
72 compilation was started. */
73
74 extern const char *get_src_pwd (void);
75 extern bool set_src_pwd (const char *);
76
77 /* Functions used to manipulate the random seed. */
78
79 extern HOST_WIDE_INT get_random_seed (bool);
80 extern const char *set_random_seed (const char *);
81
82 #endif /* ! GCC_TOPLEV_H */