This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: misc-patch
- To: gcc-patches at gcc dot gnu dot org, jj at ultra dot linux dot cz
- Subject: Re: misc-patch
- From: Richard Henderson <rth at cygnus dot com>
- Date: Mon, 2 Aug 1999 16:24:52 -0700
Applied.
r~
> 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
>
> * real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad,
> otherwise cse won't be able to CSE together identical float
> constants.
>
> --- gcc/real.c.jj4 Mon Jun 21 19:52:47 1999
> +++ gcc/real.c Mon Aug 2 11:44:59 1999
> @@ -260,7 +260,12 @@ do { \
> #define MAXDECEXP 4932
> #define MINDECEXP -4977
> #define GET_REAL(r,e) bcopy ((char *) r, (char *) e, 2*NE)
> -#define PUT_REAL(e,r) bcopy ((char *) e, (char *) r, 2*NE)
> +#define PUT_REAL(e,r) \
> +do { \
> + if (2*NE < sizeof(*r)) \
> + bzero((char *)r, sizeof(*r)); \
> + bcopy ((char *) e, (char *) r, 2*NE); \
> +} while (0)
> #else
> #define NE 6
> #define MAXDECEXP 4932