Bug 35102 - i386-*gcc: bad register name `%sil'
Summary: i386-*gcc: bad register name `%sil'
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 35963 90817 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-06 12:00 UTC by Ralf Corsepius
Modified: 2019-06-10 17:42 UTC (History)
3 users (show)

See Also:
Host:
Target: i386-rtems*
Build:
Known to work: 4.2.3
Known to fail:
Last reconfirmed:


Attachments
preprocessed source of file producing breakdown (28.13 KB, text/plain)
2008-02-06 12:01 UTC, Ralf Corsepius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Corsepius 2008-02-06 12:00:32 UTC
Today's (2008-02-06) gcc-trunk (rev 132144) fails to build rtems.

Seemingly it generates invalid assembly code:

# i386-rtems4.9-gcc --pipe  -mtune=pentiumpro --pipe -DHAVE_CONFIG_H   -I.. -I../../../lib/include -I../../../../../../rtems.orig/cpukit/libnetworking -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE  -Wall -fasm -g -O2 -MT netinet/libnetworking_a-in_cksum.o -MD -MP -MF netinet/.deps/libnetworking_a-in_cksum.Tpo -c -o netinet/libnetworking_a-in_cksum.o `test -f 'netinet/in_cksum.c' || echo '../../../../../../rtems.orig/cpukit/libnetworking/'`netinet/in_cksum.c
{standard input}: Assembler messages:
{standard input}:947: Error: bad register name `%sil'
gmake[2]: *** [netinet/libnetworking_a-in_cksum.o] Error 1

# i386-rtems4.9-as --version
GNU assembler (GNU Binutils) 2.18

The same piece of code builds fine with gcc-4.2.3
Comment 1 Ralf Corsepius 2008-02-06 12:01:23 UTC
Created attachment 15105 [details]
preprocessed source of file producing breakdown
Comment 2 Uroš Bizjak 2008-02-06 12:09:11 UTC
Please find "movb" insn (or similar that operates on 8bit reg) in your source and change its constraint from "r" to "q".
Comment 3 Andrew Pinski 2008-04-17 11:16:22 UTC
*** Bug 35963 has been marked as a duplicate of this bug. ***
Comment 4 Bernhard Reutner-Fischer 2008-04-17 12:03:00 UTC
*** Bug 35963 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Pinski 2019-06-10 17:42:12 UTC
*** Bug 90817 has been marked as a duplicate of this bug. ***