mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 13:49:46 +08:00
re PR rtl-optimization/7335 (Sparc: ICE in verify_wide_reg (flow.c:557) with long double and optimization)
2002-09-26 David S. Miller <davem@redhat.com> PR optimization/7335 * calls.c (emit_library_call_value_1): Passing args by reference converts a CONST function into a PURE one. From-SVN: r57576
This commit is contained in:
parent
67cef334cc
commit
99a3256796
@ -1,3 +1,9 @@
|
||||
2002-09-26 David S. Miller <davem@redhat.com>
|
||||
|
||||
PR optimization/7335
|
||||
* calls.c (emit_library_call_value_1): Passing args by reference
|
||||
converts a CONST function into a PURE one.
|
||||
|
||||
2002-09-26 David Edelsohn <edelsohn@gnu.org>
|
||||
|
||||
* dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
|
||||
|
@ -3684,6 +3684,14 @@ emit_library_call_value_1 (retval, orgfun, value, fn_type, outmode, nargs, p)
|
||||
}
|
||||
flags &= ~(ECF_CONST | ECF_PURE | ECF_LIBCALL_BLOCK);
|
||||
|
||||
/* If this was a CONST function, it is now PURE since
|
||||
it now reads memory. */
|
||||
if (flags & ECF_CONST)
|
||||
{
|
||||
flags &= ~ECF_CONST;
|
||||
flags |= ECF_PURE;
|
||||
}
|
||||
|
||||
if (GET_MODE (val) == MEM && ! must_copy)
|
||||
slot = val;
|
||||
else if (must_copy)
|
||||
|
Loading…
Reference in New Issue
Block a user