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