[C/C++ PATCH] Fix -Wunused-but-set* with computed goto (PR c/46015)

Richard Henderson rth@redhat.com
Mon Oct 18 15:44:00 GMT 2010


On 10/18/2010 08:00 AM, Jakub Jelinek wrote:
> 	PR c/46015
> 	* c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
> 	on computed goto argument.
> 
> 	* semantics.c (finish_goto_stmt): Call mark_rvalue_use on computed
> 	goto destination.
> 
> 	* c-c++-common/Wunused-var-13.c: New test.

Ok.


r~



More information about the Gcc-patches mailing list