From: Martin v. Löwis Date: Mon, 10 Apr 2000 07:43:45 +0000 (+0000) Subject: invoke.texi (-fno-gnu-keywords): Remove classof, headof, __classof__, and __headof__... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd235713371c11a7f58c11aea2f279486d46b4e2;p=gcc.git invoke.texi (-fno-gnu-keywords): Remove classof, headof, __classof__, and __headof__ from the list of gnu keywords. * invoke.texi (-fno-gnu-keywords): Remove classof, headof, __classof__, and __headof__ from the list of gnu keywords. * cp/lex.c (init_parse): Remove traces of classof and headof. From-SVN: r33049 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c18abd60b75..d96a274d9da 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-04-10 Martin v. Löwis + + * invoke.texi (-fno-gnu-keywords): Remove classof, headof, + __classof__, and __headof__ from the list of gnu keywords. + 2000-04-09 Zack Weinberg * cpphash.c (timestamp): Delete. diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 56760657b60..e47edb1a97a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-04-10 Martin v. Löwis + + * lex.c (init_parse): Remove traces of classof and headof. + 2000-04-09 Mark Mitchell * cp-tree.h (struct lang_decl): Remove main_decl_variant. diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 1c4bb5795be..a5d12690bbe 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -894,12 +894,6 @@ init_parse (filename) } #endif - if (!flag_rtti || flag_no_gnu_keywords) - { - UNSET_RESERVED_WORD ("classof"); - UNSET_RESERVED_WORD ("headof"); - } - if (flag_no_asm || flag_no_gnu_keywords) UNSET_RESERVED_WORD ("typeof"); if (! flag_operator_names) diff --git a/gcc/invoke.texi b/gcc/invoke.texi index 946abccd672..bf83879b6ef 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -1101,11 +1101,9 @@ but to allow and give a warning for old-style code that would otherwise be invalid, or have different behavior. @item -fno-gnu-keywords -Do not recognize @code{classof}, @code{headof}, or @code{typeof} as a -keyword, so that code can use these words as identifiers. You can use -the keywords @code{__classof__}, @code{__headof__}, and -@code{__typeof__} instead. @samp{-ansi} implies -@samp{-fno-gnu-keywords}. +Do not recognize @code{typeof} as a keyword, so that code can use these +words as identifiers. You can use the keywords @code{__typeof__} +instead. @samp{-ansi} implies @samp{-fno-gnu-keywords}. @item -fguiding-decls Treat a function declaration with the same type as a potential function