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] Avoid introducing TREE_OVERFLOWs in (T)(x&cst) -> (T)x & (T)cst optimization (PR middle-end/19857)


    Sorry if this has already been mentioned, but I think your patch might
    be harmful to the Ada compiler, at least without specific
    counter-measures.  My understanding is that gigi relies on
    TREE_OVERFLOW being set by fold to issue warnings and detect
    CONSTRAINT_ERRORs at compile-time.  And, in some cases, that's vital
    (from Ada's viewpoint) because things would wrap around in the
    target's arithmetics, hence would go unnoticed at run-time.

I agree with you and have said that before. I was assured there'd be no
changed in the visible handling of TREE_OVERFLOW.


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