diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-13 21:42:59 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-13 21:42:59 -0400 |
commit | a43ea3192f8f3dfe1c59e33f50e2e6f323c7e4db (patch) | |
tree | bb3a80b21cd183ce53b6a87c1747871a989e4462 | |
parent | 5fad6898708af706c5b21647d935112559f2494b (diff) | |
download | gcc-a43ea3192f8f3dfe1c59e33f50e2e6f323c7e4db.zip gcc-a43ea3192f8f3dfe1c59e33f50e2e6f323c7e4db.tar.gz gcc-a43ea3192f8f3dfe1c59e33f50e2e6f323c7e4db.tar.bz2 |
(c_expand_asm_operands): Check for read-only output operand where the
variable is read-only but the type is not.
From-SVN: r10232
-rw-r--r-- | gcc/c-typeck.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index b16a7bf..527b6eb 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -6432,7 +6432,8 @@ c_expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line) else { tree type = TREE_TYPE (o[i]); - if (TYPE_READONLY (type) + if (TREE_READONLY (o[i]) + || TYPE_READONLY (type) || ((TREE_CODE (type) == RECORD_TYPE || TREE_CODE (type) == UNION_TYPE) && C_TYPE_FIELDS_READONLY (type))) |