Commit dafb7b56 by Jan Hubicka Committed by Jan Hubicka

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
parent 37e5311a
2015-05-09 Jan Hubicka <hubicka@ucw.cz> 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
Patch by Richard Biener
* coverage.c (coverage_obj_init): Delay building of type variant
until the type is finished.
2015-05-09 Jan Hubicka <hubicka@ucw.cz>
* ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
mismatch between C and C++ type; compoare correctly ARG_TYPES mismatch between C and C++ type; compoare correctly ARG_TYPES
for non-prototypes and output correctly parameter index for METHOD_TYPE. for non-prototypes and output correctly parameter index for METHOD_TYPE.
......
...@@ -1141,9 +1141,10 @@ coverage_obj_init (void) ...@@ -1141,9 +1141,10 @@ coverage_obj_init (void)
/* Build the info and fn_info types. These are mutually recursive. */ /* Build the info and fn_info types. These are mutually recursive. */
gcov_info_type = lang_hooks.types.make_type (RECORD_TYPE); gcov_info_type = lang_hooks.types.make_type (RECORD_TYPE);
gcov_fn_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 gcov_fn_info_ptr_type = build_pointer_type
(build_qualified_type (gcov_fn_info_type, TYPE_QUAL_CONST)); (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_info_type (gcov_info_type, gcov_fn_info_ptr_type);
/* Build the gcov info var, this is referred to in its own /* Build the gcov info var, this is referred to in its own
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment