[Bug target/107540] New: [13 Regression] ICE: SIGSEGV in memory_operand(rtx_def*, machine_mode) (recog.cc:1834) with -flive-range-shrinkage

2022-11-06 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107540 Bug ID: 107540 Summary: [13 Regression] ICE: SIGSEGV in memory_operand(rtx_def*, machine_mode) (recog.cc:1834) with -flive-range-shrinkage Product: gcc Version:

[Bug tree-optimization/107541] New: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu

2022-11-06 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107541 Bug ID: 107541 Summary: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug libstdc++/39796] cin/cout/cerr constructors should run at high priority when possible

2022-11-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39796 --- Comment #5 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:4e4e3ffd10f53ef71696bc728ab40258751a2df4 commit r13-3707-g4e4e3ffd10f53ef71696bc728ab40258751a2df4 Author: Patrick Palka Date: Su

[Bug libstdc++/44952] #include implies global constructor.

2022-11-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44952 --- Comment #18 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:4e4e3ffd10f53ef71696bc728ab40258751a2df4 commit r13-3707-g4e4e3ffd10f53ef71696bc728ab40258751a2df4 Author: Patrick Palka Date: S

[Bug libstdc++/98108] Broken Schwarz counter for iostreams initialization

2022-11-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98108 --- Comment #10 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:4e4e3ffd10f53ef71696bc728ab40258751a2df4 commit r13-3707-g4e4e3ffd10f53ef71696bc728ab40258751a2df4 Author: Patrick Palka Date: S

[Bug c++/98052] Allocation with new and deallocation with std::allocator should result in an error

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98052 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/95797] Can std::allocator.deallocate newed pointer during constant evaluation

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95797 Andrew Pinski changed: What|Removed |Added CC||src at andyf dot de --- Comment #6 from

[Bug tree-optimization/107541] [13 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107541 Andrew Pinski changed: What|Removed |Added Target||x86_64-linux-gnu Target Milestone|---

[Bug tree-optimization/107541] [13 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu

2022-11-06 Thread franckbehaghel_gcc at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107541 Franck Behaghel changed: What|Removed |Added CC||franckbehaghel_gcc@protonma

[Bug tree-optimization/107541] [13 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107541 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-11-06 Ever confirmed|0

[Bug target/107540] [13 Regression] ICE: SIGSEGV in memory_operand(rtx_def*, machine_mode) (recog.cc:1834) with -flive-range-shrinkage

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107540 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0

[Bug c++/107542] New: ICE in spaceship_comp_cat, at cp/method.cc:1055

2022-11-06 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107542 Bug ID: 107542 Summary: ICE in spaceship_comp_cat, at cp/method.cc:1055 Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c++/107542] ICE in spaceship_comp_cat, at cp/method.cc:1055

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107542 --- Comment #1 from Andrew Pinski --- Created attachment 53840 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53840&action=edit testcase Note please next time also attach the testcase (or put it inline) and not just link against godbolt.

[Bug c++/107542] ICE in spaceship_comp_cat, at cp/method.cc:1055

2022-11-06 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107542 --- Comment #2 from danakj at orodu dot net --- The same thing works okay with operator== instead of operator<=> https://godbolt.org/z/qnPx3bYT4 ``` #include #include template concept Ord = requires(const Lhs& lhs, const Rhs& rhs) { { l

[Bug c++/107542] ICE in spaceship_comp_cat, at cp/method.cc:1055

2022-11-06 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107542 --- Comment #3 from danakj at orodu dot net --- > Note please next time also attach the testcase (or put it inline) and not > just link against godbolt. Will do, thanks for attaching it for me.

[Bug c++/107543] New: c-family/c-cppbuiltin.cc: Undefine __GNUC_STDC_INLINE__ in C++ mode?

2022-11-06 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107543 Bug ID: 107543 Summary: c-family/c-cppbuiltin.cc: Undefine __GNUC_STDC_INLINE__ in C++ mode? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/107544] New: Friended struct with concept gives different output in clang/gcc/MSVC

2022-11-06 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107544 Bug ID: 107544 Summary: Friended struct with concept gives different output in clang/gcc/MSVC Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/107544] Friended struct with concept gives different output in clang/gcc/MSVC

2022-11-06 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107544 --- Comment #1 from danakj at orodu dot net --- Clang report: https://github.com/llvm/llvm-project/issues/58833

