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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [cp/] [decl.h] - Blame information for rev 378

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 283 jeremybenn
/* Variables and structures for declaration processing.
2
   Copyright (C) 1993, 2000, 2002, 2004, 2005, 2007, 2008
3
   Free Software Foundation, Inc.
4
 
5
This file is part of GCC.
6
 
7
GCC is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 3, or (at your option)
10
any later version.
11
 
12
GCC is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with GCC; see the file COPYING3.  If not see
19
<http://www.gnu.org/licenses/>.  */
20
 
21
/* In grokdeclarator, distinguish syntactic contexts of declarators.  */
22
enum decl_context
23
{ NORMAL,                       /* Ordinary declaration */
24
  FUNCDEF,                      /* Function definition */
25
  PARM,                         /* Declaration of parm before function body */
26
  TPARM,                        /* Declaration of template parm */
27
  CATCHPARM,                    /* Declaration of catch parm */
28
  FIELD,                        /* Declaration inside struct or union */
29
  BITFIELD,                     /* Likewise but with specified width */
30
  TYPENAME,                     /* Typename (inside cast or sizeof)  */
31
  TEMPLATE_TYPE_ARG,            /* Almost the same as TYPENAME  */
32
  MEMFUNCDEF                    /* Member function definition */
33
};
34
 
35
/* We need this in here to get the decl_context definition.  */
36
extern tree grokdeclarator (const cp_declarator *,
37
                            const cp_decl_specifier_seq *,
38
                            enum decl_context, int, tree*);
39
 
40
/* States indicating how grokdeclarator() should handle declspecs marked
41
   with __attribute__((deprecated)).  An object declared as
42
   __attribute__((deprecated)) suppresses warnings of uses of other
43
   deprecated items.  */
44
 
45
enum deprecated_states {
46
  DEPRECATED_NORMAL,
47
  DEPRECATED_SUPPRESS
48
};
49
 
50
extern enum deprecated_states deprecated_state;
51
 

powered by: WebSVN 2.1.0

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