* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
@ 2022-04-29 17:40 ` seurer at gcc dot gnu.org
2022-04-29 17:48 ` jakub at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: seurer at gcc dot gnu.org @ 2022-04-29 17:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
seurer at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu.org,
| |bergner at gcc dot gnu.org
--- Comment #1 from seurer at gcc dot gnu.org ---
This is what breaks things:
g:6ccc4356e7c5b4ca69d2029898a6439bb735cbc5, r13-32-g6ccc4356e7c5b4
commit 6ccc4356e7c5b4ca69d2029898a6439bb735cbc5 (HEAD)
Author: Aldy Hernandez <aldyh@redhat.com>
Date: Mon Mar 7 14:56:34 2022 +0100
Prefer global range info setters that take a range.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
2022-04-29 17:40 ` [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr " seurer at gcc dot gnu.org
@ 2022-04-29 17:48 ` jakub at gcc dot gnu.org
2022-04-29 19:24 ` seurer at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-04-29 17:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can you please attach preprocessed atan.c ? How have you configured gcc
(mostly, what -mcpu=/-mtune= it defaults to)?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
2022-04-29 17:40 ` [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr " seurer at gcc dot gnu.org
2022-04-29 17:48 ` jakub at gcc dot gnu.org
@ 2022-04-29 19:24 ` seurer at gcc dot gnu.org
2022-04-29 19:24 ` seurer at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: seurer at gcc dot gnu.org @ 2022-04-29 19:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
--- Comment #3 from seurer at gcc dot gnu.org ---
Created attachment 52909
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52909&action=edit
atan.i
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (2 preceding siblings ...)
2022-04-29 19:24 ` seurer at gcc dot gnu.org
@ 2022-04-29 19:24 ` seurer at gcc dot gnu.org
2022-04-29 20:42 ` aldyh at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: seurer at gcc dot gnu.org @ 2022-04-29 19:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
--- Comment #4 from seurer at gcc dot gnu.org ---
configure was:
configure --enable-languages=c,fortran,c++ --with-cpu=power10
--enable-bootstrap
though note it also failed for power9, power8, and power7 and on both LE and
BE.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (3 preceding siblings ...)
2022-04-29 19:24 ` seurer at gcc dot gnu.org
@ 2022-04-29 20:42 ` aldyh at gcc dot gnu.org
2022-04-29 20:43 ` aldyh at gcc dot gnu.org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu.org @ 2022-04-29 20:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Assignee|unassigned at gcc dot gnu.org |aldyh at gcc dot gnu.org
Last reconfirmed| |2022-04-29
Ever confirmed|0 |1
--- Comment #5 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
set_range_info does not handle VR_VARYING because SSA_NAME_RANGE_TYPE can only
store VR_RANGE or VR_ANTI_RANGE. However, we allow storing a range of the
entire domain because nonzero bits can be set on such a range.
This was working because the previous call to set_range_info was passing
VR_RANGE and the extremes of the type. This won't work if we go through a
value_range, because the normalization code will see [MIN, MAX] and normalize
it to VR_VARYING. Ughh.
The correct thing to do here is to force VR_RANGE in this scenario.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (4 preceding siblings ...)
2022-04-29 20:42 ` aldyh at gcc dot gnu.org
@ 2022-04-29 20:43 ` aldyh at gcc dot gnu.org
2022-04-30 13:03 ` iains at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu.org @ 2022-04-29 20:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
--- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 52910
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52910&action=edit
untested patch
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (5 preceding siblings ...)
2022-04-29 20:43 ` aldyh at gcc dot gnu.org
@ 2022-04-30 13:03 ` iains at gcc dot gnu.org
2022-04-30 13:04 ` iains at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: iains at gcc dot gnu.org @ 2022-04-30 13:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |unlvsur at live dot com
--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> ---
*** Bug 105434 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (6 preceding siblings ...)
2022-04-30 13:03 ` iains at gcc dot gnu.org
@ 2022-04-30 13:04 ` iains at gcc dot gnu.org
2022-05-01 6:14 ` unlvsur at live dot com
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: iains at gcc dot gnu.org @ 2022-04-30 13:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zsojka at seznam dot cz
--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
*** Bug 105439 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (7 preceding siblings ...)
2022-04-30 13:04 ` iains at gcc dot gnu.org
@ 2022-05-01 6:14 ` unlvsur at live dot com
2022-05-01 6:21 ` iains at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: unlvsur at live dot com @ 2022-05-01 6:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
--- Comment #9 from cqwrteur <unlvsur at live dot com> ---
(In reply to Aldy Hernandez from comment #6)
> Created attachment 52910 [details]
> untested patch
when will this patch be applied to the main? I am working on building a new
series of canadian toolchains.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (8 preceding siblings ...)
2022-05-01 6:14 ` unlvsur at live dot com
@ 2022-05-01 6:21 ` iains at gcc dot gnu.org
2022-05-01 12:19 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: iains at gcc dot gnu.org @ 2022-05-01 6:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #6)
> Created attachment 52910 [details]
> untested patch
FWIW, patch fixes bootstrap for {powerpc,i686,x86_64}-apple-darwin.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (9 preceding siblings ...)
2022-05-01 6:21 ` iains at gcc dot gnu.org
@ 2022-05-01 12:19 ` cvs-commit at gcc dot gnu.org
2022-05-01 12:20 ` aldyh at gcc dot gnu.org
2022-10-31 19:52 ` pinskia at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-01 12:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Aldy Hernandez <aldyh@gcc.gnu.org>:
https://gcc.gnu.org/g:75bbc3da3e5f75f683fa33e309045c582efd20eb
commit r13-60-g75bbc3da3e5f75f683fa33e309045c582efd20eb
Author: Aldy Hernandez <aldyh@redhat.com>
Date: Fri Apr 29 22:46:25 2022 +0200
Denormalize VR_VARYING to VR_RANGE before passing it to set_range_info_raw.
We are ICEing in set_range_info_raw because value_range_kind cannot be
VR_VARYING, since SSA_NAME_RANGE_TYPE can only hold VR_RANGE /
VR_ANTI_RANGE. Most of the time setting a VR_VARYING as a global
range makes no sense. However, we can have a range spanning the
entire domain (VR_RANGE of [MIN,MAX] which is essentially a
VR_VARYING), if the nonzero bits are set.
This was working before because set_range_info_raw allows setting
VR_RANGE of [MIN, MAX]. However, when going through an irange, we
normalize this to a VR_VARYING, thus causing the ICE. It's
interesting that other calls to set_range_info with an irange haven't
triggered this.
One solution would be to just ignore VR_VARYING and bail, since
set_range_info* is really an update of the current range semantic
wise. After all, we keep the nonzero bits which provide additional
info. But this would be a change in behavior, so not suitable until
after GCC 12 is released. So in order to keep with current behavior
we can just denormalize the varying to VR_RANGE.
Tested on x86-64 Linux.
PR tree-optimization/105432
gcc/ChangeLog:
* tree-ssanames.cc (set_range_info): Denormalize VR_VARYING to
VR_RANGE before passing a piecewise range to set_range_info_raw.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (10 preceding siblings ...)
2022-05-01 12:19 ` cvs-commit at gcc dot gnu.org
@ 2022-05-01 12:20 ` aldyh at gcc dot gnu.org
2022-10-31 19:52 ` pinskia at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu.org @ 2022-05-01 12:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #12 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Fixed in mainline.
Sorry for the delay. I had previous weekend commitments I wasn't able to
reschedule. Hopefully it didn't cause too much pain over the weekend.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/105432] [13 regression] bootstrap build error in mpfr in stage2
2022-04-29 14:05 [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2 seurer at gcc dot gnu.org
` (11 preceding siblings ...)
2022-05-01 12:20 ` aldyh at gcc dot gnu.org
@ 2022-10-31 19:52 ` pinskia at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-31 19:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
^ permalink raw reply [flat|nested] 14+ messages in thread