[patch] fold-const.c (fold): Remove redundant cases.

Roger Sayle roger@eyesopen.com
Tue Mar 23 14:43:00 GMT 2004


Hi Kazu,
> 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
>
> 	* fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
> 	VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
>

Nobody seems to have commented on (or complained about) the style
vs. documentation issue, so this is OK for mainline.

Thanks,

> Index: fold-const.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v
> retrieving revision 1.353
> diff -u -r1.353 fold-const.c
> --- fold-const.c	20 Mar 2004 20:29:26 -0000	1.353
> +++ fold-const.c	20 Mar 2004 20:57:36 -0000
> @@ -5620,14 +5620,6 @@
>
>    switch (code)
>      {
> -    case INTEGER_CST:
> -    case REAL_CST:
> -    case VECTOR_CST:
> -    case STRING_CST:
> -    case COMPLEX_CST:
> -    case CONSTRUCTOR:
> -      return t;
> -
>      case CONST_DECL:
>        return fold (DECL_INITIAL (t));
>

Roger
--



More information about the Gcc-patches mailing list