LEFT | RIGHT |
1 /* Process declarations and variables for C++ compiler. | 1 /* Process declarations and variables for C++ compiler. |
2 Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 2 Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
3 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | 3 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 |
4 Free Software Foundation, Inc. | 4 Free Software Foundation, Inc. |
5 Contributed by Michael Tiemann (tiemann@cygnus.com) | 5 Contributed by Michael Tiemann (tiemann@cygnus.com) |
6 | 6 |
7 This file is part of GCC. | 7 This file is part of GCC. |
8 | 8 |
9 GCC is free software; you can redistribute it and/or modify | 9 GCC is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "system.h" | 32 #include "system.h" |
33 #include "coretypes.h" | 33 #include "coretypes.h" |
34 #include "tm.h" | 34 #include "tm.h" |
35 #include "tree.h" | 35 #include "tree.h" |
36 #include "flags.h" | 36 #include "flags.h" |
37 #include "cp-tree.h" | 37 #include "cp-tree.h" |
38 #include "tree-iterator.h" | 38 #include "tree-iterator.h" |
39 #include "tree-inline.h" | 39 #include "tree-inline.h" |
40 #include "decl.h" | 40 #include "decl.h" |
41 #include "intl.h" | 41 #include "intl.h" |
42 #include "output.h" | |
43 #include "toplev.h" | 42 #include "toplev.h" |
44 #include "hashtab.h" | 43 #include "hashtab.h" |
45 #include "tm_p.h" | 44 #include "tm_p.h" |
46 #include "target.h" | 45 #include "target.h" |
47 #include "c-family/c-common.h" | 46 #include "c-family/c-common.h" |
48 #include "c-family/c-objc.h" | 47 #include "c-family/c-objc.h" |
49 #include "c-family/c-pragma.h" | 48 #include "c-family/c-pragma.h" |
50 #include "diagnostic.h" | 49 #include "diagnostic.h" |
51 #include "intl.h" | 50 #include "intl.h" |
52 #include "debug.h" | 51 #include "debug.h" |
53 #include "timevar.h" | 52 #include "timevar.h" |
54 #include "pointer-set.h" | 53 #include "pointer-set.h" |
55 #include "splay-tree.h" | 54 #include "splay-tree.h" |
56 #include "plugin.h" | 55 #include "plugin.h" |
57 #include "multiversion.h" | 56 #include "cgraph.h" |
58 | 57 |
59 /* Possible cases of bad specifiers type used by bad_specifiers. */ | 58 /* Possible cases of bad specifiers type used by bad_specifiers. */ |
60 enum bad_spec_place { | 59 enum bad_spec_place { |
61 BSP_VAR, /* variable */ | 60 BSP_VAR, /* variable */ |
62 BSP_PARM, /* parameter */ | 61 BSP_PARM, /* parameter */ |
63 BSP_TYPE, /* type */ | 62 BSP_TYPE, /* type */ |
64 BSP_FIELD /* field */ | 63 BSP_FIELD /* field */ |
65 }; | 64 }; |
66 | 65 |
67 static tree grokparms (tree parmlist, tree *); | 66 static tree grokparms (tree parmlist, tree *); |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 | 969 |
971 /* Specializations of different templates are different functions | 970 /* Specializations of different templates are different functions |
972 even if they have the same type. */ | 971 even if they have the same type. */ |
973 tree t1 = (DECL_USE_TEMPLATE (newdecl) | 972 tree t1 = (DECL_USE_TEMPLATE (newdecl) |
974 if (t1 != t2) | 973 if (t1 != t2) |
975 return 0; | 974 return 0; |
976 | 975 |
977 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) | 976 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) |
978 && ! (DECL_EXTERN_C_P (newdecl) | 977 && ! (DECL_EXTERN_C_P (newdecl) |
979 && DECL_EXTERN_C_P (olddecl))) | 978 && DECL_EXTERN_C_P (olddecl))) |
LEFT | RIGHT |