First suggestion to lift version handling
Daniel Jacobowitz
drow@mvista.com
Tue Mar 5 07:41:00 GMT 2002
On Tue, Mar 05, 2002 at 02:56:28PM +0100, Christian J?nsson wrote:
> I'm no good at this but if anyone could help me out with this first
> one, I'm sure I could get the most of the rest myself...
>
> This is from gas/testsuite/lib/gas-defs.exp
>
> proc gas_version {} {
> global AS
> catch "exec $AS -version < /dev/null" tmp
> # Should find a way to discard constant parts, keep whatever's
> # left, so the version string could be almost anything at all...
> regexp "\[^\n\]* (cygnus-|)(\[-0-9.a-zA-Z-\]+)\[\r\n\].*" $tmp version cyg number
> if ![info exists number] then {
> return "[which $AS] (no version number)\n"
> }
> clone_output "[which $AS] $number\n"
> unset version
> }
>
> I guess it's the regexp line in this dejagnu/expect/tcl script that
> needs some tweaking, right?
>
> Any help is greatly appreciated, TIA.
You may want to check that various versions of GCC still correctly
detect assembler version after a patch like this. There was a problem
with it not long ago...
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
More information about the Binutils
mailing list