public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/2721: Linux kernel 2.4.4 compile failure
@ 2001-05-03  1:26 dmuell
  0 siblings, 0 replies; only message in thread
From: dmuell @ 2001-05-03  1:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2721
>Category:       c
>Synopsis:       compile failure of Linux 2.4.4 kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu May 03 01:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dirk Mueller
>Release:        3.0 20010502 (prerelease)
>Organization:
>Environment:
System: Linux rotes20 2.4.4 #4 Mon Apr 30 21:55:44 CEST 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../configure --enable-shared --enable-threads --enable-languages=c,c++
>Description:

with i386 / Athlon / Duron switch enabled in linux configuration, you get this
error while compiling: 

ake[2]: Entering directory `/usr/src/linux/kernel'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
-march=athlon     -DEXPORT_SYMTAB -c sys.c
sys.c: In function `sys_gethostname':
/usr/src/linux/include/asm/rwsem.h:152: inconsistent operand constraints in an
`asm'

The error can be worked around by replacing first "+d" constrain by a "=d" and
adding a "0" constrain as input. 

However, this can't be the right solution as there are other macros in the same
file that use _exactly_ the same constraints and only differ by the
initialisation of the long count and those are accepted. So I suspect it to be
a bug in gcc instead. 

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-03  1:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-03  1:26 c/2721: Linux kernel 2.4.4 compile failure dmuell

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