]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/toplev.h
Update Copyright years for files modified in 2011 and/or 2012.
[thirdparty/gcc.git] / gcc / toplev.h
CommitLineData
9cdfa0b0 1/* toplev.h - Various declarations for functions found in toplev.c
50ca7c37 2 Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
71e45bc2 3 2008, 2009, 2010, 2011, 2012
50ca7c37 4 Free Software Foundation, Inc.
70d11e67 5
f12b58b3 6This file is part of GCC.
70d11e67 7
f12b58b3 8GCC is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
8c4c00c1 10Software Foundation; either version 3, or (at your option) any later
f12b58b3 11version.
70d11e67 12
f12b58b3 13GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
70d11e67 17
18You should have received a copy of the GNU General Public License
8c4c00c1 19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
9cdfa0b0 21
2a281353 22#ifndef GCC_TOPLEV_H
23#define GCC_TOPLEV_H
9cdfa0b0 24
e3d1ab2b 25/* Decoded options, and number of such options. */
26extern struct cl_decoded_option *save_decoded_options;
27extern unsigned int save_decoded_options_count;
28
46782931 29extern int toplev_main (int, char **);
b2c4af5e 30extern void rest_of_decl_compilation (tree, int, int);
00ea394c 31extern void rest_of_type_compilation (tree, int);
77fce4cd 32extern void init_optimization_passes (void);
a49a878f 33extern void finish_optimization_passes (void);
5d48fdb4 34extern bool enable_rtl_dump_file (void);
00ea394c 35
596981c8 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. */
39extern void init_eh (void);
40
00ea394c 41extern void announce_function (tree);
42
c131e678 43extern void wrapup_global_declaration_1 (tree);
44extern bool wrapup_global_declaration_2 (tree);
45extern bool wrapup_global_declarations (tree *, int);
46extern void check_global_declaration_1 (tree);
00ea394c 47extern void check_global_declarations (tree *, int);
c131e678 48extern void emit_debug_global_declarations (tree *, int);
40109983 49extern void write_global_declarations (void);
9ea83430 50
51949610 51extern void dump_memory_report (bool);
5168ef25 52extern void dump_profile_report (void);
51949610 53
6d8b68a3 54extern void target_reinit (void);
55
b80f1d67 56/* A unique local time stamp, might be zero if none is available. */
57extern unsigned local_tick;
58
065efcb1 59/* True if the user has tagged the function with the 'section'
60 attribute. */
61
62extern bool user_defined_section_attribute;
63
1e06725a 64/* See toplev.c. */
d743aba2 65extern int flag_rerun_cse_after_global_opts;
1e06725a 66
e690b385 67extern void print_version (FILE *, const char *);
68
0d086e18 69/* The hashtable, so that the C front ends can pass it to cpplib. */
70extern struct ht *ident_hash;
71
e7aa92b2 72/* Functions used to get and set GCC's notion of in what directory
73 compilation was started. */
74
75extern const char *get_src_pwd (void);
76extern bool set_src_pwd (const char *);
77
b6c1bd72 78/* Functions used to manipulate the random seed. */
79
badc6cfa 80extern HOST_WIDE_INT get_random_seed (bool);
b6c1bd72 81extern const char *set_random_seed (const char *);
82
2a281353 83#endif /* ! GCC_TOPLEV_H */