From 566c6181e6dd7180ccc249e0b781da7a41340e50 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Sun, 10 Dec 2006 05:09:29 +0000 Subject: c-opts.c (c_common_parse_file): Unconditionally give a warning, suitable for the language, if set_yydebug is true. * c-opts.c (c_common_parse_file): Unconditionally give a warning, suitable for the language, if set_yydebug is true. * c-pragma.h: Define enum pragma_omp_clause here. Don't define YYDEBUG or declare yydebug. * c-parser.c (yydebug, enum pragma_omp_clause): Delete. * cp/parser.c: Likewise. From-SVN: r119704 --- gcc/c-pragma.h | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'gcc/c-pragma.h') diff --git a/gcc/c-pragma.h b/gcc/c-pragma.h index a38d95a..9a3ff97 100644 --- a/gcc/c-pragma.h +++ b/gcc/c-pragma.h @@ -49,9 +49,26 @@ typedef enum pragma_kind { PRAGMA_FIRST_EXTERNAL } pragma_kind; -/* Cause the `yydebug' variable to be defined. */ -#define YYDEBUG 1 -extern int yydebug; + +/* All clauses defined by OpenMP 2.5. + Used internally by both C and C++ parsers. */ +typedef enum pragma_omp_clause { + PRAGMA_OMP_CLAUSE_NONE = 0, + + PRAGMA_OMP_CLAUSE_COPYIN, + PRAGMA_OMP_CLAUSE_COPYPRIVATE, + PRAGMA_OMP_CLAUSE_DEFAULT, + PRAGMA_OMP_CLAUSE_FIRSTPRIVATE, + PRAGMA_OMP_CLAUSE_IF, + PRAGMA_OMP_CLAUSE_LASTPRIVATE, + PRAGMA_OMP_CLAUSE_NOWAIT, + PRAGMA_OMP_CLAUSE_NUM_THREADS, + PRAGMA_OMP_CLAUSE_ORDERED, + PRAGMA_OMP_CLAUSE_PRIVATE, + PRAGMA_OMP_CLAUSE_REDUCTION, + PRAGMA_OMP_CLAUSE_SCHEDULE, + PRAGMA_OMP_CLAUSE_SHARED +} pragma_omp_clause; extern struct cpp_reader* parse_in; -- cgit v1.1