OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [java/] [parse.h] - Diff between revs 287 and 338

Only display areas with differences | Details | Blame | View Log

Rev 287 Rev 338
/* Language parser definitions for the GNU compiler for the Java(TM) language.
/* Language parser definitions for the GNU compiler for the Java(TM) language.
   Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
   Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
   2005, 2006, 2007 Free Software Foundation, Inc.
   2005, 2006, 2007 Free Software Foundation, Inc.
   Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
   Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
 
 
This file is part of GCC.
This file is part of GCC.
 
 
GCC is free software; you can redistribute it and/or modify
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
the Free Software Foundation; either version 3, or (at your option)
any later version.
any later version.
 
 
GCC is distributed in the hope that it will be useful,
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.
<http://www.gnu.org/licenses/>.
 
 
Java and all Java-based marks are trademarks or registered trademarks
Java and all Java-based marks are trademarks or registered trademarks
of Sun Microsystems, Inc. in the United States and other countries.
of Sun Microsystems, Inc. in the United States and other countries.
The Free Software Foundation is independent of Sun Microsystems, Inc.  */
The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 
#ifndef GCC_JAVA_PARSE_H
#ifndef GCC_JAVA_PARSE_H
#define GCC_JAVA_PARSE_H
#define GCC_JAVA_PARSE_H
 
 
/* Extern global variable declarations */
/* Extern global variable declarations */
extern struct obstack temporary_obstack;
extern struct obstack temporary_obstack;
extern int quiet_flag;
extern int quiet_flag;
 
 
#ifdef VERBOSE_SKELETON
#ifdef VERBOSE_SKELETON
#undef SOURCE_FRONTEND_DEBUG
#undef SOURCE_FRONTEND_DEBUG
#define SOURCE_FRONTEND_DEBUG(X)                                \
#define SOURCE_FRONTEND_DEBUG(X)                                \
  {if (!quiet_flag) {printf ("* "); printf X; putchar ('\n');} }
  {if (!quiet_flag) {printf ("* "); printf X; putchar ('\n');} }
#else
#else
#define SOURCE_FRONTEND_DEBUG(X)
#define SOURCE_FRONTEND_DEBUG(X)
#endif
#endif
 
 
/* Types classification, according to the JLS, section 4.2 */
/* Types classification, according to the JLS, section 4.2 */
#define JFLOAT_TYPE_P(TYPE)      (TYPE && TREE_CODE ((TYPE)) == REAL_TYPE)
#define JFLOAT_TYPE_P(TYPE)      (TYPE && TREE_CODE ((TYPE)) == REAL_TYPE)
#define JINTEGRAL_TYPE_P(TYPE)   ((TYPE)                                   \
#define JINTEGRAL_TYPE_P(TYPE)   ((TYPE)                                   \
                                  && (TREE_CODE ((TYPE)) == INTEGER_TYPE))
                                  && (TREE_CODE ((TYPE)) == INTEGER_TYPE))
#define JNUMERIC_TYPE_P(TYPE)    ((TYPE)                                \
#define JNUMERIC_TYPE_P(TYPE)    ((TYPE)                                \
                                  && (JFLOAT_TYPE_P ((TYPE))            \
                                  && (JFLOAT_TYPE_P ((TYPE))            \
                                      || JINTEGRAL_TYPE_P ((TYPE))))
                                      || JINTEGRAL_TYPE_P ((TYPE))))
#define JPRIMITIVE_TYPE_P(TYPE)  ((TYPE)                                  \
#define JPRIMITIVE_TYPE_P(TYPE)  ((TYPE)                                  \
                                  && (JNUMERIC_TYPE_P ((TYPE))            \
                                  && (JNUMERIC_TYPE_P ((TYPE))            \
                                  || TREE_CODE ((TYPE)) == BOOLEAN_TYPE))
                                  || TREE_CODE ((TYPE)) == BOOLEAN_TYPE))
 
 
/* Not defined in the LRM */
/* Not defined in the LRM */
#define JSTRING_TYPE_P(TYPE) ((TYPE)                                       \
#define JSTRING_TYPE_P(TYPE) ((TYPE)                                       \
                              && ((TYPE) == string_type_node ||            \
                              && ((TYPE) == string_type_node ||            \
                                  (TREE_CODE (TYPE) == POINTER_TYPE &&     \
                                  (TREE_CODE (TYPE) == POINTER_TYPE &&     \
                                   TREE_TYPE (TYPE) == string_type_node)))
                                   TREE_TYPE (TYPE) == string_type_node)))
#define JREFERENCE_TYPE_P(TYPE) ((TYPE)                                       \
#define JREFERENCE_TYPE_P(TYPE) ((TYPE)                                       \
                                 && (TREE_CODE (TYPE) == RECORD_TYPE          \
                                 && (TREE_CODE (TYPE) == RECORD_TYPE          \
                                     || (TREE_CODE (TYPE) == POINTER_TYPE     \
                                     || (TREE_CODE (TYPE) == POINTER_TYPE     \
                                         &&  TREE_CODE (TREE_TYPE (TYPE)) ==  \
                                         &&  TREE_CODE (TREE_TYPE (TYPE)) ==  \
                                         RECORD_TYPE)))
                                         RECORD_TYPE)))
 
 
int java_report_errors (void);
int java_report_errors (void);
extern tree do_resolve_class (tree, tree, tree, tree, tree);
extern tree do_resolve_class (tree, tree, tree, tree, tree);
 
 
/* Always in use, no matter what you compile */
/* Always in use, no matter what you compile */
void java_push_parser_context (void);
void java_push_parser_context (void);
void java_pop_parser_context (int);
void java_pop_parser_context (int);
extern void java_parser_context_save_global (void);
extern void java_parser_context_save_global (void);
extern void java_parser_context_restore_global (void);
extern void java_parser_context_restore_global (void);
 
 
#endif /* ! GCC_JAVA_PARSE_H */
#endif /* ! GCC_JAVA_PARSE_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.