aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-11-09 12:33:59 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-11-09 04:33:59 -0800
commitfcc207bfd70c14e46f15a0d39db9ff3699afb87f (patch)
treed1cba8eb7ec302eeabfa3e5b74c8e7ea48836cc0 /gcc/c-decl.c
parent3a64e86053a9761f6e03ea422bd7e76d5bdc43b4 (diff)
downloadgcc-fcc207bfd70c14e46f15a0d39db9ff3699afb87f.zip
gcc-fcc207bfd70c14e46f15a0d39db9ff3699afb87f.tar.gz
gcc-fcc207bfd70c14e46f15a0d39db9ff3699afb87f.tar.bz2
re PR c/24644 (gcc-4.1 compiled ppc64 kernels do not boot)
2005-11-09 Andrew Pinski <pinskia@physics.uc.edu> PR c/24644 * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add a linkage name for a variable if it a register variable. * c-decl.c (grokdeclarator): Global register variables should be set as PUBLIC. From-SVN: r106693
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index f7cad3b..003b813 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -4694,11 +4694,10 @@ grokdeclarator (const struct c_declarator *declarator,
/* At file scope, the presence of a `static' or `register' storage
class specifier, or the absence of all storage class specifiers
makes this declaration a definition (perhaps tentative). Also,
- the absence of both `static' and `register' makes it public. */
+ the absence of `static' makes it public. */
if (current_scope == file_scope)
{
- TREE_PUBLIC (decl) = !(storage_class == csc_static
- || storage_class == csc_register);
+ TREE_PUBLIC (decl) = storage_class != csc_static;
TREE_STATIC (decl) = !extern_ref;
}
/* Not at file scope, only `static' makes a static definition. */