varasm.c (215840) | varasm.c (235623) |
---|---|
1/* Output variables, constants and external declarations, for GNU compiler. 2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 4 Free Software Foundation, Inc. 5 6This file is part of GCC. 7 8GCC is free software; you can redistribute it and/or modify it under --- 5862 unchanged lines hidden (view full) --- 5871 local. */ 5872 else if (DECL_VISIBILITY (exp) != VISIBILITY_DEFAULT) 5873 local_p = true; 5874 /* Default visibility weak data can be overridden by a strong symbol 5875 in another module and so are not local. */ 5876 else if (DECL_WEAK (exp)) 5877 local_p = false; 5878 /* If PIC, then assume that any global name can be overridden by | 1/* Output variables, constants and external declarations, for GNU compiler. 2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 4 Free Software Foundation, Inc. 5 6This file is part of GCC. 7 8GCC is free software; you can redistribute it and/or modify it under --- 5862 unchanged lines hidden (view full) --- 5871 local. */ 5872 else if (DECL_VISIBILITY (exp) != VISIBILITY_DEFAULT) 5873 local_p = true; 5874 /* Default visibility weak data can be overridden by a strong symbol 5875 in another module and so are not local. */ 5876 else if (DECL_WEAK (exp)) 5877 local_p = false; 5878 /* If PIC, then assume that any global name can be overridden by |
5879 symbols resolved from other modules. */ | 5879 symbols resolved from other modules, unless we are compiling with 5880 -fwhole-program, which assumes that names are local. */ |
5880 else if (shlib) | 5881 else if (shlib) |
5881 local_p = false; | 5882 local_p = flag_whole_program; |
5882 /* Uninitialized COMMON variable may be unified with symbols 5883 resolved from other modules. */ 5884 else if (DECL_COMMON (exp) 5885 && (DECL_INITIAL (exp) == NULL 5886 || DECL_INITIAL (exp) == error_mark_node)) 5887 local_p = false; 5888 /* Otherwise we're left with initialized (or non-common) global data 5889 which is of necessity defined locally. */ --- 356 unchanged lines hidden --- | 5883 /* Uninitialized COMMON variable may be unified with symbols 5884 resolved from other modules. */ 5885 else if (DECL_COMMON (exp) 5886 && (DECL_INITIAL (exp) == NULL 5887 || DECL_INITIAL (exp) == error_mark_node)) 5888 local_p = false; 5889 /* Otherwise we're left with initialized (or non-common) global data 5890 which is of necessity defined locally. */ --- 356 unchanged lines hidden --- |