https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116174
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by H.J. Lu <h...@gcc.gnu.org>: https://gcc.gnu.org/g:d275b3748a23aa4b6b821ae3bdf1751010923773 commit r14-11641-gd275b3748a23aa4b6b821ae3bdf1751010923773 Author: H.J. Lu <hjl.to...@gmail.com> Date: Tue Aug 27 07:03:22 2024 -0700 Extend check-function-bodies to allow label and directives 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. gcc/testsuite/ * gcc.target/i386/pr116174.c: Use check-function-bodies. * lib/scanasm.exp (parse_function_bodies): Append the line if $up_config(matched) matches the line. (check-function-bodies): Add an argument for matched. Set up_config(matched) to $matched. Append the expected line without $config(line_prefix) to function_regexp if it starts with ".L". Signed-off-by: H.J. Lu <hjl.to...@gmail.com> (cherry picked from commit d6bb1e257fc414d21bc31faa7ddecbc93a197e3c)