This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question regarding C++ and inline assembler...
- To: Scott Bambrough <scottb at netwinder dot org>
- Subject: Re: Question regarding C++ and inline assembler...
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 27 Jan 2000 18:42:56 -0200
- Cc: gcc at gcc dot gnu dot org
- References: <3890A03F.286F5F4A@netwinder.org>
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