re PR tree-optimization/80021 (untranslateable diagnostic "type variant differs by...
authorJakub Jelinek <jakub@redhat.com>
Sat, 7 Apr 2018 10:57:53 +0000 (12:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 7 Apr 2018 10:57:53 +0000 (12:57 +0200)
PR tree-optimization/80021
* tree.c (verify_type_variant): Make error call in verify_variant_match
translatable and remove final full stop.

From-SVN: r259211

gcc/ChangeLog
gcc/tree.c

index 2c44527..a263974 100644 (file)
@@ -1,3 +1,9 @@
+2018-04-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/80021
+       * tree.c (verify_type_variant): Make error call in verify_variant_match
+       translatable and remove final full stop.
+
 2018-04-07  Chung-Ju Wu  <jasonwucj@gmail.com>
 
        * config/nds32/constants.md (unspec_volatile_element): Add
index ce52f0a..8ae9ec8 100644 (file)
@@ -13035,7 +13035,7 @@ verify_type_variant (const_tree t, tree tv)
   do {                                                                     \
     if (flag (tv) != flag (t))                                             \
       {                                                                            \
-       error ("type variant differs by " #flag ".");                       \
+       error ("type variant differs by %s", #flag);                        \
        debug_tree (tv);                                                    \
        return false;                                                       \
       }                                                                            \