[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can't compile pistachio/user/lib/io/ia32-port.h without -O

From: Matthew Dempsky
Subject: can't compile pistachio/user/lib/io/ia32-port.h without -O
Date: Sat, 05 Mar 2005 17:25:25 -0600

(I realize the L4Ka mailing list would be better suited for this,
however, I already tried subscribing and mailing it, and my mail relay
is changing the destination address for the L4Ka mailing list so my
mails are getting bounced.  I'm trying to contact the relay provider to
get it fixed, but hopefully in the mean time someone here can either act
on this information or forward it appropriately.  Thanks.)

I was trying to compile Pistachio last night, and discovered that the
inb() function in pistachio/user/lib/io/ia32-port.h fails to compile
with an "impossible constraint" error if you don't use any
optimizations.  I opened a bug entry for this in the GCC bugzilla
database [1], but they think this is an error in the code, not gcc.

I've noticed that the Linux kernel's inb() function on ia32 is similar,
except that it uses the "=a" constraint instead of the "=al" constraint,
and by changing the Pistachio source code similarly it succeeds in
compiling even without optimizations.

However, I can't find anywhere in the gcc manuals a description of what
the "l" constraint is supposed to do, so I'm not positive whether it's a
typo in the Pistachio source or a missing entry in the gcc source.

[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20328

Matthew Dempsky <address@hidden>

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]