reload1.c (reload_cse_regno_equal_p): If -ffloat-store, don't consider a MEM in FP mode as equal.

* reload1.c (reload_cse_regno_equal_p): If -ffloat-store, don't
        consider a MEM in FP mode as equal.
Stolen from gcc2 sources.  Fixes problem from Debian folks.

From-SVN: r20571
This commit is contained in:
Richard Kenner 1998-06-19 01:03:32 +00:00 committed by Jeff Law
parent e472bcefab
commit bb173adecd
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Jun 19 02:00:19 1998 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* reload1.c (reload_cse_regno_equal_p): If -ffloat-store, don't
consider a MEM in FP mode as equal.
Fri Jun 19 01:02:17 1998 Jeffrey A Law (law@cygnus.com)
* c-decl.c (duplicate_decls): Avoid setting TREE_ASM_WRITTEN for

View File

@ -8352,6 +8352,8 @@ reload_cse_regno_equal_p (regno, val, mode)
for (x = reg_values[regno]; x; x = XEXP (x, 1))
if (XEXP (x, 0) != 0
&& rtx_equal_p (XEXP (x, 0), val)
&& (! flag_float_store || GET_CODE (XEXP (x, 0)) != MEM
|| GET_MODE_CLASS (GET_MODE (x)) != MODE_FLOAT)
&& (GET_CODE (val) != CONST_INT
|| mode == GET_MODE (x)
|| (GET_MODE_SIZE (mode) < GET_MODE_SIZE (GET_MODE (x))