public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13311] New: in .s file assembly instruction are in a single line rather than separate lines
@ 2003-12-05  4:14 mohanlaljangir at hotmail dot com
  2003-12-05  4:18 ` [Bug c/13311] " mohanlaljangir at hotmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mohanlaljangir at hotmail dot com @ 2003-12-05  4:14 UTC (permalink / raw)
  To: gcc-bugs

Configured with: /usr/local/gnu/src/gcc-3.3.1-3/configure --host=i686-pc-cygwin
--target=i686-pc-linux-gnu --prefix=/usr/local/gnu/tools/host/i686-pc-cygwin/ --
with-newlib --disable-threads
Thread model: single

While cross compiling linux 2.4.18 kernel
i686-pc-linux-gnu-gcc -D__KERNEL__ -I/home/linux/include -Wall -Wstrict-prot
otypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-com
mon -pipe -mpreferred-stack-boundary=2 -march=i686   -DKBUILD_BASENAME=skbuf
f  -c -o skbuff.o skbuff.c
{standard input}: Assembler messages:
{standard input}:2243: Error: junk `adcl $0xffff' after register
make[3]: *** [skbuff.o] Error 1
make[3]: Leaving directory `/home/linux/net/core'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/home/linux/net/core'
make[1]: *** [_subdir_core] Error 2
make[1]: Leaving directory `/home/linux/net'
make: *** [_dir_net] Error 2

This happens becuase in skbuff.s file, I see all assembly instruction are in a 
single line in section #APP. If I insert a new line among all assembly 
instruction, compilation goes fine.

Here is the part of skbuff.s casuing problem
#APP
  addl 16(%esp), %eax    adcl 12(%esp), %eax    adcl %edx, %eax    adcl $0,%eax
#NO_APP

When I changed above code to
#APP
   addl 16(%esp), %eax
   adcl 12(%esp), %eax
   adcl %edx, %eax
   adcl $0, %eax
#NO_APP

everything works fine.

-- 
           Summary: in .s file assembly instruction are in a single line
                    rather than separate lines
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mohanlaljangir at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/13311] in .s file assembly instruction are in a single line rather than separate lines
  2003-12-05  4:14 [Bug c/13311] New: in .s file assembly instruction are in a single line rather than separate lines mohanlaljangir at hotmail dot com
@ 2003-12-05  4:18 ` mohanlaljangir at hotmail dot com
  2003-12-05  4:32 ` [Bug inline-asm/13311] " pinskia at gcc dot gnu dot org
  2003-12-05  5:07 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: mohanlaljangir at hotmail dot com @ 2003-12-05  4:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mohanlaljangir at hotmail dot com  2003-12-05 04:18 -------
Created an attachment (id=5279)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5279&action=view)
the file under compilation when I found bug


-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug inline-asm/13311] in .s file assembly instruction are in a single line rather than separate lines
  2003-12-05  4:14 [Bug c/13311] New: in .s file assembly instruction are in a single line rather than separate lines mohanlaljangir at hotmail dot com
  2003-12-05  4:18 ` [Bug c/13311] " mohanlaljangir at hotmail dot com
@ 2003-12-05  4:32 ` pinskia at gcc dot gnu dot org
  2003-12-05  5:07 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-05  4:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-05 04:32 -------
Can you read <http://gcc.gnu.org/bugs.html>?
We need the proprocessed source.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
          Component|c                           |inline-asm


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug inline-asm/13311] in .s file assembly instruction are in a single line rather than separate lines
  2003-12-05  4:14 [Bug c/13311] New: in .s file assembly instruction are in a single line rather than separate lines mohanlaljangir at hotmail dot com
  2003-12-05  4:18 ` [Bug c/13311] " mohanlaljangir at hotmail dot com
  2003-12-05  4:32 ` [Bug inline-asm/13311] " pinskia at gcc dot gnu dot org
@ 2003-12-05  5:07 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-05  5:07 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-05  5:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05  4:14 [Bug c/13311] New: in .s file assembly instruction are in a single line rather than separate lines mohanlaljangir at hotmail dot com
2003-12-05  4:18 ` [Bug c/13311] " mohanlaljangir at hotmail dot com
2003-12-05  4:32 ` [Bug inline-asm/13311] " pinskia at gcc dot gnu dot org
2003-12-05  5:07 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).