bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/14600] New: Thumb: constant expression expected while expressio


From: binutils-bugs at qult dot net
Subject: [Bug gas/14600] New: Thumb: constant expression expected while expression is statically calculable
Date: Thu, 20 Sep 2012 17:25:50 +0000


http://sourceware.org/bugzilla/show_bug.cgi?id=14600



             Bug #: 14600

           Summary: Thumb: constant expression expected while expression

                    is statically calculable

           Product: binutils

           Version: 2.24 (HEAD)

            Status: NEW

          Severity: minor

          Priority: P2

         Component: gas

        AssignedTo: address@hidden

        ReportedBy: address@hidden

    Classification: Unclassified





The following



  .Lstart:

  ldr r4, =0

  .Lend:

  ldr r4, =.Lend - .Lstart



fails with



  Error: constant expression expected -- `ldr r4,=.Lend-.Lstart'



I suppose that when parsing the local labels, the addresses aren't resolved,

but still, they should be resolved when parsing the expression '.Lend -

.Lstart'.



If I use an intermediate local symbol,



  .Lstart:

  ldr r4, =0

  .Lend:

  .Ldiff = .Lend - .Lstart

  ldr r4, =.Ldiff



it works as expected.



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

------- You are receiving this mail because: -------

You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]