aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-04-18 22:09:33 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-04-18 20:09:33 +0000
commit6867cd697690acf81d3eb4fe7d1e4eb085850d8d (patch)
treecceaae03ea4cb0063e82805b5d841cbf697b1ac6
parentaf5975362b21c2a1268aac5b02545de482a2cc7c (diff)
downloadgcc-6867cd697690acf81d3eb4fe7d1e4eb085850d8d.zip
gcc-6867cd697690acf81d3eb4fe7d1e4eb085850d8d.tar.gz
gcc-6867cd697690acf81d3eb4fe7d1e4eb085850d8d.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-devirt.c2
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c6
4 files changed, 13 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e214a716..94d2b24 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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
2018-03-02 Eric Botcazou <ebotcazou@adacore.com>
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index a0c095e..308b6e6 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 3df8fe8..3c6af8f 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,5 +1,9 @@
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/85391
* lto.c (cmp_type_location): New function.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 1a6b18d..1c55f3f 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);