This is the mail archive of the gcc-patches@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]

_Complex keyword


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


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