aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@cygnus.co.uk>1999-09-14 14:37:12 +0000
committerBernd Schmidt <crux@gcc.gnu.org>1999-09-14 14:37:12 +0000
commitbcb339946495233334317afdd24f151f2848b6f7 (patch)
treec31a7e707f3f98eb32c6a8e293f881939e037462 /gcc/emit-rtl.c
parent86bcc1a3b42468c406957c476c41d15e8b5ae08b (diff)
downloadgcc-bcb339946495233334317afdd24f151f2848b6f7.zip
gcc-bcb339946495233334317afdd24f151f2848b6f7.tar.gz
gcc-bcb339946495233334317afdd24f151f2848b6f7.tar.bz2
Undo bogus changes from gcc2 merge
From-SVN: r29407
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index e7150c2..70b080e 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -251,22 +251,21 @@ gen_rtx_REG (mode, regno)
if (mode == Pmode && !reload_in_progress)
{
- if (frame_pointer_rtx != 0 && regno == FRAME_POINTER_REGNUM)
+ if (regno == FRAME_POINTER_REGNUM)
return frame_pointer_rtx;
#if FRAME_POINTER_REGNUM != HARD_FRAME_POINTER_REGNUM
- if (hard_frame_pointer_rtx != 0 && regno == HARD_FRAME_POINTER_REGNUM)
+ if (regno == HARD_FRAME_POINTER_REGNUM)
return hard_frame_pointer_rtx;
#endif
#if FRAME_POINTER_REGNUM != ARG_POINTER_REGNUM && HARD_FRAME_POINTER_REGNUM != ARG_POINTER_REGNUM
- if (arg_pointer_rtx != 0 && regno == ARG_POINTER_REGNUM)
+ if (regno == ARG_POINTER_REGNUM)
return arg_pointer_rtx;
#endif
#ifdef RETURN_ADDRESS_POINTER_REGNUM
- if (return_address_pointer_rtx != 0
- && regno == RETURN_ADDRESS_POINTER_REGNUM)
+ if (regno == RETURN_ADDRESS_POINTER_REGNUM)
return return_address_pointer_rtx;
#endif
- if (stack_pointer_rtx != 0 && regno == STACK_POINTER_REGNUM)
+ if (regno == STACK_POINTER_REGNUM)
return stack_pointer_rtx;
}
@@ -752,9 +751,6 @@ gen_lowpart_common (mode, x)
i = INTVAL (x);
r = REAL_VALUE_FROM_TARGET_SINGLE (i);
- /* Avoid changing the bit pattern of a NaN. */
- if (REAL_VALUE_ISNAN (r))
- return 0;
return CONST_DOUBLE_FROM_REAL_VALUE (r, mode);
}
#else
@@ -793,8 +789,6 @@ gen_lowpart_common (mode, x)
i[0] = low, i[1] = high;
r = REAL_VALUE_FROM_TARGET_DOUBLE (i);
- if (REAL_VALUE_ISNAN (r))
- return 0;
return CONST_DOUBLE_FROM_REAL_VALUE (r, mode);
}
#else