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

Scott Bambrough scottb@netwinder.org
Thu Jan 27 11:41:00 GMT 2000


Andreas Schwab wrote:
> 
> Scott Bambrough <scottb@netwinder.org> writes:
> 
> |> This fix is fine, but I don't believe it should be necessary.  The C++ parsing
> |> routines should recognize they are in an inline assembler construct and act
> |> accordingly.  IMHO, this is a compiler bug.
> 
> No, in C++ `::' is a separate token, that is different from `: :'.
> 

I see your point, but the colon also acts as a delimiter between different parts
of the inline assembler statement; parts that are there explicitly for the
compiler's benefit.  I think the compiler should be able to tokenize this
statement without regard to whitespace.  I'll ask on the gcc list, cause I'm
curious what the correct answer is.

Scott

-- 
Scott Bambrough - Software Engineer
REBEL.COM    http://www.rebel.com
NetWinder    http://www.netwinder.org


More information about the Libc-hacker mailing list