[Bug driver/81658] gcc configured with --enable-default-pie on SPARC produces buggy executable from working .o files

2020-07-25 Thread slyfox at gcc dot gnu.org
||slyfox at gcc dot gnu.org Resolution|--- |MOVED --- Comment #2 from Sergei Trofimovich --- Setting status to MOVED to https://sourceware.org/PR22638

[Bug target/96190] --enable-default-pie on sparc uses crtbeginS.o (correct) and crtend.o (incorrect)

2020-07-25 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96190 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org

[Bug libstdc++/96322] New: 22_locale/numpunct/members/char/3.cc is outdated: expects grouping=0, actual=3

2020-07-26 Thread slyfox at gcc dot gnu.org
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Noticed as a test failure on glibc-2.31 system: FAIL: 22_locale/numpunct/members/char/3.cc execution test Test does

[Bug c++/95820] [10 Regression] ICE in splice_late_return_type, at cp/pt.c:29034

2020-07-26 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95820 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org

[Bug c++/95820] [10 Regression] ICE in splice_late_return_type, at cp/pt.c:29034

2020-07-27 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95820 Sergei Trofimovich changed: What|Removed |Added Target Milestone|10.2|11.0 --- Comment #10 from Sergei Tr

[Bug libstdc++/96382] New: const_reverse_iterator() ctor is rejected in c++98

2020-07-29 Thread slyfox at gcc dot gnu.org
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org CC: jwakely at redhat dot com Target Milestone: --- Original build failure is found on re2c-2.0 project. Minimal failing example: $ cat a.cc #include // g++-10.2.0 -c

[Bug ipa/96394] New: internal compiler error: in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-07-30 Thread slyfox at gcc dot gnu.org
Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- It's a forward of https://bugs.gentoo.org/734006 where Ștefan Talp

[Bug ipa/96394] internal compiler error: in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-07-30 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96394 --- Comment #1 from Sergei Trofimovich --- Created attachment 48966 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48966&action=edit all.tar.gz all.tar.gz is a preprocessed file, corresponding .gcda file and a few ipa dumps.

[Bug ipa/96394] internal compiler error: in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-07-30 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96394 --- Comment #2 from Sergei Trofimovich --- My guess is it's somehow related to the fact that inliner did 'termvalid' inline (twice probably?): """ static int validate_chain_two_ops(node *tree, int (*termvalid)(node *), int op1, int op2) { i

[Bug ipa/96394] internal compiler error: in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-07-30 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96394 --- Comment #3 from Sergei Trofimovich --- Created attachment 48967 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48967&action=edit gcc-tauthon-734006-PR96394.tar.gz gcc-tauthon-734006-PR96394.tar.gz is seemingly self-contained example.

[Bug debug/96405] New: Comparing stages 2 and 3: Bootstrap comparison failure!

2020-07-31 Thread slyfox at gcc dot gnu.org
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org CC: rguenther at suse dot de Target Milestone: --- Today's gcc master at: """ commit f07fa7a31c89811ad9ffdd9831177cc815f098d2 Aut

[Bug debug/96405] Comparing stages 2 and 3: Bootstrap comparison failure!

2020-07-31 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96405 --- Comment #1 from Sergei Trofimovich --- $ LANG=C ./xgcc -B. -v Reading specs from ./specs COLLECT_GCC=./xgcc COLLECT_LTO_WRAPPER=./lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/portage-tmpdir/portage/sys-devel/gcc-11.0.0_pre999

[Bug bootstrap/96404] [10 Regression] AIX Bootstrap failure with DWARF debug changes

2020-07-31 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org

[Bug debug/96405] Comparing stages 2 and 3: Bootstrap comparison failure!

2020-07-31 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96405 Sergei Trofimovich changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug bootstrap/96404] [10 Regression] AIX Bootstrap failure with DWARF debug changes

2020-07-31 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404 --- Comment #2 from Sergei Trofimovich --- Seeing this as well on amd64-linux: $ LANG=C ./xgcc -B. -v Reading specs from ./specs COLLECT_GCC=./xgcc COLLECT_LTO_WRAPPER=./lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/portage-tmpdi

[Bug bootstrap/96404] [10 Regression] Bootstrap failure

