Re: [PATCH v2] Extend check-function-bodies to allow label and directives

2024-08-27 Thread H.J. Lu
On Tue, Aug 27, 2024 at 6:54 AM Richard Sandiford wrote: > > "H.J. Lu" writes: > >> > append function_regexp ")" > >> > } elseif { [string equal $line "..."] } { > >> > append function_regexp ".*" > >> > + } elseif { [regexp "^.L.*" $line] } { > >> >

Re: [PATCH v2] Extend check-function-bodies to allow label and directives

2024-08-27 Thread Richard Sandiford
"H.J. Lu" writes: >> > append function_regexp ")" >> > } elseif { [string equal $line "..."] } { >> > append function_regexp ".*" >> > + } elseif { [regexp "^.L.*" $line] } { >> >> {^\.L} would be more precise than "^.L.*". > > I tried {^\.L}. It did

Re: [PATCH v2] Extend check-function-bodies to allow label and directives

2024-08-27 Thread H.J. Lu
On Tue, Aug 27, 2024 at 2:18 AM Richard Sandiford wrote: > > "H.J. Lu" writes: > > As PR target/116174 shown, we may need to verify labels and the directive > > order. Extend check-function-bodies to support matched output lines to > > allow label and directives. > > > > gcc/ > > > > * doc

Re: [PATCH v2] Extend check-function-bodies to allow label and directives

2024-08-27 Thread Richard Sandiford
"H.J. Lu" writes: > As PR target/116174 shown, we may need to verify labels and the directive > order. Extend check-function-bodies to support matched output lines to > allow label and directives. > > gcc/ > > * doc/sourcebuild.texi (check-function-bodies): Add an optional > argument

[PATCH v2] Extend check-function-bodies to allow label and directives

2024-08-22 Thread H.J. Lu
As PR target/116174 shown, we may need to verify labels and the directive order. Extend check-function-bodies to support matched output lines to allow label and directives. gcc/ * doc/sourcebuild.texi (check-function-bodies): Add an optional argument for matched output lines. gc