diff options
author | Andi Kleen <ak@linux.intel.com> | 2011-06-09 06:20:05 +0000 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2011-06-09 06:20:05 +0000 |
commit | 1460ec5c3d5a247e704245ac996750c749991fdd (patch) | |
tree | 0e9b031c60a7dac8443153238fabcfc776f16ecf /gcc/varasm.c | |
parent | df17530a852fae6aab5ce41d806a78808013fc1f (diff) | |
download | gcc-1460ec5c3d5a247e704245ac996750c749991fdd.zip gcc-1460ec5c3d5a247e704245ac996750c749991fdd.tar.gz gcc-1460ec5c3d5a247e704245ac996750c749991fdd.tar.bz2 |
Print location for conflicting global regs.
gcc/
2011-06-08 Andi Kleen <ak@linux.intel.com>
* reginfo.c (global_regs_decl): Add.
(globalize_reg): Add decl parameter. Compute location.
Pass location to warnings and add inform. Store decl
in global_regs_decl.
* rtl.h (globalize_reg): Update prototype.
* varasm.c (make_decl_rtl): Pass decl to globalize_reg().
From-SVN: r174834
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index f46c21b..3311c86 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1237,7 +1237,7 @@ make_decl_rtl (tree decl) #endif nregs = hard_regno_nregs[reg_number][DECL_MODE (decl)]; while (nregs > 0) - globalize_reg (reg_number + --nregs); + globalize_reg (decl, reg_number + --nregs); } /* As a register variable, it has no section. */ |