diff options
author | Richard Henderson <rth@redhat.com> | 2000-11-25 16:40:46 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-11-25 16:40:46 -0800 |
commit | 3645c4dc1cf004887905411ca81590b75c665529 (patch) | |
tree | a74ebbf1036c73a5188ef798a86d1ddd9dded390 /gcc/c-decl.c | |
parent | a17a58505dd750d28a77e2fd443e32909a3c2079 (diff) | |
download | gcc-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.c | 5 |
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); } |