aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2000-11-25 16:40:46 -0800
committerRichard Henderson <rth@gcc.gnu.org>2000-11-25 16:40:46 -0800
commit3645c4dc1cf004887905411ca81590b75c665529 (patch)
treea74ebbf1036c73a5188ef798a86d1ddd9dded390 /gcc/c-decl.c
parenta17a58505dd750d28a77e2fd443e32909a3c2079 (diff)
downloadgcc-3645c4dc1cf004887905411ca81590b75c665529.zip
gcc-3645c4dc1cf004887905411ca81590b75c665529.tar.gz
gcc-3645c4dc1cf004887905411ca81590b75c665529.tar.bz2
c-common.h (DECL_C_HARD_REGISTER): New.
* c-common.h (DECL_C_HARD_REGISTER): New. * c-decl.c (finish_decl): Set it for asm register variables. * c-semantics.c (emit_local_var): Test it when instantiating one. From-SVN: r37748
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 7806819..7653479a 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3765,7 +3765,10 @@ finish_decl (decl, init, asmspec_tree)
else
{
if (asmspec)
- DECL_ASSEMBLER_NAME (decl) = get_identifier (asmspec);
+ {
+ DECL_ASSEMBLER_NAME (decl) = get_identifier (asmspec);
+ DECL_C_HARD_REGISTER (decl) = 1;
+ }
add_decl_stmt (decl);
}