2020-07-31 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404 --- Comment #5 from Sergei Trofimovich --- Comparing example file: $ LANG=C cmp --ignore-initial=16 ./stage2-x86_64-pc-linux-gnu/libgomp/task.o ./stage3-x86_64-pc-linux-gnu/libgomp/task.o ./stage2-x86_64-pc-linux-gnu/libgomp/task.o ./stage3-x86_

[Bug bootstrap/96404] [10 Regression] Bootstrap failure

2020-07-31 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404 --- Comment #8 from Sergei Trofimovich --- Created attachment 48971 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48971&action=edit task.S-stage2-stage3.tar.gz

[Bug bootstrap/96404] [10 Regression] Bootstrap failure

2020-07-31 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404 --- Comment #9 from Sergei Trofimovich --- valgrind says there is use of uninitialized variable: ==3676055== Conditional jump or move depends on uninitialised value(s) ==3676055==at 0xDBED3B: vt_find_locations() (var-tracking.c:7230) ==36760

[Bug bootstrap/96404] [10 Regression] Bootstrap failure

2020-08-02 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404 --- Comment #14 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #9) > valgrind says there is use of uninitialized variable: I picked _gcov.c and minimized it's unstable compilation under cvise. Then minimized it under pr

[Bug bootstrap/96404] [10 Regression] Bootstrap failure

2020-08-02 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404 --- Comment #15 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #14) > (In reply to Sergei Trofimovich from comment #9) > > valgrind says there is use of uninitialized variable: > > I picked _gcov.c and minimized it's un

[Bug bootstrap/96404] [10 Regression] Bootstrap failure

2020-08-02 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404 --- Comment #16 from Sergei Trofimovich --- Sent https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551174.html for review. > I'll check if it fixes bootstrap for me. The patch fixed gcc bootstrap for me.

[Bug bootstrap/96404] [11 Regression] Bootstrap failure

2020-08-02 Thread slyfox at gcc dot gnu.org
|unassigned at gcc dot gnu.org |slyfox at gcc dot gnu.org Summary|[10 Regression] Bootstrap |[11 Regression] Bootstrap |failure |failure Resolution|--- |FIXED Target Milestone|--- |11.0

[Bug debug/96383] [8/9/10 Regression] Full ABI information missing from GCC compiled C

2020-08-02 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96383 Bug 96383 depends on bug 96404, which changed state. Bug 96404 Summary: [11 Regression] Bootstrap failure https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404 What|Removed |Added --

[Bug c++/96425] New: [8/9/10/11 regression] internal compiler error in maybe_process_partial_specialization()

2020-08-02 Thread slyfox at gcc dot gnu.org
Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- In attempt to find why boost is able to crash gcc at https

[Bug c++/96425] [8/9/10/11 regression] internal compiler error in maybe_process_partial_specialization()

2020-08-03 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96425 --- Comment #1 from Sergei Trofimovich --- Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0069f0d6 in maybe_process_partial_specialization (type=0x0) at ../../gcc/gcc/cp/pt.c:976 976 if (CLASS_TYPE_P (type) && CL

[Bug c++/96425] [8/9/10/11 regression] internal compiler error in maybe_process_partial_specialization()

2020-08-03 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96425 --- Comment #2 from Sergei Trofimovich --- Compiler version and target details: $ ./xg++ -B. -v Reading specs from ./specs COLLECT_GCC=./xg++ COLLECT_LTO_WRAPPER=./lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --build

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-08-17 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org

[Bug c++/96717] New: -flifetime-dse=2 breaks webkit-gtk-2.28.4

2020-08-19 Thread slyfox at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Created attachment 49084 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49084&action=edit part-of-webkit-gtk-2.28.4.tar.gz Initially I noticed the bug on liferea whi

[Bug middle-end/87256] hppa spends huge amount of time in synth_mult()

2020-08-29 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87256 --- Comment #18 from Sergei Trofimovich --- Thank you!

[Bug gcov-profile/96913] New: gcc-11: __gcov_merge_topn hangs

2020-09-03 Thread slyfox at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org CC: hubicka at gcc dot gnu.org, marxin at gcc dot gnu.org, mliska at suse dot cz Target Milestone: --- The hang happens on real tauthon-2.8.2 interpreter from PR96394

[Bug gcov-profile/96913] gcc-11: __gcov_merge_topn hangs

