From 557e8c49cf47555401cf07c020ebdf6ddd4296b5 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 2 Jul 2016 08:41:29 +0200 Subject: re PR c/71719 (invalid set-but-not-used warning with vectors) PR c/71719 * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR. * c-c++-common/Wunused-var-15.c: New test. From-SVN: r237937 --- gcc/c/ChangeLog | 5 +++++ gcc/c/c-typeck.c | 1 + 2 files changed, 6 insertions(+) (limited to 'gcc/c') diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 7bd112b..41d3547 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2016-07-02 Jakub Jelinek + + PR c/71719 + * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR. + 2016-06-29 Thomas Schwinge * c-parser.c (c_parser_pragma) : diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c index b2435de..bafd0d2 100644 --- a/gcc/c/c-typeck.c +++ b/gcc/c/c-typeck.c @@ -1896,6 +1896,7 @@ mark_exp_read (tree exp) case IMAGPART_EXPR: CASE_CONVERT: case ADDR_EXPR: + case VIEW_CONVERT_EXPR: mark_exp_read (TREE_OPERAND (exp, 0)); break; case COMPOUND_EXPR: -- cgit v1.1