diff options
author | Mike Stump <mrs@apple.com> | 2006-02-10 00:40:27 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2006-02-10 00:40:27 +0000 |
commit | caed2aa822ba4585538c5ec9ee895de95bf3b142 (patch) | |
tree | 198f858986cb8634e52f02a148493e28d24b4dab /gcc/c-common.c | |
parent | 13717060a8feb0ce58e063114b46307f9623d625 (diff) |
Radar 4399388apple/gcc-5321
* config/i386/i386.c (cw_canonicalize_bracket_1): Add.
(cw_canonicalize_bracket): Improve.
(cw_is_offset): Add NEGATE_EXPR support.
(cw_print_op): Improve BRACKET_EXPR handling.
* c-common.c (print_cw_asm_operand): Add parens around
NEGATE_EXPR.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/apple-local-200502-branch@110828 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index a284c230ddf..1b010de0d0c 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -7344,9 +7344,10 @@ print_cw_asm_operand (char *buf, tree arg, unsigned argnum, break; case NEGATE_EXPR: - strcat (buf, "-"); + strcat (buf, "-("); print_cw_asm_operand (buf, TREE_OPERAND (arg, 0), argnum, uses, must_be_reg, must_not_be_reg, e); + strcat (buf, ")"); break; case INDIRECT_REF: |