This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

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


Ulrich Drepper <drepper@cygnus.com> writes:

|> Andreas Schwab <schwab@suse.de> writes:
|> 
|> > The syntax for the asm statement does not contain `::'.
|> 
|> Right.  And therefore gcc has to interpert :: as two :.

No. `::' are *not* the same as `: :'.  That's how C++ works.

|> 
|> > Check the facts!  All the standard allows is a string literal.  Not any
|> > thing remotely that looks like `::'.
|> 
|> You are really trying hard to ignore what I say.

You started with referring to the standards, and your statement was wrong.
So I corrected it.

|> The goal is to have
|> compatibility with GNU C.

GNU C also contains the C++ compiler.  So it is compatible to itself.  Qed.

|>  If GNU C extends the syntax to allow the :
|> separated expressions then the goal is that GNU C++ does the same.  If
|> it's not doing this the whole effort is failing.

GCC only allows `:', *not* `::'.  This is documented.

Please tell, what is so *difficult* with inserting a few spaces in a file?
GCC behaves as documented, so why are you insisting on changing the
compiler?

Andreas.

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

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