Commit 6867cd69 by Martin Liska Committed by Martin Liska

Fix coding style and typos.

2018-04-18  Martin Liska  <mliska@suse.cz>

	* ipa-devirt.c (odr_subtypes_equivalent_p): Fix GNU coding
	style.
2018-04-18  Martin Liska  <mliska@suse.cz>

	* lto.c (lto_read_decls): Fix GNU coding style and typos.

From-SVN: r259480
parent af597536
2018-04-18 Martin Liska <mliska@suse.cz> 2018-04-18 Martin Liska <mliska@suse.cz>
* ipa-devirt.c (odr_subtypes_equivalent_p): Fix GNU coding
style.
2018-04-18 Martin Liska <mliska@suse.cz>
Revert Revert
2018-03-02 Eric Botcazou <ebotcazou@adacore.com> 2018-03-02 Eric Botcazou <ebotcazou@adacore.com>
......
...@@ -685,7 +685,7 @@ odr_subtypes_equivalent_p (tree t1, tree t2, ...@@ -685,7 +685,7 @@ odr_subtypes_equivalent_p (tree t1, tree t2,
if (!types_same_for_odr (t1, t2, true)) if (!types_same_for_odr (t1, t2, true))
return false; return false;
/* Limit recursion: If subtypes are ODR types and we know /* Limit recursion: If subtypes are ODR types and we know
that they are same, be happy. */ that they are same, be happy. */
if (!odr_type_p (t1) || !get_odr_type (t1, true)->odr_violated) if (!odr_type_p (t1) || !get_odr_type (t1, true)->odr_violated)
return true; return true;
} }
......
2018-04-18 Martin Liska <mliska@suse.cz> 2018-04-18 Martin Liska <mliska@suse.cz>
* lto.c (lto_read_decls): Fix GNU coding style and typos.
2018-04-18 Martin Liska <mliska@suse.cz>
PR ipa/83983 PR ipa/83983
PR ipa/85391 PR ipa/85391
* lto.c (cmp_type_location): New function. * lto.c (cmp_type_location): New function.
......
...@@ -1808,9 +1808,9 @@ lto_read_decls (struct lto_file_decl_data *decl_data, const void *data, ...@@ -1808,9 +1808,9 @@ lto_read_decls (struct lto_file_decl_data *decl_data, const void *data,
num_prevailing_types++; num_prevailing_types++;
lto_fixup_prevailing_type (t); lto_fixup_prevailing_type (t);
/* Compute the canonical type of all types. /* Compute the canonical type of all types.
Because SCC components ar estreame in random (hash) order Because SCC components are streamed in random (hash) order
we may have enountered the type before while registering we may have encountered the type before while registering
type canonical of a derived type in the same SCC. */ type canonical of a derived type in the same SCC. */
if (!TYPE_CANONICAL (t)) if (!TYPE_CANONICAL (t))
gimple_register_canonical_type (t); gimple_register_canonical_type (t);
......
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