diff options
author | Andrew Macleod <amacleod@redhat.com> | 2014-10-06 16:48:22 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@redhat.com> | 2014-10-06 16:48:22 +0000 |
commit | 1a4cf4507e454493b36da989321747620759f399 (patch) | |
tree | 7a3e35beca6b7ed72d2731a9127fdda216acee50 | |
parent | bf47dfbe291561cda730a584638897acf78a189f (diff) |
oopsfe-interface
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/fe-interface@215956 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/tree-fe.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc/tree-fe.h b/gcc/tree-fe.h new file mode 100644 index 00000000000..663cfc7bca5 --- /dev/null +++ b/gcc/tree-fe.h @@ -0,0 +1,36 @@ +/* Definitions for the accesing the front end specific aspects of the + 'tree' data structures for GNU compiler Front ends. + Copyright (C) 2014 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 3, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +<http://www.gnu.org/licenses/>. */ + +#ifndef GCC_TREE_FE_H +#define GCC_TREE_FE_H + +#include "tree.h" + +#undef DECL_STRUCT_FUNCTION + +/* For FUNCTION_DECL, this holds a pointer to a structure ("struct function") + that describes the status of this function. */ +#define DECL_STRUCT_FUNCTION(NODE) \ + fe_function_ptr ((FUNCTION_DECL_CHECK (NODE)->function_decl.f)) +#define SET_DECL_STRUCT_FUNCTION(NODE,V) \ + ((FUNCTION_DECL_CHECK (NODE)->function_decl.f) = V) + + +#endif /* GCC_TREE_FE_H */ |