public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/105432] New: [12 regression] bootstrap build error in mpc in stage2
@ 2022-04-29 14:05 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
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: seurer at gcc dot gnu.org @ 2022-04-29 14:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432
Bug ID: 105432
Summary: [12 regression] bootstrap build error in mpc in stage2
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: seurer at gcc dot gnu.org
Target Milestone: ---
libtool: compile: /home/seurer/gcc/git/build/gcc-test/./prev-gcc/xgcc
-B/home/seurer/gcc/git/build/gcc-test/./prev-gcc/
-B/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/bin/
-B/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/bin/
-B/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/lib/
-isystem
/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/include
-isystem
/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/sys-include
-fno-checking -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DLT_OBJDIR=\".libs/\"
-DHAVE_LITTLE_ENDIAN=1 -DHAVE_CLOCK_GETTIME=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1
-DHAVE_STRUCT_LCONV_DECIMAL_POINT=1 -DHAVE_STRUCT_LCONV_THOUSANDS_SEP=1
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_UINTPTR_T=1 -DHAVE_VA_COPY=1
-DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_SIGNAL=1 -DHAVE_SIGACTION=1
-DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_INTMAX_MAX=1
-DMPFR_HAVE_NORETURN=1 -DMPFR_HAVE_BUILTIN_UNREACHABLE=1
-DMPFR_HAVE_CONSTRUCTOR_ATTR=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_SUBNORM_DBL=1
-DHAVE_SUBNORM_FLT=1 -DHAVE_SIGNEDZ=1 -DHAVE_ROUND=1 -DHAVE_TRUNC=1
-DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DHAVE_NEARBYINT=1
-DHAVE_DOUBLE_IEEE_LITTLE_ENDIAN=1 -DHAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE=1
-DMPFR_USE_THREAD_SAFE=1 -DMPFR_USE_C11_THREAD_SAFE=1
-DMPFR_WANT_DECIMAL_FLOATS=1 -DDECIMAL_DPD_FORMAT=1 -DMPFR_WANT_FLOAT128=1
-DMPFR_USE_STATIC_ASSERT=1 -DHAVE_ATTRIBUTE_MODE=1 -DPRINTF_L=1 -DPRINTF_T=1
-DPRINTF_GROUPFLAG=1 -DHAVE___GMPN_SBPI1_DIVAPPR_Q=1 -DMPFR_LONG_WITHIN_LIMB=1
-DMPFR_INTMAX_WITHIN_LIMB=1 -DHAVE_GETRUSAGE=1 -I.
-I/home/seurer/gcc/git/gcc-test/mpfr/src
-I/home/seurer/gcc/git/build/gcc-test/gmp -DNO_ASM -g -O2 -fno-checking
-gtoggle -MT atan.lo -MD -MP -MF .deps/atan.Tpo -c
/home/seurer/gcc/git/gcc-test/mpfr/src/atan.c -o atan.o
during GIMPLE pass: vrp
/home/seurer/gcc/git/gcc-test/mpfr/src/atan.c: In function 'mpfr_atan':
/home/seurer/gcc/git/gcc-test/mpfr/src/atan.c:286:1: internal compiler error:
in set_range_info_raw, at tree-ssanames.cc:356
286 | mpfr_atan (mpfr_ptr atan, mpfr_srcptr x, mpfr_rnd_t rnd_mode)
| ^~~~~~~~~
0x11807ae3 set_range_info_raw(tree_node*, value_range_kind,
generic_wide_int<wide_int_ref_storage<false, true> > const&,
generic_wide_int<wide_int_ref_storage<false, true> > const&)
/home/seurer/gcc/git/gcc-test/gcc/tree-ssanames.cc:356
0x118081f7 set_range_info
/home/seurer/gcc/git/gcc-test/gcc/tree-ssanames.cc:414
0x1180832f set_range_info(tree_node*, int_range<1u> const&)
/home/seurer/gcc/git/gcc-test/gcc/tree-ssanames.cc:424
0x118f3633 vrp_asserts::remove_range_assertions()
/home/seurer/gcc/git/gcc-test/gcc/tree-vrp.cc:3754
0x118f4d97 execute_vrp
/home/seurer/gcc/git/gcc-test/gcc/tree-vrp.cc:4245
0x118f53a7 execute
/home/seurer/gcc/git/gcc-test/gcc/tree-vrp.cc:4415
I am still looking for the source.
^ 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 ` 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
end of thread, other threads:[~2022-10-31 19:52 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).