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: [tree-ssa] Problem with constant folding


On Wed, 2003-12-17 at 06:14, Zdenek Dvorak wrote:

> *************** is_gimple_rhs (tree t)
> *** 206,211 ****
> --- 206,216 ----
>       case CONSTRUCTOR:
>         /* FIXME lower VA_ARG_EXPR.  */
>       case VA_ARG_EXPR:
> +     case INTEGER_CST:
> +     case REAL_CST:
> +     case STRING_CST:
> +     case COMPLEX_CST:
> +     case VECTOR_CST:
>         return 1;
>
But you're undoing the very test you added to
is_gimple_min_invariant().  What if an INTEGER_CST has overflowed?


Diego.


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