2020-09-03 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96913 --- Comment #1 from Sergei Trofimovich --- Created attachment 49178 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49178&action=edit _json.gcda Attaching _json.gcda in case it will shed the light if file was written incorrectly previously

[Bug gcov-profile/96913] gcc-11: __gcov_merge_topn hangs

2020-09-04 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96913 --- Comment #2 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #0) > The hang happens on real tauthon-2.8.2 interpreter from PR96394 (no nice > reproducer yet). > > In this instance I tried to build tauthon-2.8.2 against

[Bug gcov-profile/96913] gcc-11: __gcov_merge_topn hangs

2020-09-04 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96913 --- Comment #3 from Sergei Trofimovich --- Specifically I think this is already a wrong format on disk: > _json.gcda:01a7: 0:COUNTERS topn 0 counts > _json.gcda:01a9: 48:COUNTERS indirect_call 24 counts > _json.gcda:

[Bug gcov-profile/96913] gcc-11: __gcov_merge_topn hangs

2020-09-06 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96913 --- Comment #4 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #3) > Specifically I think this is already a wrong format on disk: > > > _json.gcda:01a7: 0:COUNTERS topn 0 counts > > _json.gcda:01a9: 48

[Bug gcov-profile/96913] gcc-11: __gcov_merge_topn hangs

2020-09-06 Thread slyfox at gcc dot gnu.org
||2020-09-06 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |slyfox at gcc dot gnu.org --- Comment #5 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #4) > $ x86_64-pc-linux-gnu-nm taut

[Bug gcov-profile/96913] [10/11 regression] gcov TOPN streaming is incorrect for shared libraries

2020-09-06 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96913 Sergei Trofimovich changed: What|Removed |Added Summary|gcc-11: __gcov_merge_topn |[10/11 regression] gcov

[Bug ipa/96394] [10/11 Regression] ICE in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-09-06 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96394 --- Comment #8 from Sergei Trofimovich --- Might end up being caused by the same bug in PR96913: TOPN streaming from/for shared libraries is incorrect. Proposed patch: https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553320.html

[Bug ipa/96394] [10/11 Regression] ICE in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-09-06 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96394 --- Comment #9 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #8) > Might end up being caused by the same bug in PR96913: TOPN streaming > from/for shared libraries is incorrect. > > Proposed patch: > https://gcc.gnu.or

[Bug c++/97126] New: gcc-9 and and above ICEs on 'no_unique_address': internal compiler error: in output_constructor_regular_field, at varasm.c:5402

2020-09-20 Thread slyfox at gcc dot gnu.org
oduct: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- ICE initially observed when building dolphi

[Bug gcov-profile/96913] [10 regression] gcov TOPN streaming is incorrect for shared libraries

2020-09-22 Thread slyfox at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96913 Sergei Trofimovich changed: What|Removed |Added Summary|[10/11 regression] gcov |[10 regression] gcov TOPN

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2021-03-05 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #32 from Sergei Trofimovich --- (In reply to Martin Liška from comment #28) > Should be fixed now. Tested today's gcc against firefox-86 in lto+pgo mode. Built fine. Thank you!

[Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host

2021-03-22 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99703 --- Comment #12 from Sergei Trofimovich --- Downstream bug report is https://gcc.gnu.org/PR99703 (has all config.log files and build log files). Caveat: Gentoo's gcc-10.2.0 has a https://gitweb.gentoo.org/proj/gcc-patches.git/tree/10.2.0/gentoo/4

[Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host

2021-03-22 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99703 --- Comment #13 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #12) > Downstream bug report is https://gcc.gnu.org/PR99703 Wrong link. Correct one: https://bugs.gentoo.org/777117

[Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host

2021-03-22 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99703 --- Comment #14 from Sergei Trofimovich --- Meanwhile from downstream build.log: * Configuring GCC with: * --host=i586-pc-linux-gnu * --build=i586-pc-linux-gnu * --prefix=/usr * --bindir=/usr/i586-pc-linux-gnu/gcc-bin/10

[Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host

2021-03-22 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99703 --- Comment #15 from Sergei Trofimovich --- Created attachment 50450 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50450&action=edit gcc-10.2.0-cet-patched-lto-plugin-config.log

[Bug c/97413] New: gcc-11 fails to typecheck VLA declarations on emacs-27.1: error: wrong number of arguments specified for 'access' attribute

2020-10-13 Thread slyfox at gcc dot gnu.org via Gcc-bugs
oduct: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Originally observer a s build failure of emacs-27.1

[Bug c++/95942] [11 regression] offsetof on an array: error: 'e' is not a constant expression

2020-10-15 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95942 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org

[Bug gcov-profile/97461] New: allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Single-file example is extracted from firefox-81 build hangup

[Bug gcov-profile/97461] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #1 from Sergei Trofimovich --- Created attachment 49388 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49388&action=edit a.c

[Bug gcov-profile/97461] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #2 from Sergei Trofimovich --- Original firefox lockup is slightly more complicated: malloc() call happens in a constructor of external library (at _gpg_err_init()). (gdb) bt #0 __lll_lock_wait (futex=0x5591defd9720 , private=0) at

[Bug gcov-profile/97461] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #3 from Sergei Trofimovich --- Probably started from https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=871e5ada6d53d5eb ("Make TOPN counter dynamically allocated.") when dynamic memory allocation call was added to gcov_topn_add_value(

[Bug driver/97469] New: __attribute__ ((__target__ ("..."))) resets -mcmodel= values, breaks grub compilation

2020-10-17 Thread slyfox at gcc dot gnu.org via Gcc-bugs
NCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Bug initially observed as a build failure on grub-2.04. There 32-bit PLT relocations get generated agains

[Bug driver/97469] __attribute__ ((__target__ ("..."))) resets -mcmodel= values, breaks grub compilation

2020-10-17 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97469 --- Comment #1 from Sergei Trofimovich --- Reading https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes it's not very clear if __attribute__((__target__("..."))) should throw away all existing -m* comm

[Bug libstdc++/97485] New: std::call_once crashes at runtime on glibc if not linked to libpthread:

2020-10-19 Thread slyfox at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Initially bug was reported as a crash of llvm-tblgen tool: https://bugs.gentoo.org/749162. Small reproducer: $ cat a.cc

[Bug libstdc++/97485] std::call_once crashes at runtime on glibc if not linked to libpthread: terminate called after throwing an instance of 'std::system_error': what(): Unknown error -1

2020-10-19 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97485 Sergei Trofimovich changed: What|Removed |Added Host||x86_64-pc-linux-gnu --- Comment #1

[Bug libstdc++/97485] std::call_once crashes at runtime on glibc if not linked to libpthread: terminate called after throwing an instance of 'std::system_error': what(): Unknown error -1

2020-10-19 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97485 --- Comment #2 from Sergei Trofimovich --- AFAIU '-1' comes from https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libgcc/gthr-posix.h;h=965247602acf11f81c5fa009c7ee48eb55cbacca;hb=HEAD#l696 696 static inline int 697 __gthread_once (__gthread_once_t

[Bug libstdc++/97485] std::call_once crashes at runtime on glibc if not linked to libpthread: terminate called after throwing an instance of 'std::system_error': what(): Unknown error -1

2020-10-19 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97485 Sergei Trofimovich changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONF

[Bug libstdc++/55394] Using call_once without -lpthread compiles without warning

2020-10-19 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55394 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org

[Bug libstdc++/55394] Using call_once without -lpthread compiles without warning

2020-10-20 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55394 --- Comment #10 from Sergei Trofimovich --- How about something as simple as: --- a/libgcc/gthr-posix.h +++ b/libgcc/gthr-posix.h @@ -697,7 +697,12 @@ static inline int __gthread_once (__gthread_once_t *__once, void (*__func) (void)) { if (

[Bug libstdc++/55394] Using call_once without -lpthread compiles without warning

2020-10-20 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55394 --- Comment #12 from Sergei Trofimovich --- Aha, makes sense. My hack did not survive bootstrap anyway as libgcc.a started referring pthread_once() as well.

[Bug ipa/97565] New: -flto -ipa-pta ICE: at cgraph_node::get_untransformed_body()

2020-10-24 Thread slyfox at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- This is a forward of https://bugs.gentoo.org/750473 ICE where spidermonkey-78.4.0 fails when

[Bug ipa/97565] -flto -ipa-pta ICE: at cgraph_node::get_untransformed_body()

2020-10-24 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97565 --- Comment #1 from Sergei Trofimovich --- If I change 'abort' name to 'foo' then test works fine: $ cat abort.cpp extern "C" void foo(void) { foo(); } $ cat main.cpp extern "C" void foo(void); int main(int argc, char * argv[]) { foo(); }

[Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223

2020-10-26 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863 --- Comment #5 from Sergei Trofimovich --- gcc's backtrace: Breakpoint 2, internal_error (gmsgid=0x2df9a67 "in %s, at %s:%d") at ../../gcc/gcc/diagnostic.c:1752 1752{ (gdb) bt #0 internal_error (gmsgid=0x2df9a67 "in %s, at %s:%d") at ../../

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-27 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #13 from Sergei Trofimovich --- Tried firefox-82 with LTO+PGO today on gcc-11-4428-g4a369d199bf. It gets a lot more forward, but still gets stuck. This time on free()->allocate_gcov_kvp ()->alloc() deadloc. The backtrace: (gdb) bt #

[Bug tree-optimization/97615] New: [11 Regression] -O3 on -Wsequence-point-unclean code ICEs: during GIMPLE pass: slp: internal compiler error: in vectorizable_live_operation, at tree-vect-loop.c:8497

2020-10-28 Thread slyfox at gcc dot gnu.org via Gcc-bugs
tree-vect-loop.c:8497 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-29 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #15 from Sergei Trofimovich --- allocate_gcov_kvp() gets called 89 times. Tried as: $ gdb --quiet --args dist/firefox/fire fox 'data:text/html,Quitter.quit()' -profile ../../firefox-82.0/temp/tmpzhv0a26v (gdb) break allocate_gcov_kvp

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-30 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #19 from Sergei Trofimovich --- (In reply to Martin Liška from comment #16) > (In reply to Sergei Trofimovich from comment #15) > > allocate_gcov_kvp() gets called 89 times. Tried as: > > All right, it's quite close to what we have.

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-30 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #20 from Sergei Trofimovich --- (In reply to Martin Liška from comment #17) > Or I may have a smarter trick: let's do dry run of malloc/free functions > early in __gcov_init. Can you please test the patch as well? > > commit d80cecdb

[Bug libstdc++/96322] 22_locale/numpunct/members/char/3.cc is outdated: expects grouping=0, actual=3

2020-11-12 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96322 --- Comment #1 from Sergei Trofimovich --- Maybe pick another similar locale? Candidates are: glibc $ git grep '0;0' localedata/locales/ | cat localedata/locales/aa_DJ:grouping 0;0 localedata/locales/bs_BA:grouping

[Bug libstdc++/96322] 22_locale/numpunct/members/char/3.cc is outdated: expects grouping=0, actual=3

2020-11-13 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96322 --- Comment #3 from Sergei Trofimovich --- Good point. I tried pt_PT on FreeBSD to check if it's the same as in Linux and it's not: there grouping=3 is used. +1 for custom locale.

[Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223

2020-11-27 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863 --- Comment #6 from Sergei Trofimovich --- In we see ICEs related to '[[no_unique_address]]' on chromium source code: https://bugs.gentoo.org/757150 (a variant of #c4 example).

[Bug c++/98130] New: [11 regression] placement new fails on webkit-gtk-2.28.4

2020-12-03 Thread slyfox at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Initial problem is observed on liferea crash at startup against webkit-gtk-2.28.4 built with gcc-11. If I reduced original source correctly here

[Bug c++/98130] [11 regression] placement new fails on webkit-gtk-2.28.4 since r11-4745-g58c9de46541ade79

2020-12-04 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98130 --- Comment #14 from Sergei Trofimovich --- The gcc patch also fixes original liferea+webkit-gtk-2.28.4 crash. Thank you!

[Bug c/98161] New: [11 Regression] Incorrect stack realignment on __force_align_arg_pointer__+-mavx

2020-12-06 Thread slyfox at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- The bug was initially observed as a miscompilation of wine-5.22 built with gcc-11 -march=sandybridge. gcc-10 seems to

[Bug c++/98286] New: g++ accepts 'void d(void) { typename foo; }' as valid

2020-12-15 Thread slyfox at gcc dot gnu.org via Gcc-bugs
iority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Extracted from larger confusing boost example where g++ and clang++ disagree on syntactic validity. Filing a small one: $ cat bug.cpp void d(void)

[Bug c++/98306] New: invalid use of incomplete type 'struct grammar'

2020-12-15 Thread slyfox at gcc dot gnu.org via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Noticed error-looking warning when was reducing unrelated boost ICE. Minimal reproducer: // $ cat bug.cpp extern struct grammar *target_grammar; template v

[Bug tree-optimization/97750] ICE in during GIMPLE pass: wrestrict on commit e0af865ab9d9d5b6b3ac7fdde26cf9bbf635b6b4

2020-12-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97750 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org

[Bug tree-optimization/97750] ICE in during GIMPLE pass: wrestrict on commit e0af865ab9d9d5b6b3ac7fdde26cf9bbf635b6b4

2020-12-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97750 --- Comment #4 from Sergei Trofimovich --- Created attachment 49774 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49774&action=edit bug.c.orig Attaching bug.c.orig. Unreduced preprocessed file. 'gcc-11.0.0 -O2 -x c -c bug.c.orig' is enoug

[Bug tree-optimization/97750] [11 Regression] ICE in during GIMPLE pass: wrestrict since r11-4135-ge864d395b4e862ce

2020-12-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97750 --- Comment #6 from Sergei Trofimovich --- Peeking at the gdb backtrace: #0 operator_cast::op1_range (this=0x2e23ac0 , r=..., type=0x77676c78, lhs=..., op2=...) at ../../gcc/gcc/range-op.cc:1881 #1 0x01f7195e in gimple_range_calc_o

[Bug ipa/96394] [10/11 Regression] ICE in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-09-23 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96394 --- Comment #10 from Sergei Trofimovich --- Finally managed to shrink it down to self-contained example. It has to be split into two .c files (and one header) to prevent analyzer from inferring too much: // node.h: void bug(void); void * PyErr_F

[Bug ipa/96394] [10/11 Regression] ICE in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-09-23 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96394 --- Comment #11 from Sergei Trofimovich --- Created attachment 49263 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49263&action=edit b.tar.gz Also attaching tiny example as b.tar.gz

[Bug ipa/96394] [10/11 Regression] ICE in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-09-23 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96394 Sergei Trofimovich changed: What|Removed |Added Attachment #49263|0 |1 is obsolete|

[Bug c/97206] New: [11-regression] internal compiler error: in composite_type, at c/c-typeck.c:447

2020-09-25 Thread slyfox at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Originally observed on freetype-2.10.2 package. Here is the minimal reproducer: // x86_64-pc-linux-gnu-gcc -m32 -c -O2

[Bug c/97206] [11-regression] internal compiler error: in composite_type, at c/c-typeck.c:447

2020-09-25 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97206 --- Comment #1 from Sergei Trofimovich --- Testcase 2: something related happens to wavpack-5.3.2 package where gcc stopped typechecking array declarations: char *a(char *__restrict, int); __attribute__((__access__(__write_only__, 1))) char

[Bug ipa/97264] New: [11 Regression] -fpa-modref breaks va_arg on glibc

2020-10-01 Thread slyfox at gcc dot gnu.org via Gcc-bugs
: ipa Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org CC: hubicka at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Initially spotted the problem on glibc form master where fscanf() breaks in complex ways. I tried

[Bug ipa/97264] [11 Regression] -fpa-modref breaks va_arg on glibc

2020-10-01 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97264 --- Comment #1 from Sergei Trofimovich --- Created attachment 49295 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49295&action=edit uname.c

[Bug ipa/97264] [11 Regression] -fpa-modref breaks va_arg on glibc

2020-10-01 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97264 --- Comment #3 from Sergei Trofimovich --- Oh, that makes sense. > void __vfscanf_internal__ (const char *f, __builtin_va_list argptr) > { > /* assume input: "1<>\0" */ > while (*f != '\0') > { > const unsigned char ** pstr = (cons

[Bug gcov-profile/96913] [10 regression] gcov TOPN streaming is incorrect for shared libraries

2020-10-02 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96913 --- Comment #9 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #8) > Should be fixed for gcc-11. Will send a backport to gcc-10 this evening (the > code changed slightly since gcc-10). gcc-10 backport sent for review as

[Bug gcov-profile/96913] [10 regression] gcov TOPN streaming is incorrect for shared libraries

2020-10-02 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96913 Sergei Trofimovich changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ipa/96394] [10/11 Regression] ICE in add_new_edges_to_heap, at ipa-inline.c:1746 (-O3 PGO)

2020-10-02 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96394 --- Comment #20 from Sergei Trofimovich --- (In reply to Martin Jambor from comment #18) > I proposed the patch on the mailing list (I guess I should put Martin's name > at least to the testsuite ChangeLog and probably to both): > > https://gcc.

[Bug ipa/93115] gcc fails to emit inline function on llvm-roc project: -O1 -fPIC -fdevirtualize -fdevirtualize-speculatively -fipa-cp -fipa-cp-clone -fvisibility-inlines-hidden

2020-10-03 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93115 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org

[Bug rtl-optimization/97295] New: ICE on firefox built with lto+pgo: dist/include/mozilla/Casting.h:64:1: internal compiler error: in to_frequency, at profile-count.c:273

2020-10-05 Thread slyfox at gcc dot gnu.org via Gcc-bugs
Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- It's an upstream repo

[Bug rtl-optimization/97295] ICE on firefox built with lto+pgo: dist/include/mozilla/Casting.h:64:1: internal compiler error: in to_frequency, at profile-count.c:273

2020-10-05 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97295 --- Comment #1 from Sergei Trofimovich --- Created attachment 49309 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49309&action=edit ICE-testcase-gcc-10.2.0.tar.gz ICE-testcase-gcc-10.2.0.tar.gz contains two object files that seems to be e

[Bug rtl-optimization/97295] ICE on firefox built with lto+pgo: dist/include/mozilla/Casting.h:64:1: internal compiler error: in to_frequency, at profile-count.c:273

2020-10-05 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97295 --- Comment #2 from Sergei Trofimovich --- Also fails on unpatched releases/gcc-10.2.0 built as: """ $ ${HOME}/dev/git/gcc-10-build/gcc/xg++ -B${HOME}/dev/git/gcc-10-build/gcc -v Reading specs from /home/slyfox/dev/git/gcc-10-build/gcc/specs CO

[Bug rtl-optimization/97295] ICE on firefox built with lto+pgo: dist/include/mozilla/Casting.h:64:1: internal compiler error: in to_frequency, at profile-count.c:273

2020-10-05 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97295 --- Comment #3 from Sergei Trofimovich --- Poking at the crash to get clues: """ (gdb) bt #0 internal_error (gmsgid=0x285ac9f "in %s, at %s:%d") at ../../gcc-10/gcc/diagnostic.c:1706 #1 0x01f7c34a in fancy_abort (file=0x20c3e90 "../../

[Bug ipa/97295] ICE on firefox built with lto+pgo: dist/include/mozilla/Casting.h:64:1: internal compiler error: in to_frequency, at profile-count.c:273

2020-10-09 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97295 --- Comment #6 from Sergei Trofimovich --- Created attachment 49336 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49336&action=edit b.tar.gz Managed to craft self-contained example which is able to crash both gcc-10 and gcc-11. Attached a

[Bug ipa/97295] ICE on firefox built with lto+pgo: dist/include/mozilla/Casting.h:64:1: internal compiler error: in to_frequency, at profile-count.c:273

2020-10-09 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97295 --- Comment #7 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #6) > Created attachment 49336 [details] > b.tar.gz > > Managed to craft self-contained example which is able to crash both gcc-10 > and gcc-11. Attached as

[Bug c++/98306] invalid use of incomplete type 'struct grammar'

2020-12-18 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98306 --- Comment #2 from Sergei Trofimovich --- That makes sense. If it's a valid C++ I'm fine with closing the bug as RESOLVED/INVALID.

[Bug c++/98499] New: [11 Regression] Possibly bad std::string initialization in constructors

2021-01-02 Thread slyfox at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Initially bug is observed on a usage crash of libsass-3.6.4. Code snippet around the crash: https://github.com/sass/libsass/blob

[Bug c++/98499] [11 Regression] Possibly bad std::string initialization in constructors

2021-01-02 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98499 --- Comment #1 from Sergei Trofimovich --- Managed to get rid of external dependency: ``` struct string { char * _M_buf; // local store char _M_local_buf[16]; string(const string &__str) : _M_buf(_M_local_buf) {} string(const char *

  1   2   3   4   5   6   7   >