From 603c89e602c13bd50b99927daef8fb7698f80213 Mon Sep 17 00:00:00 2001 From: no-author Date: Fri, 30 Apr 2004 06:51:33 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'apple-gcc-1745'. git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-1745@81329 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/simplify-rtx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/simplify-rtx.c') diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 2ade695b980..f880b461f26 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -1572,7 +1572,11 @@ simplify_binary_operation (enum rtx_code code, enum machine_mode mode, return simplify_gen_unary (NEG, mode, op1, mode); /* (-1 - a) is ~a. */ - if (trueop0 == constm1_rtx) + /* APPLE LOCAL disallow (not (SYM)) + But not when a is relocatable (this arises temporarily when + pulling 386 global addresses out of a loop). */ + if (trueop0 == constm1_rtx + && GET_CODE (op1) != SYMBOL_REF ) return simplify_gen_unary (NOT, mode, op1, mode); /* Subtracting 0 has no effect unless the mode has signed zeros -- cgit v1.2.3