This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: misc-patch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]