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]
Other format: [Raw text]

[PATCH] Fix PR41632, deprecated #ident


This patch removes the deprecation warning for #ident and #sccs. ?As
per a discussion on gcc, these?two directives should probably not have
been deprecated in the first place.

Bootstrapped, and regression tested.  Okay for trunk?

2009-10-09  Neil Vachharajani <nvachhar@google.com>

        * directives.c (DIRECTIVE_TABLE): Remove DEPRECATED from ident and
        sccs.

Index: libcpp/directives.c
===================================================================
--- libcpp.orig/directives.c    2009-10-09 09:33:10.000000000 -0700
+++ libcpp/directives.c 2009-10-09 09:33:50.000000000 -0700
@@ -151,11 +151,11 @@
 D(pragma,      T_PRAGMA,       STDC89,    IN_I)           /*    195 */ \
 D(warning,     T_WARNING,      EXTENSION, 0)              /*     22 */ \
 D(include_next,        T_INCLUDE_NEXT, EXTENSION, INCL | EXPAND)  /*
   19 */ \
-D(ident,       T_IDENT,        EXTENSION, IN_I | DEPRECATED) /*     11 */ \
+D(ident,       T_IDENT,        EXTENSION, IN_I)           /*     11 */ \
 D(import,      T_IMPORT,       EXTENSION, INCL | EXPAND)  /* 0 ObjC */ \
 D(assert,      T_ASSERT,       EXTENSION, DEPRECATED)     /* 0 SVR4 */ \
 D(unassert,    T_UNASSERT,     EXTENSION, DEPRECATED)     /* 0 SVR4 */ \
-D(sccs,                T_SCCS,         EXTENSION, IN_I | DEPRECATED)
/* 0 SVR4? */
+D(sccs,                T_SCCS,         EXTENSION, IN_I)           /* 0 SVR4? */

 /* #sccs is synonymous with #ident.  */
 #define do_sccs do_ident


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