Mail Archives: djgpp-workers/2000/06/14/09:52:55
On 14 Jun 2000, at 16:26, Eli Zaretskii wrote:
>
> On Wed, 14 Jun 2000 pavenis AT lanet DOT lv wrote:
>
> > It's worse. AS from binutils-2.9.1 refuses to accept exceptn.S after
> > patch. The same is with
> > .byte 0x2E
> > ljmp *foo
> >
> > So we have an example where binutils-2.[89].* and 2.10 prereleases
> > are incompatible.
>
> Darn!
>
> > Only (only partial) cure I see is not to use -Werror
> > when compiling .S files
>
> Is there perhaps some preprocessor magic that should help us out? I'm
> thinking about keeping the old code for older Binutils, the new one for
> v2.10 and later, and having some #ifdef or assembly-level directive to
> choose between them. Is this possible?
So we should detect version of GNU assembler somewhere. After that
we could add some definition to make the actual version of AS
available to CPP.
Perhaps it could be rather easily done with autoconf, but I don't think
it's nice idea to use autoconf.
Maybe we could also remove -Werror when compiling .S files. So we'll
get warnings with current sources but at least no bigger problems.
Andris
PS. I put my build of DJGPP binary archive of binutils-2.10 release
candidate 3 at http://www.lanet.lv/~pavenis/djgpp/bnu210rc3.zip
if You are interested to do some testing and don't want to build it
Yourself. As usually it's built under Linux (by cross-compiling)
- Raw text -