[PATCH] sys/io.h and g++

Andreas Schwab schwab@suse.de
Fri Jan 28 08:38:00 GMT 2000


Ulrich Drepper <drepper@cygnus.com> writes:

|> Andreas Schwab <schwab@suse.de> writes:
|> 
|> > But the syntax requires `:', not `::'.
|> 
|> It requires treating : as a token, not ::.  If the C++ parser cannto
|> do it it's not compatible with the C asm struct which is a declared
|> goal.

The syntax for the asm statement does not contain `::'.

|> > Which braces?  I only see parenthesis, and they must contain valid C++
|> > expressions and string literals.
|> 
|> Wrong.  Anything can be between the parenthesis (thank you for
|> deliberately misunderstanding me).  Look at what the standard says.

Check the facts!  All the standard allows is a string literal.  Not any
thing remotely that looks like `::'.

|> If gcc currently uses the fact that these are strings and expressions
|> this is to make things easy.  But it does not mean it'll stay like
|> this.

It is documented like this.  So gcc is perfectly behaving as documented.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg


More information about the Libc-hacker mailing list