https://sourceware.org/bugzilla/show_bug.cgi?id=16109

            Bug ID: 16109
           Summary: Incorrect listing (single line comment after multiline
                    one causes line mis-alignment)
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: makhaloff at gmail dot com

I have a simple example:

/*
*/#
nop
nop

There are some assembler outputs:

$ arm-linux-gnueabi-as -ahl 1.s
ARM GAS  1.s                    page 1


   1                    /*
   2 0000 0000A0E1      */#
   3                    nop
   4 0004 0000A0E1      nop
   5 


$ mips-linux-as -ahl 1.s
GAS LISTING 1.s                         page 1


   1                    /*
   2 0000 00000000      */#
   3                    nop
   4 0004 00000000      nop
   5 0008 00000000 
   5      00000000 


After some modification:


/*
*/
nop
nop

listing is corect.

$ arm-linux-gnueabi-as -ahl 1.s
ARM GAS  1.s                    page 1


   1                    /*
   2                    */
   3 0000 0000A0E1      nop
   4 0004 0000A0E1      nop
   5

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