This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Question regarding C++ and inline assembler...


On Jan 27, 2000, Scott Bambrough <scottb@netwinder.org> wrote:

> Shouldn't the C++ compiler be able to cope with no whitespace
> between the colons when compiling the inline assembler?

Well, it could do it, but `::' is a C++ token, totally different from
`: :'.  So it would be best not to rely on g++'s special-casing of
`::' within asm statements.  Anyway, g++ accepts `>>' as `> >' when
`>' is used as a template bracket, so this might be considered
precedent.  I doubt a patch that implemented this feature would be
rejected.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]