[testsuite] scanasm.exp: Fix target-selector handling in check-function-bodies
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 9 Apr 2020 13:56:44 +0000 (13:56 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Thu, 9 Apr 2020 14:17:48 +0000 (14:17 +0000)
commit93674a72309f986c9ace2d6060916053a00da2a1
treed29b845ec3e8e179d6cfd83496d56f775c3937c9
parentf9d09df0f3552b6f179edeb038844bda40fc7534
[testsuite] scanasm.exp: Fix target-selector handling in check-function-bodies

{target { ! a } } does not work because the greedy regexp extracts
"! a }" instead of "target { ! a }".

This patch replaces it with a non-greedy regexp.

2020-04-09  Christophe Lyon  <christophe.lyon@linaro.org>

* lib/scanasm.exp (check-function-bodies): Use non-greedy regexp
when extracting the target selector.
gcc/testsuite/ChangeLog
gcc/testsuite/lib/scanasm.exp