From 23bf35fe61ebc98ed68245fbb4635b7822d7cf19 Mon Sep 17 00:00:00 2001 From: pinskia Date: Wed, 9 Nov 2005 12:33:59 +0000 Subject: 2005-11-09 Andrew Pinski 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106693 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-decl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/c-decl.c') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index f7cad3b7105..003b813fc7d 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. */ -- cgit v1.2.1