aboutsummaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-05-11 04:48:49 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2015-05-11 02:48:49 +0000
commitdafb7b56f1c4dd89194621bb76609e99deb0bc72 (patch)
treee55c02856cfaf41545f0cb0935e0cc9bc5a97811 /gcc/coverage.c
parent37e5311a0a33fe241bdf4ed25c37fb83fd76d10a (diff)
downloadgcc-dafb7b56f1c4dd89194621bb76609e99deb0bc72.zip
gcc-dafb7b56f1c4dd89194621bb76609e99deb0bc72.tar.gz
gcc-dafb7b56f1c4dd89194621bb76609e99deb0bc72.tar.bz2
Patch by Richard Biener
Patch by Richard Biener * coverage.c (coverage_obj_init): Delay building of type variant until the type is finished. From-SVN: r222990
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r--gcc/coverage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c
index e1d81ff..ff7249a 100644
--- a/gcc/coverage.c
+++ b/gcc/coverage.c
@@ -1141,9 +1141,10 @@ coverage_obj_init (void)
/* Build the info and fn_info types. These are mutually recursive. */
gcov_info_type = lang_hooks.types.make_type (RECORD_TYPE);
gcov_fn_info_type = lang_hooks.types.make_type (RECORD_TYPE);
+ build_fn_info_type (gcov_fn_info_type, n_counters, gcov_info_type);
+ gcov_info_type = lang_hooks.types.make_type (RECORD_TYPE);
gcov_fn_info_ptr_type = build_pointer_type
(build_qualified_type (gcov_fn_info_type, TYPE_QUAL_CONST));
- build_fn_info_type (gcov_fn_info_type, n_counters, gcov_info_type);
build_info_type (gcov_info_type, gcov_fn_info_ptr_type);
/* Build the gcov info var, this is referred to in its own