diff options
author | Richard Stallman <rms@gnu.org> | 1992-06-18 17:38:13 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-06-18 17:38:13 +0000 |
commit | c09e64987db14029d96c1a2fb0d05a74535f864b (patch) | |
tree | c44cc579dc50f803d5e4bdad12f47f315543dce0 /gcc/stmt.c | |
parent | c1f7c223102198c1a344fcbc9d854044993ece90 (diff) | |
download | gcc-c09e64987db14029d96c1a2fb0d05a74535f864b.zip gcc-c09e64987db14029d96c1a2fb0d05a74535f864b.tar.gz gcc-c09e64987db14029d96c1a2fb0d05a74535f864b.tar.bz2 |
*** empty log message ***
From-SVN: r1207
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1012,7 +1012,8 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line) for (tail = clobbers; tail; tail = TREE_CHAIN (tail)) { char *regname = TREE_STRING_POINTER (TREE_VALUE (tail)); - if (decode_reg_name (regname) >= 0) + i = decode_reg_name (regname); + if (i >= 0 || i == -4) ++nclobbers; } @@ -1183,9 +1184,15 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line) if (j < 0) { - if (j == -3) + if (j == -3) /* `cc', which is not a register */ continue; + if (j == -4) /* `memory', don't cache memory across asm */ + { + XVECEXP (body, 0, i++) = gen_rtx (CLOBBER, VOIDmode, const0_rtx); + continue; + } + error ("unknown register name `%s' in `asm'", regname); return; } |