aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorno-author <no-author@gcc.gnu.org>2004-04-30 06:51:33 +0000
committerno-author <no-author@gcc.gnu.org>2004-04-30 06:51:33 +0000
commit603c89e602c13bd50b99927daef8fb7698f80213 (patch)
tree08073c63a4cac33f9265cc57c46334e487960586 /gcc/c-parse.in
parent03846eafd7c275b583a97c40554da04c978a110a (diff)
This commit was manufactured by cvs2svn to create tagapple/gcc-1745
'apple-gcc-1745'. git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-1745@81329 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index b8637e6b1d3..d6a44c75ded 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -50,6 +50,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "output.h"
#include "toplev.h"
#include "ggc.h"
+/* APPLE LOCAL Objective-C++ */
+#include "langhooks.h"
@@ifobjc
#include "objc-act.h"
@@ -3339,6 +3341,8 @@ static const struct resword reswords[] =
{ "__inline", RID_INLINE, 0 },
{ "__inline__", RID_INLINE, 0 },
{ "__label__", RID_LABEL, 0 },
+ /* APPLE LOCAL private extern */
+ { "__private_extern__", RID_PRIVATE_EXTERN, 0 },
{ "__ptrbase", RID_PTRBASE, 0 },
{ "__ptrbase__", RID_PTRBASE, 0 },
{ "__ptrextent", RID_PTREXTENT, 0 },
@@ -3426,9 +3430,11 @@ static const struct resword reswords[] =
};
#define N_reswords (sizeof reswords / sizeof (struct resword))
+/* APPLE LOCAL keep tables in sync comment */
/* Table mapping from RID_* constants to yacc token numbers.
Unfortunately we have to have entries for all the keywords in all
- three languages. */
+ three languages (AND THEY MUST BE KEPT IN PARALLEL - see also
+ cp/lex.c). */
static const short rid_to_yy[RID_MAX] =
{
/* RID_STATIC */ STATIC,
@@ -3448,6 +3454,8 @@ static const short rid_to_yy[RID_MAX] =
/* C extensions */
/* RID_COMPLEX */ TYPESPEC,
/* RID_THREAD */ SCSPEC,
+ /* APPLE LOCAL private extern */
+ /* RID_PRIVATE_EXTERN */ SCSPEC,
/* C++ */
/* RID_FRIEND */ 0,
@@ -3569,7 +3577,7 @@ init_reswords (void)
if (!c_dialect_objc ())
mask |= D_OBJC;
-
+
ridpointers = ggc_calloc ((int) RID_MAX, sizeof (tree));
for (i = 0; i < N_reswords; i++)
{