aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-05-12 10:03:35 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-05-12 10:03:35 -0700
commit6412341ec950b23d76e52b89f052aab8efeee039 (patch)
treefaf172f00e3f58c6afc1cab99d70fce44d9bcd74
parente4447d94d9fa82376d1aded4956ec16e5fb558fd (diff)
downloadgcc-6412341ec950b23d76e52b89f052aab8efeee039.zip
gcc-6412341ec950b23d76e52b89f052aab8efeee039.tar.gz
gcc-6412341ec950b23d76e52b89f052aab8efeee039.tar.bz2
profile.h (profile_info): Add missing extern to declaration.
* profile.h (profile_info): Add missing extern to declaration. * profile.c (profile_info): Define it. From-SVN: r53400
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/profile.c4
-rw-r--r--gcc/profile.h6
3 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c79a2db..627ed8e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-12 Richard Henderson <rth@redhat.com>
+
+ * profile.h (profile_info): Add missing extern to declaration.
+ * profile.c (profile_info): Define it.
+
2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
diff --git a/gcc/profile.c b/gcc/profile.c
index 6fa4e12..60159a3 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -79,6 +79,10 @@ struct bb_info
: ((bb) == EXIT_BLOCK_PTR \
? n_basic_blocks + 1 : (bb)->index + 1))
+/* Instantiate the profile info structure. */
+
+struct profile_info profile_info;
+
/* Name and file pointer of the output file for the basic block graph. */
static FILE *bbg_file;
diff --git a/gcc/profile.h b/gcc/profile.h
index a6bc7ee..609b0d3 100644
--- a/gcc/profile.h
+++ b/gcc/profile.h
@@ -21,7 +21,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifndef GCC_PROFILE_H
#define GCC_PROFILE_H
-struct
+struct profile_info
{
/* Used by final, for allocating the proper amount of storage for the
instrumented arc execution counts. */
@@ -47,6 +47,8 @@ struct
function. */
int count_profiles_merged;
- } profile_info;
+ };
+
+extern struct profile_info profile_info;
#endif