Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
[dragonfly.git] / gnu / usr.bin / cc34 / cc_prep / patches / tree.h.patch
1 $DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/tree.h.patch,v 1.3 2004/12/21 13:10:48 joerg Exp $
2
3 ===================================================================
4 RCS file: /home/joerg/wd/repository/dragonflybsd/src/contrib/gcc-3.4/gcc/tree.h,v
5 retrieving revision 1.2
6 diff -u -r1.2 tree.h
7 --- tree.h      20 Dec 2004 19:23:24 -0000      1.2
8 +++ tree.h      20 Dec 2004 20:49:39 -0000
9 @@ -1489,6 +1489,10 @@
10     where it is called.  */
11  #define DECL_INLINE(NODE) (FUNCTION_DECL_CHECK (NODE)->decl.inline_flag)
12  
13 +/* In a VAR_DECL, nonzero if the declaration is copied for inlining.
14 +   The stack protector should keep its location in the stack.  */
15 +#define DECL_COPIED(NODE) (VAR_DECL_CHECK (NODE)->decl.inline_flag)
16 +
17  /* Nonzero in a FUNCTION_DECL means that this function was declared inline,
18     such as via the `inline' keyword in C/C++.  This flag controls the linkage
19     semantics of 'inline'; whether or not the function is inlined is
20 @@ -1499,6 +1503,10 @@
21  /* Value of the decls's visibility attribute */
22  #define DECL_VISIBILITY(NODE) (DECL_CHECK (NODE)->decl.visibility)
23  
24 +/* Nonzero means that the decl had its visibility specified rather than
25 +   being inferred.  */
26 +#define DECL_VISIBILITYSPECIFIED(NODE) (DECL_CHECK (NODE)->decl.visibility_specified)
27 +
28  /* In a FUNCTION_DECL, nonzero if the function cannot be inlined.  */
29  #define DECL_UNINLINABLE(NODE) (FUNCTION_DECL_CHECK (NODE)->decl.uninlinable)
30  
31 @@ -1633,7 +1641,8 @@
32     || TREE_CODE (DECL_CONTEXT (EXP)) == TRANSLATION_UNIT_DECL)
33  
34  /* Enumerate visibility settings.  */
35 -
36 +#ifndef SYMBOL_VISIBILITY_DEFINED
37 +#define SYMBOL_VISIBILITY_DEFINED
38  enum symbol_visibility
39  {
40    VISIBILITY_DEFAULT,
41 @@ -1641,6 +1650,7 @@
42    VISIBILITY_HIDDEN,
43    VISIBILITY_PROTECTED
44  };
45 +#endif
46  
47  struct function;
48  
49 @@ -1684,8 +1694,7 @@
50    unsigned thread_local_flag : 1;
51    unsigned declared_inline_flag : 1;
52    ENUM_BITFIELD(symbol_visibility) visibility : 2;
53 -  unsigned unused : 1;
54 -  /* one unused bit.  */
55 +  unsigned visibility_specified : 1;
56  
57    unsigned lang_flag_0 : 1;
58    unsigned lang_flag_1 : 1;