[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-11-07 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Peter Bergner changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #38 from CVS Commits --- The releases/gcc-10 branch has been updated by Peter Bergner : https://gcc.gnu.org/g:06a191027749834e628f2c2bdd2256108bf532e9 commit r10-8992-g06a191027749834e628f2c2bdd2256108bf532e9 Author: Richard Biener

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-21 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #37 from Peter Bergner --- Fixed on trunk. I'll let this bake a week before backporting the rs6000 part of the fix to GCC 10 (approved by Segher).

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #36 from CVS Commits --- The master branch has been updated by Peter Bergner : https://gcc.gnu.org/g:84cc3370d6d5972fe495b2114fb32f7b4a49a98d commit r11-4193-g84cc3370d6d5972fe495b2114fb32f7b4a49a98d Author: Richard Biener Date:

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-20 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #35 from Segher Boessenkool --- Send it to gcc-patches@ please, with explanation and everything?

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-20 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #34 from Peter Bergner --- (In reply to Peter Bergner from comment #32) > (In reply to Richard Biener from comment #31) > > > > Is this really the correct fix? > > > > Yes. > > Just to verify, this is an approval for Andrew's patch

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-20 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #33 from rguenther at suse dot de --- On October 20, 2020 4:16:37 PM GMT+02:00, "bergner at gcc dot gnu.org" wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > >--- Comment #32 from Peter Bergner --- >(In reply to Richard

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-20 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #32 from Peter Bergner --- (In reply to Richard Biener from comment #31) > (In reply to Andrew Macleod from comment #30) > > On 10/19/20 6:40 PM, bergner at gcc dot gnu.org wrote: > > >

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #31 from Richard Biener --- (In reply to Andrew Macleod from comment #30) > On 10/19/20 6:40 PM, bergner at gcc dot gnu.org wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > > > > --- Comment #28 from Peter Bergner ---

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #30 from Andrew Macleod --- On 10/19/20 6:40 PM, bergner at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > > --- Comment #28 from Peter Bergner --- > (In reply to Andrew Macleod from comment #25) >>

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #29 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:6e02de946125c36871bd4d8eff21f7f88f01a8aa commit r11-4080-g6e02de946125c36871bd4d8eff21f7f88f01a8aa Author: Andrew MacLeod Date:

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #28 from Peter Bergner --- (In reply to Andrew Macleod from comment #25) > Wonder if it was suppose to be something like: > > >/* Vector pair and vector quad support. */ >if (TARGET_EXTRA_BUILTINS) > { > - tree

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #27 from Peter Bergner --- (In reply to Peter Bergner from comment #26) > (In reply to Andrew Macleod from comment #25) > > Wonder if it was suppose to be something like: > > Maybe? :-) I'll report back how the build does with

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #26 from Peter Bergner --- (In reply to Andrew Macleod from comment #25) > (In reply to Peter Bergner from comment #24) > > (In reply to Richard Biener from comment #22) > > >tree oi_uns_type = make_unsigned_type (256); > > >

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #25 from Andrew Macleod --- (In reply to Peter Bergner from comment #24) > (In reply to Richard Biener from comment #22) > >tree oi_uns_type = make_unsigned_type (256); > > - vector_pair_type_node =

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #24 from Peter Bergner --- (In reply to Richard Biener from comment #22) >tree oi_uns_type = make_unsigned_type (256); > - vector_pair_type_node = build_distinct_type_copy (oi_uns_type); >SET_TYPE_MODE

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #23 from Peter Bergner --- (In reply to Richard Biener from comment #22) > OK, so the fix here is quite obviously to simply drop the > build_distinct_type_copy calls: Thanks richi, I'll put the patch through a bootstrap/regtest

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Richard Biener changed: What|Removed |Added CC||segher at gcc dot gnu.org --- Comment

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #21 from Andrew Macleod --- (In reply to rguent...@suse.de from comment #20) > > > >Is this your preferred solution? > > The backen should use more lowlevel functions to build this type rather than > copying from a type that isn't

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #20 from rguenther at suse dot de --- On October 16, 2020 5:46:28 PM GMT+02:00, amacleod at redhat dot com wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > >--- Comment #19 from Andrew Macleod --- >(In reply to

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #19 from Andrew Macleod --- (In reply to rguent...@suse.de from comment #18) > On October 16, 2020 4:17:43 PM GMT+02:00, amacleod at redhat dot com > > > > >Yeah, I haven't tripped over it in ADA. This was a 512 byte quad on the >

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #18 from rguenther at suse dot de --- On October 16, 2020 4:17:43 PM GMT+02:00, amacleod at redhat dot com wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > >--- Comment #17 from Andrew Macleod --- >(In reply to

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #17 from Andrew Macleod --- (In reply to rguent...@suse.de from comment #16) > On Fri, 16 Oct 2020, amacleod at redhat dot com wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > > > > --- Comment #15 from Andrew

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #16 from rguenther at suse dot de --- On Fri, 16 Oct 2020, amacleod at redhat dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > > --- Comment #15 from Andrew Macleod --- > Well it seems far more incorrect that

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #15 from Andrew Macleod --- Well it seems far more incorrect that types_compatible_p () is FALSE for a type and its MIN/MAX value? Whats the point of MIN/MAX if you cant count on them being the right types, or at least conmpatible.

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #14 from Richard Biener --- But that's just a waste of memory ... the expectation that the min/max values are of the same type is simply wrong.

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #13 from Andrew Macleod --- Created attachment 49386 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49386=edit Patch to create integral MAX and MiN Joy. I'll try it and see what happens. And back to the first problem where

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Richard Biener changed: What|Removed |Added Priority|P3 |P1 CC|

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-15 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #11 from Andrew Macleod --- (In reply to Alan Modra from comment #10) > Here's elf32-arc.i creduced. > > a; > b(); > c() { > void *d; > if (d == b && e()) is that actually allowed? if (d == b) is void * == (void * ()) I

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-15 Thread amodra at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #10 from Alan Modra --- Here's elf32-arc.i creduced. a; b(); c() { void *d; if (d == b && e()) d = a; return d; }

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-15 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #9 from Martin Liška --- (In reply to Alan Modra from comment #8) > Note that the error reported in comment #1 is on x86_64-linux. So please provide one more test-case which can be reproduced on x86_64-linux-gnu. Thanks.

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-15 Thread amodra at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Alan Modra changed: What|Removed |Added Target||powerpc64le-linux, |

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-12 Thread amodra at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Alan Modra changed: What|Removed |Added CC||bergner at gcc dot gnu.org,

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-12 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Aldy Hernandez changed: What|Removed |Added Status|NEW |WAITING --- Comment #6 from Aldy

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Martin Liška changed: What|Removed |Added CC||amacleod at redhat dot com

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-12 Thread amodra at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #4 from Alan Modra --- Created attachment 49347 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49347=edit original .i

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-12 Thread amodra at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #3 from Alan Modra --- Created attachment 49346 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49346=edit reduced testcase -mcpu=power10 -O2 -S

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Richard Biener changed: What|Removed |Added Target Milestone|--- |11.0 Summary|ICE in