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

             Bug #: 13624
           Summary: Unpredictable behavior in the directives .rept, .macro
                    and perhaps in some other
           Product: binutils
           Version: 2.23 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassig...@sourceware.org
        ReportedBy: makhal...@gmail.com
    Classification: Unclassified


Created attachment 6176
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6176
Patch to fix this bug

Hello.

I got the same error as described in the bug #845.
I got it on my target KVARC (http://km211.biz/en/kvarc-32bit), which is not
present in official sources of binutils.
My case. I have a big .s file, size 65K bytes. There is a code fragment in the
middle of file

.rept   (0x100 - 0x20)
 .long TrapAll
 .long 0x0
.endr

It generates error

interrupt.s: Assembler messages:
interrupt.s:3120: Error: unknown pseudo-op: `.lon'

If I add new line before this code fragment then get another error

interrupt.s: Assembler messages:
interrupt.s:3121: Error: unknown pseudo-op: `.l'


The reason is as follows:
* gas/app.c (app_push): Variable add_newlines should be set to zero after
saving. 

Patch is attached.

Sorry, It's hard to reproduce for you. But I can tell you how it leads to the
error, if necessary

Thanks.

-- 
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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to