Mail Archives: djgpp/2000/06/20/13:39:54
> Date: Mon, 19 Jun 2000 20:23:40 +0100
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
>
> http://sourceware.cygnus.com/ml/binutils/2000-05/msg00660.html
> http://sourceware.cygnus.com/ml/binutils/2000-05/msg00661.html
> http://sourceware.cygnus.com/ml/binutils/2000-05/msg00662.html
Thanks for looking into this.
> The answer seems to be that there is no easy way.
Gosh, I _hate_ incompatible changes that don't leave any escapes like
a command-line option to get the old behavior!
We have a similar problem in the library sources (djlsr203.zip), as
reported by Mark Elbrecht a few days ago.
> 3. Detect which version of binutils is being used and adjust the code
> appropriately. Perhaps the most likely, but ugly in terms of code. :(
This sounds like the lesser-evil solution. You can put #ifdef in the
assembly source, and have Make determine which version of Binutils is
in use. Here's a starting point for Makefile magic to do that:
BNU_VERSION := $(shell as --version | sed -n 's/^GNU assembler //p')
(This is only a starting point, since you will need to define
BNU_MAJOR, BNU_MINOR and such likes, given BNU_VERSION.)
Then use "gcc -DBNU_MINOR=..." to get this info into the
preprocessor.
- Raw text -