This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/13311] in .s file assembly instruction are in a single line rather than separate lines


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-05 05:07 -------
Not our bug, sorry report it to the Linux kernel guys.
The problem is that in ip_fast_csum, they have the following code which does not have the returns 
and they use a GCC extension for multiline strings (I actually think this is fixed in a newer kernel).

static inline unsigned short ip_fast_csum(unsigned char * iph,
                                          unsigned int ihl) {
        unsigned int sum;

        __asm__ __volatile__(" 	    movl (%1), %0 	    subl $4, %2 
	    jbe 2f 	    addl 4(%1), %0 	    adcl 8(%1), %0 	    adcl 12(%1), %0 1:
	    adcl 16(%1), %0 	    lea 4(%1), %1 	    decl %2 	    jne
	1b 	    adcl $0, %0 	    movl %0, %2 	    shrl $16, %0 	    addw %w2, %w0 
	    adcl $0, %0 	    notl %0 2: 	    "
# 94 "/home/linux/include/asm/checksum.h"
        : "=r" (sum), "=r" (iph), "=r" (ihl)
        : "1" (iph), "2" (ihl));
        return(sum);
}



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13311


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]