From 7c75d64658039682e0d2bd73c81b0adc88677115 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 7 Apr 2018 12:57:53 +0200 Subject: [PATCH] re PR tree-optimization/80021 (untranslateable diagnostic "type variant differs by " #flag ".") 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 | 6 ++++++ gcc/tree.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c44527ad1d..a2639748679 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-04-07 Jakub Jelinek + + 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 * config/nds32/constants.md (unspec_volatile_element): Add diff --git a/gcc/tree.c b/gcc/tree.c index ce52f0af0b7..8ae9ec800b8 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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; \ } \ -- 2.30.2