On Thu, Oct 24, 2013 at 10:43 AM, Eric Botcazou <ebotca...@adacore.com> wrote: >> The most isolated patch I can come up with, especially since we ought to >> fix this in 4.8 branch as well, is to only allow expansion of wide int >> modes to const_int when they're positive. >> >> Thoughts? > > That's a fairly dangerous hack in my opinion, in particular this breaks the > uniqueness of representation of -1 as constm1_rtx. Can't we find a really > contained hack instead, especially if we want to backport it to 4.8?
Pass the mode through all 10 stackframes is the only good fix given recent activity on modes vs. const_int. Richard. > -- > Eric Botcazou