[Bug c++/107544] Friended struct with concept gives different output in clang/gcc/MSVC

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107544 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/107544] Friended struct with concept gives different output in clang/gcc/MSVC

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107544 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/107541] [13 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu

2022-11-06 Thread franckbehaghel_gcc at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107541 --- Comment #3 from Franck Behaghel --- Not sure that would help but disabling those pair of passes : -fdisable-tree-ccp3 -fdisable-tree-ccp4 or -fdisable-tree-ccp4 -fdisable-tree-dom2 or -fdisable-tree-dom2 -fdisable-tree-dom3 removes t

[Bug c++/107544] Friended struct with concept gives different output in clang/gcc/MSVC

2022-11-06 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107544 --- Comment #4 from danakj at orodu dot net --- It looks related but I am not sure it is a duplicate. In this case, the concept is being used from a non-friend context first and still accessing the private data. In that bug, they demonstrate clan

[Bug target/107540] [13 Regression] ICE: SIGSEGV in memory_operand(rtx_def*, machine_mode) (recog.cc:1834) with -flive-range-shrinkage

2022-11-06 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107540 Hongtao.liu changed: What|Removed |Added CC||crazylht at gmail dot com --- Comment #1

[Bug target/107540] [13 Regression] ICE: SIGSEGV in memory_operand(rtx_def*, machine_mode) (recog.cc:1834) with -flive-range-shrinkage

2022-11-06 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107540 --- Comment #2 from Hongtao.liu --- diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index fa93ae7bf21..4e8463addc3 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -12203,7 +12203,7 @@ (define_insn "avx512f_movddu

[Bug c++/107545] New: __is_abstract intrinsic fails to compile on incomplete unions

2022-11-06 Thread eric41293 at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107545 Bug ID: 107545 Summary: __is_abstract intrinsic fails to compile on incomplete unions Product: gcc Version: 12.2.0 Status: UNCONFIRMED Keywords: rejects-valid

[Bug c++/107545] __is_abstract intrinsic fails to compile on incomplete unions

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107545 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0 Resolution|---

[Bug tree-optimization/105414] constant folding for fmin/max(snan, snan) is wrong

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105414 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0

[Bug rtl-optimization/105455] ICE: verify_flow_info failed (error: verify_flow_info: REG_BR_PROB does not match cfg)

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105455 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.2 Known to fail|

[Bug debug/105261] schedule-insns2 and ipa-sra make alive constant variables not available

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105261 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection --- Comment #2 from And

[Bug rtl-optimization/107546] New: simd, redundant pcmpeqb and pxor

2022-11-06 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107546 Bug ID: 107546 Summary: simd, redundant pcmpeqb and pxor Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimizat

[Bug target/107546] simd, redundant pcmpeqb and pxor

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
6QI (symbol_ref/u:DI ("*.LC0") [flags 0x2]) [0 S16 A128])) "/opt/compiler-explorer/gcc-trunk-20221106/lib/gcc/x86_64-linux-gnu/13.0.0/include/emmintrin.h":1353:34 -1 (expr_list:REG_EQUAL (const_vector:V16QI [ (const_int 47 [0x2f]) repeated x16 ])

[Bug target/107546] [10/11/12/13 Regression] simd, redundant pcmpeqb and pxor

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107546 Andrew Pinski changed: What|Removed |Added Summary|simd, redundant pcmpeqb and |[10/11/12/13 Regression]

[Bug c++/107535] -fvisibility=hidden should not hide C++17 inline static variables

2022-11-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107535 Richard Biener changed: What|Removed |Added Keywords||ABI --- Comment #1 from Richard Biener

[Bug ada/107536] [12/13 regression] Wrong 'not referenced' warning on renamed variable

2022-11-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107536 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.3 Summary|[12 regression

[Bug tree-optimization/107541] [13 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu

2022-11-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107541 Richard Biener changed: What|Removed |Added CC||aldyh at gcc dot gnu.org Pri

[Bug target/107546] [10/11/12/13 Regression] simd, redundant pcmpeqb and pxor

2022-11-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107546 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Target|x86_64

[Bug target/107546] [10/11/12/13 Regression] simd, redundant pcmpeqb and pxor

2022-11-06 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107546 --- Comment #3 from Hongtao.liu --- Failed to match this instruction: (set (reg:V16QI 95) (eq:V16QI (gt:V16QI (subreg:V16QI (reg:V2DI 89 [ MEM[(const __m128i_u * {ref-all})p_2(D)] ]) 0) (mem/u/c:V16QI (symbol_ref/u:DI ("*.LC0") [

[Bug target/107546] [10/11/12/13 Regression] simd, redundant pcmpeqb and pxor

2022-11-06 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107546 --- Comment #4 from Hongtao.liu --- > even. Notice the < vs <= there. > I suspect the <= expansion part of the x86_64 backend needs to be fixed up > to produce better code. Hmm, we do have a extra pcmpeq to negate the result. --cu

[Bug target/107546] [10/11/12/13 Regression] simd, redundant pcmpeqb and pxor

2022-11-06 Thread glisse at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107546 --- Comment #5 from Marc Glisse --- typedef signed char v16qs __attribute__((vector_size(16))); auto bar(v16qs x) { return x < 48; } clang does expand it as 48 gt x. Gcc however does its usual change to x <= 47, which it then tries to expand as

[Bug target/107546] [10/11/12/13 Regression] simd, redundant pcmpeqb and pxor

2022-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107546 --- Comment #6 from Andrew Pinski --- (In reply to Marc Glisse from comment #5) > typedef signed char v16qs __attribute__((vector_size(16))); > auto bar(v16qs x) { return x < 48; } > > clang does expand it as 48 gt x. Gcc however does its usual

[Bug tree-optimization/107413] Perf loss ~14% on 519.lbm_r SPEC cpu2017 benchmark with r8-7132-gb5b33e113434be

2022-11-06 Thread rvmallad at amazon dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107413 --- Comment #11 from Rama Malladi --- (In reply to Wilco from comment #10) > I'm seeing about 1.5% gain on Neoverse V1 and 0.5% loss on Neoverse N1. I'll > post a patch that allows per-CPU settings for FMA reassociation, so you'll > get good per

[Bug tree-optimization/107541] [13 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu

2022-11-06 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107541 --- Comment #4 from Aldy Hernandez --- This is an issue with the TRUNC_DIV_EXPR range-op entry optimizing divisions by powers of 2 into right shifts. We're right shifting the mask by the shift amount. operator_div::fold_range(): ... ... tree