* [Bug ada/111283] gnat bootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
@ 2023-09-04 6:14 ` doko at gcc dot gnu.org
2023-09-04 6:18 ` [Bug ipa/111283] [14 Regression] " pinskia at gcc dot gnu.org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: doko at gcc dot gnu.org @ 2023-09-04 6:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
--- Comment #1 from Matthias Klose <doko at gcc dot gnu.org> ---
Configured with: -v
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2
--with-gcc-major-version-only
--program-prefix=
--enable-shared
--enable-linker-build-id
--disable-nls
--enable-bootstrap
--enable-clocale=gnu
--enable-libstdcxx-debug
--enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new
--enable-gnu-unique-object
--disable-libitm
--disable-libquadmath
--disable-libquadmath-support
--enable-plugin
--with-system-zlib
--enable-libphobos-checking=release
--with-target-system-zlib=auto
--enable-objc-gc=auto
--enable-multiarch
--disable-sjlj-exceptions
--with-arch=armv7-a+fp
--with-float=hard
--with-mode=thumb
--disable-werror
--enable-checking=yes
make profiledbootstrap-lean
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat bootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
2023-09-04 6:14 ` [Bug ada/111283] " doko at gcc dot gnu.org
@ 2023-09-04 6:18 ` pinskia at gcc dot gnu.org
2023-09-04 6:19 ` pinskia at gcc dot gnu.org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-04 6:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|ada |ipa
CC| |hubicka at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Target Milestone|--- |14.0
Summary|gnat bootstrap broken on |[14 Regression] gnat
|trunk 20230902 on 32bit |bootstrap broken on trunk
|targets |20230902 on 32bit targets
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat bootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
2023-09-04 6:14 ` [Bug ada/111283] " doko at gcc dot gnu.org
2023-09-04 6:18 ` [Bug ipa/111283] [14 Regression] " pinskia at gcc dot gnu.org
@ 2023-09-04 6:19 ` pinskia at gcc dot gnu.org
2023-09-04 6:20 ` [Bug ipa/111283] [14 Regression] gnat profilebootstrap " pinskia at gcc dot gnu.org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-04 6:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It works on x86_64. I wonder if those targets being ILP32 make it fail for some
heurstics differences ...
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
` (2 preceding siblings ...)
2023-09-04 6:19 ` pinskia at gcc dot gnu.org
@ 2023-09-04 6:20 ` pinskia at gcc dot gnu.org
2023-09-04 7:55 ` schwab@linux-m68k.org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-04 6:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[14 Regression] gnat |[14 Regression] gnat
|bootstrap broken on trunk |profilebootstrap broken on
|20230902 on 32bit targets |trunk 20230902 on 32bit
| |targets
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Oh wait this is profile bootstrap:
-fprofile-use
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
` (3 preceding siblings ...)
2023-09-04 6:20 ` [Bug ipa/111283] [14 Regression] gnat profilebootstrap " pinskia at gcc dot gnu.org
@ 2023-09-04 7:55 ` schwab@linux-m68k.org
2023-09-04 11:02 ` doko at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: schwab@linux-m68k.org @ 2023-09-04 7:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> ---
Doesn't fail here, but it uses release checking:
https://build.opensuse.org/package/live_build_log/devel:gcc:next/gcc14/openSUSE_Tumbleweed/i586
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
` (4 preceding siblings ...)
2023-09-04 7:55 ` schwab@linux-m68k.org
@ 2023-09-04 11:02 ` doko at gcc dot gnu.org
2023-09-04 11:04 ` doko at gcc dot gnu.org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: doko at gcc dot gnu.org @ 2023-09-04 11:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
--- Comment #5 from Matthias Klose <doko at gcc dot gnu.org> ---
a normal bootstrap (at least on i686-linux-gnu) succeeds
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
` (5 preceding siblings ...)
2023-09-04 11:02 ` doko at gcc dot gnu.org
@ 2023-09-04 11:04 ` doko at gcc dot gnu.org
2023-09-14 10:22 ` sirl at gcc dot gnu.org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: doko at gcc dot gnu.org @ 2023-09-04 11:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
--- Comment #6 from Matthias Klose <doko at gcc dot gnu.org> ---
last known successful profiled bootstrap with trunk 20230811
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
` (6 preceding siblings ...)
2023-09-04 11:04 ` doko at gcc dot gnu.org
@ 2023-09-14 10:22 ` sirl at gcc dot gnu.org
2023-09-14 10:24 ` sirl at gcc dot gnu.org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: sirl at gcc dot gnu.org @ 2023-09-14 10:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
Franz Sirl <sirl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sirl at gcc dot gnu.org
--- Comment #7 from Franz Sirl <sirl at gcc dot gnu.org> ---
Created attachment 55901
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55901&action=edit
Output of -freport-bug
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
` (7 preceding siblings ...)
2023-09-14 10:22 ` sirl at gcc dot gnu.org
@ 2023-09-14 10:24 ` sirl at gcc dot gnu.org
2023-09-27 14:47 ` slyfox at gcc dot gnu.org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: sirl at gcc dot gnu.org @ 2023-09-14 10:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
--- Comment #8 from Franz Sirl <sirl at gcc dot gnu.org> ---
I see a similar profiledbootstrap failing with x86_64-linux-gnu:
/home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-suse-linux/./prev-gcc/xg++
-B/home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-suse-linux/./prev-gcc/
-B/usr/x86_64-suse-linux/b
in/ -nostdinc++
-B/home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-suse-linux/prev-x86_64-suse-linux/libstdc++-v3/src/.libs
-B/home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-s
use-linux/prev-x86_64-suse-linux/libstdc++-v3/libsupc++/.libs
-I/home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-suse-linux/prev-x86_64-suse-linux/libstdc++-v3/include/x86_64-suse-linux
-I/home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-suse-linux/prev-x86_64-suse-linux/libstdc++-v3/include
-I/home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/libstdc++-v3/libsupc++
-L/hom
e/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-suse-linux/prev-x86_64-suse-linux/libstdc++-v3/src/.libs
-L/home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-suse-linux/prev-x86_64-
suse-linux/libstdc++-v3/libsupc++/.libs -fno-PIE -c -DIN_GCC_FRONTEND
-DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -O2 -g -fmessage-length=0
-D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -
U_FORTIFY_SOURCE -fprofile-use -fprofile-reproducible=parallel-runs -DIN_GCC
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-for
mat-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common
-DHAVE_CONFIG_H -fno-PIE -I. -Ic-family -I../../gcc -I..
/../gcc/c-family -I../../gcc/../include -I../../gcc/../libcpp/include
-I../../gcc/../libcody -I../../gcc/../libdecnumber
-I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace
-o c-family/c-attribs.o -MT c-family/c-attribs.o -MMD -MP -MF
c-family/.deps/c-attribs.TPo ../../gcc/c-family/c-attribs.cc
../../gcc/c-family/c-attribs.cc: In function ??tree_node*
handle_noclone_attribute(tree_node**, tree, tree, int, bool*)??:
../../gcc/c-family/c-attribs.cc:1369:1: error: probability of edge 3->4 not
initialized
1369 | handle_noclone_attribute (tree *node, tree name,
| ^~~~~~~~~~~~~~~~~~~~~~~~
during IPA pass: inline
../../gcc/c-family/c-attribs.cc:1369:1: internal compiler error:
verify_flow_info failed
0xa92b3e verify_flow_info()
../../gcc/cfghooks.cc:287
0xfde04c checking_verify_flow_info()
../../gcc/cfghooks.h:214
0xfde04c cleanup_tree_cfg_noloop
../../gcc/tree-cfgcleanup.cc:1154
0xfde04c cleanup_tree_cfg(unsigned int)
../../gcc/tree-cfgcleanup.cc:1205
0xe7b25c execute_function_todo
../../gcc/passes.cc:2057
0xe7b70e execute_todo
../../gcc/passes.cc:2142
0xe7e16f execute_one_ipa_transform_pass
../../gcc/passes.cc:2336
0xe7e16f execute_all_ipa_transforms(bool)
../../gcc/passes.cc:2396
0xacde5d cgraph_node::expand()
../../gcc/cgraphunit.cc:1834
0xacde5d cgraph_node::expand()
../../gcc/cgraphunit.cc:1794
0xacecec expand_all_functions
../../gcc/cgraphunit.cc:2000
0xacecec symbol_table::compile()
../../gcc/cgraphunit.cc:2398
0xad2197 symbol_table::compile()
../../gcc/cgraphunit.cc:2311
0xad2197 symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.cc:2583
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
I'm attaching the compressed -freport-bug output, but I didn't manage to
reproduce the bug with it (probably related to the gcda file).
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
` (8 preceding siblings ...)
2023-09-14 10:24 ` sirl at gcc dot gnu.org
@ 2023-09-27 14:47 ` slyfox at gcc dot gnu.org
2023-10-05 16:14 ` cvs-commit at gcc dot gnu.org
2023-10-05 16:23 ` slyfox at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: slyfox at gcc dot gnu.org @ 2023-09-27 14:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
--- Comment #9 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Proposed conservative fix as
https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631526.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
` (9 preceding siblings ...)
2023-09-27 14:47 ` slyfox at gcc dot gnu.org
@ 2023-10-05 16:14 ` cvs-commit at gcc dot gnu.org
2023-10-05 16:23 ` slyfox at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-10-05 16:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Sergei Trofimovich <slyfox@gcc.gnu.org>:
https://gcc.gnu.org/g:043a6fcbc27f8721301eb2f72a7839f54f393003
commit r14-4421-g043a6fcbc27f8721301eb2f72a7839f54f393003
Author: Sergei Trofimovich <siarheit@google.com>
Date: Wed Sep 27 14:29:12 2023 +0100
ipa-utils: avoid uninitialized probabilities on ICF [PR111559]
r14-3459-g0c78240fd7d519 "Check that passes do not forget to define
profile"
exposed check failures in cases when gcc produces uninitialized profile
probabilities. In case of PR/111559 uninitialized profile is generated
by edges executed 0 times reported by IPA profile:
$ gcc -O2 -fprofile-generate pr111559.c -o b -fopt-info
$ ./b
$ gcc -O2 -fprofile-use -fprofile-correction pr111559.c -o b -fopt-info
pr111559.c: In function 'rule1':
pr111559.c:6:13: error: probability of edge 3->4 not initialized
6 | static void rule1(void) { if (p) edge(); }
| ^~~~~
during GIMPLE pass: fixup_cfg
pr111559.c:6:13: internal compiler error: verify_flow_info failed
The change conservatively ignores updates with zero execution counts and
uses initially assigned probabilities (`always` probability in case of
the example).
PR ipa/111283
PR gcov-profile/111559
gcc/
* ipa-utils.cc (ipa_merge_profiles): Avoid producing
uninitialized probabilities when merging counters with zero
denominators.
gcc/testsuite/
* gcc.dg/tree-prof/pr111559.c: New test.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets
2023-09-04 6:11 [Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets doko at gcc dot gnu.org
` (10 preceding siblings ...)
2023-10-05 16:14 ` cvs-commit at gcc dot gnu.org
@ 2023-10-05 16:23 ` slyfox at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: slyfox at gcc dot gnu.org @ 2023-10-05 16:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283
Sergei Trofimovich <slyfox at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Assignee|unassigned at gcc dot gnu.org |slyfox at gcc dot gnu.org
--- Comment #11 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Should be fixed in master.
Thank you for the report!
^ permalink raw reply [flat|nested] 13+ messages in thread