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 2c44527ad1d35a58f41166dadcde53642941fcc6..a263974867937ffe70e693acc9bb043cd7a56fac 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 ce52f0af0b7c0cb47b7a272f3121e56f34834463..8ae9ec800b8f34e2780f1bc029d65b802b4d1c51 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;                                                       \
       }                                                                            \