This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
_Complex keyword
- To: gcc-patches at gcc dot gnu dot org
- Subject: _Complex keyword
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 14 Sep 2000 22:29:53 +0100 (BST)
This patch adds the C99 _Complex keyword to GCC (at present simply a
synonym for __complex__, so not fully implementing C99 semantics -
though if someone could detail what "complex numbers support is
currently broken" (in c99status.html, but originally added by Martin
v. Loewis to version 1.5 of projects.html) refers to that might be
useful). As the keyword is already in the C89 reserved namespace it
is enabled unconditionally.
The keyword is also added to the C++ compiler for compatibility with C
headers using it.
Bootstrapped with no regressions on i686-pc-linux-gnu. OK to commit?
gcc/ChangeLog:
2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
* c-parse.in (reswords): Add _Complex.
gcc/cp/ChangeLog:
2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
* lex.c (reswords): Add _Complex.
--- c-parse.in Mon Sep 11 17:28:50 2000
+++ c-parse.in.new Thu Sep 14 18:55:51 2000
@@ -2817,6 +2817,7 @@
static const struct resword reswords[] =
{
+ { "_Complex", RID_COMPLEX, 0 },
{ "__alignof", RID_ALIGNOF, 0 },
{ "__alignof__", RID_ALIGNOF, 0 },
{ "__asm", RID_ASM, 0 },
--- cp/lex.c Thu Sep 7 17:04:59 2000
+++ cp/lex.c.new Thu Sep 14 18:56:21 2000
@@ -414,6 +414,7 @@
static const struct resword reswords[] =
{
+ { "_Complex", RID_COMPLEX, 0 },
{ "__alignof", RID_ALIGNOF, 0 },
{ "__alignof__", RID_ALIGNOF, 0 },
{ "__asm", RID_ASM, 0 },
--
Joseph S. Myers
jsm28@cam.ac.uk