[hammer] fix floor simlification code

Andreas Jaeger aj@suse.de
Sat Jan 11 15:30:00 GMT 2003


Jan Hubicka <jh@suse.cz> writes:

> Sat Jan 11 12:21:45 CET 2003  Jan Hubicka  <jh@suse.cz>
>
> 	* builtins.c (fold_trunc_transparent_mathfn): New static function
> 	(fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
> 	* convert.c (convert_to_real): Fix.
>
> Index: builtins.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/builtins.c,v
> retrieving revision 1.163.2.4
> diff -c -3 -p -r1.163.2.4 builtins.c
> *** builtins.c	7 Jan 2003 17:04:45 -0000	1.163.2.4
> --- builtins.c	11 Jan 2003 11:17:56 -0000
> *************** fold_builtin_nan (arglist, type, quiet)
> *** 4421,4426 ****
> --- 4421,4452 ----
>   
>     return build_real (type, real);
>   }
> + static tree
> + fold_trunc_transparent_mathfn (exp)
> +      tree exp;

Don't you miss a prototype here?
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Gcc-patches mailing list