Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
[dragonfly.git] / gnu / usr.bin / cc34 / cc_prep / patches / tree.c.patch
1 $DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/tree.c.patch,v 1.1 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.c,v
5 retrieving revision 1.2
6 diff -u -r1.2 tree.c
7 --- tree.c      20 Dec 2004 19:23:24 -0000      1.2
8 +++ tree.c      20 Dec 2004 20:51:47 -0000
9 @@ -2563,6 +2563,11 @@
10      layout_decl (t, 0);
11    else if (code == FUNCTION_DECL)
12      DECL_MODE (t) = FUNCTION_MODE;
13 +    
14 +  /* Set default visibility to whatever the user supplied with
15 +     visibility_specified depending on #pragma GCC visibility.  */
16 +  DECL_VISIBILITY (t) = default_visibility;
17 +  DECL_VISIBILITYSPECIFIED (t) = visibility_options.inpragma;
18  
19    return t;
20  }