This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/13311] in .s file assembly instruction are in a single line rather than separate lines
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2003 05:07:06 -0000
- Subject: [Bug inline-asm/13311] in .s file assembly instruction are in a single line rather than separate lines
- References: <20031205041446.13311.mohanlaljangir@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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