This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: /usr/include/asm/system.h
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Claude Lamy'" <clamy at sunrisetelecom dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Thu, 9 May 2002 13:12:20 +0100
- Subject: RE: /usr/include/asm/system.h
Claude Lamy wrote:
> I am running a Mandrake 8.1 linux distrinution with gcc 2.96. In
> the file /usr/include/asm/system.h, the function __cmpxchg uses a
> parameter named new which is a reserved keyword in C++. I can
> modify the header file for myself but it should be changed (if not
> already) for future releases.
Actually the system headers belong to the system C library and not GCC;
in this case, however, that file belongs to the linux kernel
(linux/include/asm-i386/system.h).
It still contains 'new' in the latest 2.4 and 2.5 kernel trees. You may
wish to report it to them instead.
I'm not well up enough on the C and C++ standards to know if this is
really a problem - there may be ways that it's supposed to compile
anyway, and it appears to have survived for some time.
Rup.