[C PATCH] Fix statement frontiers handling in the C FE (PR c/84721)

2018-03-06 Thread Jakub Jelinek
Hi! The C FE in multiple spots checks building_stmt_list_p () to decide if we are inside of parsing of functions or outside of that. Unfortunately, that breaks with add_debug_begin_stmt which pushes DEBUG_BEGIN_STMTs regardless of the scope it appears in; e.g. on the testcase below it pushes

Re: [C PATCH] Fix statement frontiers handling in the C FE (PR c/84721)

2018-03-06 Thread Marek Polacek
On Tue, Mar 06, 2018 at 09:51:57PM +0100, Jakub Jelinek wrote: > Hi! > > The C FE in multiple spots checks building_stmt_list_p () to decide if > we are inside of parsing of functions or outside of that. > > Unfortunately, that breaks with add_debug_begin_stmt which pushes > DEBUG_BEGIN_STMTs