From a5e5cf67cc0fc6f5947ac5428ce650c763f4f5f4 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 11 Sep 2000 14:34:57 -0700 Subject: * cse.c (fold_rtx): Honor NO_FUNCTION_CSE. From-SVN: r36331 --- gcc/ChangeLog | 4 ++++ gcc/cse.c | 7 +++++++ 2 files changed, 11 insertions(+) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 31d94b4..1979574 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2000-09-11 Richard Henderson + * cse.c (fold_rtx): Honor NO_FUNCTION_CSE. + +2000-09-11 Richard Henderson + * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare. * config/ia64/ia64.c (fr_nonimmediate_operand): New. (ia64_override_options): Prevent optimizing division for both diff --git a/gcc/cse.c b/gcc/cse.c index f9348fb..b868435 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -3611,6 +3611,13 @@ fold_rtx (x, insn) return x; } +#ifdef NO_FUNCTION_CSE + case CALL: + if (CONSTANT_P (XEXP (XEXP (x, 0), 0))) + return x; + break; +#endif + case ASM_OPERANDS: for (i = ASM_OPERANDS_INPUT_LENGTH (x) - 1; i >= 0; i--) validate_change (insn, &ASM_OPERANDS_INPUT (x, i), -- cgit v1.1