This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] fold-const.c (fold): Remove redundant cases.
- From: Roger Sayle <roger at eyesopen dot com>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 23 Mar 2004 06:25:08 -0700 (MST)
- Subject: 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
--