From 6867cd697690acf81d3eb4fe7d1e4eb085850d8d Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 18 Apr 2018 22:09:33 +0200 Subject: [PATCH] Fix coding style and typos. 2018-04-18 Martin Liska * ipa-devirt.c (odr_subtypes_equivalent_p): Fix GNU coding style. 2018-04-18 Martin Liska * lto.c (lto_read_decls): Fix GNU coding style and typos. From-SVN: r259480 --- gcc/ChangeLog | 5 +++++ gcc/ipa-devirt.c | 2 +- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto.c | 6 +++--- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e214a7166e9..94d2b24e0f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-04-18 Martin Liska + + * ipa-devirt.c (odr_subtypes_equivalent_p): Fix GNU coding + style. + 2018-04-18 Martin Liska Revert diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index a0c095e1d5d..308b6e6cdd5 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -685,7 +685,7 @@ odr_subtypes_equivalent_p (tree t1, tree t2, if (!types_same_for_odr (t1, t2, true)) return false; /* 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) return true; } diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 3df8fe8d775..3c6af8f7d16 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2018-04-18 Martin Liska + + * lto.c (lto_read_decls): Fix GNU coding style and typos. + 2018-04-18 Martin Liska PR ipa/83983 diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 1a6b18d3e34..1c55f3f691a 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1808,9 +1808,9 @@ lto_read_decls (struct lto_file_decl_data *decl_data, const void *data, num_prevailing_types++; lto_fixup_prevailing_type (t); - /* Compute the canonical type of all types. - Because SCC components ar estreame in random (hash) order - we may have enountered the type before while registering + /* Compute the canonical type of all types. + Because SCC components are streamed in random (hash) order + we may have encountered the type before while registering type canonical of a derived type in the same SCC. */ if (!TYPE_CANONICAL (t)) gimple_register_canonical_type (t); -- 2.30.2