bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/669] New: Macro Expansion is broken


From: mcvick_e at iname dot com
Subject: [Bug gas/669] New: Macro Expansion is broken
Date: 14 Jan 2005 23:50:18 -0000

During a regression build suite (since migrating from 2.14), it was found that 
the macro expansion within gas is not working properly.  The reason being is 
whitespace.

We have a number of assembly source files that get pre-processed by the GCC 
compiler, and it substitutes some #define references into our assembly source 
code.  The assembly is then passed through to gas, and compiled into object 
code.


The error occurs with the following example:

------ source example ------
        .macro  LADDR reg,sym
        lis     \reg,(\sym)@ha
        addi    \reg,\reg,(\sym)@l
        .endm

        LADDR r3, ((((((0x00380000 + 4096) + 256) + 256) + 256) + 49152) + 4096)

------ end source example -------

This same exact code will assemble flawlessly under binutils 2.14

-- 
           Summary: Macro Expansion is broken
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: mcvick_e at iname dot com
                CC: bug-binutils at gnu dot org
  GCC host triplet: powerpc-apple-darwin7.6.0
GCC target triplet: powerpc-elf32-eabi


http://sources.redhat.com/bugzilla/show_bug.cgi?id=669

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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