On 10/21/14 14:07, Jiong Wang wrote:
On 19/08/14 17:30, Mike Stump wrote:
On Aug 19, 2014, at 6:12 AM, Kyrill Tkachov <kyrylo.tkac...@arm.com>
wrote:
So how about this?
Ok. Thanks.
looks like this patch only fixed one invoke path.
currently, "gcc-dg-prune" may be invoked directly *or* via
${tool}_check_compile:
and "gcc-dg-prune" is implemented to return "::unsupported::memory full"
if the input
message contains the "relocation truncated" error pattern.
this return message it OK if it's invoked directly, while it will be
wrong if it's invoked
via ${tool}_check_compile. because the ${tool}_check_compile has a
duplicated check of unsupported
testcase later via "${tool}_check_unsupported_p" which only works with
original output message by
matching the "relocation truncation" keyword. So, our early hijack of
the error in gcc-dg-prune
will replace those keywords to "::unsupported::memory" which confuse the
later check.
this patch doing the following cleanup:
* modify the expected output in ${tool}_check_compile.
if "gcc-dg-prune" invoked, then we expect "::unsupported::" keyword
for unsupported testcase.
* remove the duplicated "unresolve" report in compat.exp.
for all ${tool}_check_compile return 0, the issue is handled already.
No need to report a redundant status.
ok for trunk?
gcc/testsuite/
* lib/compat.exp (compat-run): Remove "unresolved".
* lib/gcc-defs.exp (${tools}_check_compile): Update code logic for
unsupported testcase.
OK.
jeff