diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2005-11-09 12:33:59 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2005-11-09 04:33:59 -0800 |
commit | fcc207bfd70c14e46f15a0d39db9ff3699afb87f (patch) | |
tree | d1cba8eb7ec302eeabfa3e5b74c8e7ea48836cc0 /gcc/dwarf2out.c | |
parent | 3a64e86053a9761f6e03ea422bd7e76d5bdc43b4 (diff) | |
download | gcc-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/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 4cdb480..28e0031 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -10809,7 +10809,8 @@ add_name_and_src_coords_attributes (dw_die_ref die, tree decl) if ((TREE_CODE (decl) == FUNCTION_DECL || TREE_CODE (decl) == VAR_DECL) && TREE_PUBLIC (decl) && DECL_ASSEMBLER_NAME (decl) != DECL_NAME (decl) - && !DECL_ABSTRACT (decl)) + && !DECL_ABSTRACT (decl) + && !(TREE_CODE (decl) == VAR_DECL && DECL_REGISTER (decl))) add_AT_string (die, DW_AT_MIPS_linkage_name, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl))); } |