This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [pph] Expect checksums for tests marked with pph asm xdiff (issue4744043)


Gabriel Charette <gchare@google.com> writes:

> On Sat, Jul 16, 2011 at 12:59 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>
>> gchare@google.com (Gabriel Charette) writes:
>>
>> > + Â Â Â Â set expectedSum [exec tr -d \} << [exec cut -f 4 -d\ Â<< $xdiff_entry]]
>
> $xdiffentry is set to something like {{pph asm diff 123456}}, so i
> need tr and cut to extract 123456

tcl can everything tr and cut can do (with the above options anyway).

> If there are ways to do this directly in TCL, without using exec
> calls, I'd be glad to know.

Read split(n) and string(n).

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]