https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91438
Bug ID: 91438
Summary: [10 Regression] Profiledbootstrap broken on i586 in
Ada
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: ebotcazou at gcc dot gnu.org
Target Milestone: ---
Host: i586-linux-gnu
Target: i586-linux-gnu
Build: i586-linux-gnu
I see following problem:
[12028s]
/home/abuild/rpmbuild/BUILD/gcc-10.0.0+r274314/obj-i586-suse-linux/./prev-gcc/xgcc
-B/home/abuild/rpmbuild/BUILD/gcc-10.0.0+r274314/obj-i586-suse-linux/./prev-gcc/
-B/usr/i586-suse-linux/bin/ -B/usr/i586-suse-linux/bin/
-B/usr/i586-suse-linux/lib/ -isystem /usr/i586-suse-linux/include -isystem
/usr/i586-suse-linux/sys-include -c -fomit-frame-pointer -O2
-D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -g -U_FORTIFY_SOURCE -fprofile-use
-gnatpg -gnata -W -Wall -nostdinc -I- -I. -Iada/generated -Iada
-I../../gcc/ada -I../../gcc/ada/gcc-interface -Iada/libgnat
-I../../gcc/ada/libgnat ../../gcc/ada/exp_ch5.adb -o ada/exp_ch5.o
[12032s] raised STORAGE_ERROR : stack overflow or erroneous memory access
[12032s] make[3]: *** [../../gcc/ada/gcc-interface/Make-lang.in:140:
ada/exp_ch5.o] Error 1
Where valgrind complains about:
==1530751== Invalid read of size 4
==1530751== at 0x88F2888: lookup_page_table_entry (ggc-page.c:641)
==1530751== by 0x88F2888: ggc_set_mark(void const*) (ggc-page.c:1531)
==1530751== by 0x8B39D48: gt_ggc_mx_symtab_node(void*) (gtype-desc.c:1302)
==1530751== by 0x8B39DFE: gt_ggc_mx_symtab_node(void*) (gtype-desc.c:1353)
==1530751== by 0x852A89E: gt_ggc_mx_lang_tree_node(void*) (gtype-ada.h:287)
==1530751== by 0x8B3728A: gt_ggc_mx_rtx_def(void*) (gtype-desc.c:717)
==1530751== by 0x89D0F4E: gt_ggc_mx<dw_attr_struct> (vec.h:1317)
==1530751== by 0x89D0F4E: gt_ggc_mx_vec_dw_attr_node_va_gc_
(gt-dwarf2out.h:274)
==1530751== by 0x89D0F4E: gt_ggc_mx_vec_dw_attr_node_va_gc_(void*)
(gt-dwarf2out.h:269)
==1530751== by 0x89D0FD3: gt_ggc_mx_die_struct (gt-dwarf2out.h:45)
==1530751== by 0x89D0FD3: gt_ggc_mx_die_struct(void*) (gt-dwarf2out.h:23)
==1530751== by 0x89D0FF9: gt_ggc_mx_die_struct (gt-dwarf2out.h:47)
==1530751== by 0x89D0FF9: gt_ggc_mx_die_struct(void*) (gt-dwarf2out.h:23)
==1530751== by 0x89D0F4E: gt_ggc_mx<dw_attr_struct> (vec.h:1317)
==1530751== by 0x89D0F4E: gt_ggc_mx_vec_dw_attr_node_va_gc_
(gt-dwarf2out.h:274)
==1530751== by 0x89D0F4E: gt_ggc_mx_vec_dw_attr_node_va_gc_(void*)
(gt-dwarf2out.h:269)
==1530751== by 0x89D0FD3: gt_ggc_mx_die_struct (gt-dwarf2out.h:45)
==1530751== by 0x89D0FD3: gt_ggc_mx_die_struct(void*) (gt-dwarf2out.h:23)
==1530751== by 0x89C9B62: ggc_mx (hash-traits.h:235)
==1530751== by 0x89C9B62: ggc_maybe_mx (hash-traits.h:242)
==1530751== by 0x89C9B62: gt_ggc_mx<decl_die_hasher> (hash-table.h:1166)
==1530751== by 0x89C9B62: gt_ggc_mx_hash_table_decl_die_hasher_
(gt-dwarf2out.h:395)
==1530751== by 0x89C9B62: gt_ggc_mx_hash_table_decl_die_hasher_(void*)
(gt-dwarf2out.h:390)
==1530751== by 0x8AC4683: ggc_mark_root_tab(ggc_root_tab const*)
(ggc-common.c:77)
==1530751== Address 0x2968 is not stack'd, malloc'd or (recently) free'd
==1530751==
raised STORAGE_ERROR : stack overflow or erroneous memory access
The regression must be couple of days old. Note that one needs PGO bootstrap
and i586 target.