This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: Negative bignum expressions


On Thu, Sep 20, 2001 at 07:25:58PM -0400, Geoff Berry wrote:
> I'm seeing some inconsistent behavior in the way gas handles bignums.
> 
> On x86, the following code is accepted:
>  .quad 9187201950435737472
> while the following is rejected (Error: bignum invalid; zero assumed)
>  .quad -9187201950435737472

You can't use any arithmetic operator on bignums, including unary "-".
A workaround for this particular case is to configure gas with
--enable-64-bit-bfd.

Alan Modra


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