PR libstdc++/9527, PR libstdc++/8713
[official-gcc.git] / gcc / profile.h
blob4b7ac56d1e4594711ac667a2ccd7a1f059adca4d
1 /* profile.h - Defines data exported from profile.c to other passes.
2 Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
21 #ifndef GCC_PROFILE_H
22 #define GCC_PROFILE_H
24 struct profile_info
26 /* Used by final, for allocating the proper amount of storage for the
27 instrumented arc execution counts. */
29 int count_instrumented_edges;
31 /* Used by final, for writing correct # of instrumented edges
32 in this function. */
34 int count_edges_instrumented_now;
36 /* Checksum of the cfg. Used for 'identification' of code.
37 Used by final. */
39 unsigned current_function_cfg_checksum;
41 /* Max. value of counter in program corresponding to the profile data
42 for the current function. */
44 gcov_type max_counter_in_program;
46 /* The number of profiles merged to form the profile data for the current
47 function. */
48 int count_profiles_merged;
52 extern struct profile_info profile_info;
54 #endif