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]
Other format: [Raw text]

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


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
--


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