#68 assembler segfaults on .irp and .macro

closed-fixed
binutils (7)
5
2011-08-01
2011-05-10
Anonymous
No

Hi,

when using the current git version, msp430-as segfaults if loops or macros are used. This can be reproduced with the following two code examples:

;; ------------------------------------------------------------
.section .text
.irp reg,4,5,6,7,8,9,10,11
push r\reg
.endr

;; ------------------------------------------------------------

.section .text

.macro wrapper num vec
.global vector_ff\vec
vector_ff\vec :
jmp wrapper_body
.endm

wrapper 0 da

wrapper_body:

;; ------------------------------------------------------------

The above examples had been working with gcc 4.4.3, binutils 2.20.0,
and msp430-libc 20100403.

I have used Linux 2.6 (32bit).

Best regards,
Christoph

Discussion

  • Peter A. Bigot
    Peter A. Bigot
    2011-05-10

    • labels: --> binutils
    • assigned_to: nobody --> pabigot
     
  • Peter A. Bigot
    Peter A. Bigot
    2011-05-10

    Patch pushed to branch "next". Not going to "master" until next mspgcc4 release (with corresponding testing).

    commit f87b2b42fbe57c8a17f6d2514406a2693bac69b6
    Author: Peter A. Bigot <pabigot@users.sourceforge.net>
    Date: Tue May 10 18:24:11 2011 -0500

    SF 3293911 gas 2.21 segfault when building gcc 4.4.5

     
  • Peter A. Bigot
    Peter A. Bigot
    2011-05-10

    • status: open --> pending-fixed
     
  • Peter A. Bigot
    Peter A. Bigot
    2011-08-01

    Fix available in mspgcc and in git repository noted below; no further mspgcc4 releases expected.

     
  • Peter A. Bigot
    Peter A. Bigot
    2011-08-01

    • status: pending-fixed --> closed-fixed