bug-glibc
[Top][All Lists]
Advanced

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

Re: Bugs in /usr/include/sys/io.h


From: Brad Chapman
Subject: Re: Bugs in /usr/include/sys/io.h
Date: Mon, 1 Oct 2001 11:47:11 -0700 (PDT)

Mr. Taylor,

--- Joseph E Taylor <address@hidden> wrote:
> Brad Chapman wrote:
> > 
> > Everyone,
> > 
> >         When I attempt to compile xosview 1.7.1 on glibc 2.1.3 using
> > gcc 2.95.3 in C++ mode (called using the name "c++"), it fails on
> > /usr/include/sys/io.h, in the __asm__ __volatile__ sections, where the
> > C++ scope operator is used inside the parentheses:
> > 
> > __asm__ __volatile__ ("outw %w0,%w1"::"a" (value), "Nd" (port));
> >                                     ^^
> >                                     ||  C++ scope operator
> > 
> >         How do I fix it? I'm planning to upgrade to glibc 2.2.4 soon,
> > but nonetheless I would like to know how to repair this problem.
> > 
> > Brad
> 
> 
> I can't solve your exact problem, but I can warn you away from the wrong
> path. 
> See the gcc manual section called "Assembler Instructions with C Expression
> Operands" for an explanation as to why that :: is NOT a C++ scope operator in
> this case.

        Yes, sir. I understand that in THIS context it is NOT the C++
scope operator. In this case, it is an assembly operator being _mistaken_
for the C++ scope operator, because of either a bug in io.h or a bug in
gcc 2.95.3's C++/assembly paths. What should I do to fix this? Upgrading to
gcc 3.x is a noop.

Thanks,

Brad


=====
Brad Chapman

Permanent e-mails: address@hidden
                   address@hidden
Alternate e-mails: address@hidden
                   address@hidden

__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com



reply via email to

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