Re: [PATCH] C FE: improvements to ranges of bad return values

2015-12-17 Thread Jeff Law
On 12/16/2015 07:19 PM, David Malcolm wrote: In the C FE, c_parser_statement_after_labels passes "xloc" to c_finish_return, which is the location of the first token within the returned expression. Hence we don't get a full underline for the following: diagnostic-range-bad-return.c:34:10: warnin

[PATCH] C FE: improvements to ranges of bad return values

2015-12-16 Thread David Malcolm
In the C FE, c_parser_statement_after_labels passes "xloc" to c_finish_return, which is the location of the first token within the returned expression. Hence we don't get a full underline for the following: diagnostic-range-bad-return.c:34:10: warning: function returns address of local variable