[Bug middle-end/103645] Gimplifier does not remove empty struct stores in a few cases

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103645 Andrew Pinski changed: What|Removed |Added Component|c |middle-end --- Comment #2 from Andrew

[Bug testsuite/103270] [12 regression] gcc.dg/vect/pr96698.c inner loop turned from hot to cold after r12-4526

2021-12-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103270 --- Comment #6 from CVS Commits --- The master branch has been updated by Xiong Hu Luo : https://gcc.gnu.org/g:46bfe1b0e11c4797c5926e0754fae2848026376c commit r12-6085-g46bfe1b0e11c4797c5926e0754fae2848026376c Author: Xionghu Luo Date: Mon

[Bug ipa/99419] possible missed optimization for dead code elimination

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99419 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug ipa/92800] IPA escape analysis for structs

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92800 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug target/103784] suboptimal code for returning bool value on target ppc

2021-12-20 Thread guihaoc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103784 --- Comment #4 from HaoChen Gui --- output with "-fdump-tree-optimized=/dev/stdout" ;; Function foo (foo, funcdef_no=0, decl_uid=3317, cgraph_uid=1, symbol_order=0) Removing basic block 5 _Bool foo (int a, int b) { _Bool _1; _Bool _5;

[Bug middle-end/94600] Ignored volatile specifier on loop unrolling and bitfield misoptimization

2021-12-20 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94600 Hans-Peter Nilsson changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/103784] suboptimal code for returning bool value on target ppc

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103784 --- Comment #3 from Andrew Pinski --- I wonder if this is because on the gimple level we are producing: _5 = b_3(D) <= 9; _6 = a_2(D) <= 2; _7 = _5 & _6; Now. Can you add -fdump-tree-optimized=/dev/stdout and provide the output of that

[Bug target/103784] suboptimal code for returning bool value on target ppc

2021-12-20 Thread guihaoc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103784 --- Comment #2 from HaoChen Gui --- Sorry, I pasted wrong codes. Here are the correct ones. //test.c #include bool foo (int a, int b) { if (a > 2) return false; if (b < 10) return true; return false; } //assembly with the

[Bug c++/103783] Ambiguous overload between constrained static member and unconstrained non-static member

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103783 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/103784] suboptimal code for returning bool value on target ppc

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103784 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization --- Comment #1

[Bug target/103784] New: suboptimal code for returning bool value on target ppc

2021-12-20 Thread guihaoc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103784 Bug ID: 103784 Summary: suboptimal code for returning bool value on target ppc Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/103750] [i386] GCC schedules KMOV instructions that destroys performance in loop

2021-12-20 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103750 --- Comment #15 from Hongtao.liu --- (In reply to Hongtao.liu from comment #14) > Created attachment 52032 [details] > update patch > > Update patch, Now gcc can generate optimal code > current fix add define_insn_and_splitter for 3 things:

[Bug c++/103783] New: Ambiguous overload between constrained static member and unconstrained non-static member

2021-12-20 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103783 Bug ID: 103783 Summary: Ambiguous overload between constrained static member and unconstrained non-static member Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug libstdc++/100017] [11/12 regression] error: 'fenv_t' has not been declared in '::' -- canadian compilation fails

2021-12-20 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017 --- Comment #48 from cqwrteur --- (In reply to Jonathan Wakely from comment #46) > I hope to get to it next week. what's the problem of just adding --nostdinc++ for RAW_CXX_FOR_TARGET??

[Bug libstdc++/100017] [11/12 regression] error: 'fenv_t' has not been declared in '::' -- canadian compilation fails

2021-12-20 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017 --- Comment #47 from cqwrteur --- (In reply to Jonathan Wakely from comment #46) > I hope to get to it next week. lul it is not fixed in entire week.

[Bug c++/103490] Linkage type of typeinfo of polymorphic object with OOL functions

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103490 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/103490] Linkage type of typeinfo of polymorphic object with OOL functions

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103490 --- Comment #1 from Andrew Pinski --- https://itanium-cxx-abi.github.io/cxx-abi/abi.html#vague-vtable The virtual table for a class is emitted in the same object containing the definition of its key function, i.e. the first non-pure virtual

[Bug rtl-optimization/68150] postreload-gcse ignores partially clobbered registers

2021-12-20 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68150 Segher Boessenkool changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug fortran/103782] [9/10/11/12 Regression] internal error occurs when overloading intrinsic

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103782 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Known to work|

[Bug fortran/103777] ICE in gfc_simplify_maskl, at fortran/simplify.c:4918

2021-12-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103777 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/103780] zero pointer is considered true

2021-12-20 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780 Andreas Schwab changed: What|Removed |Added Resolution|FIXED |INVALID

[Bug fortran/103782] New: internal error occurs when overloading intrinsic

2021-12-20 Thread urbanjost at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103782 Bug ID: 103782 Summary: internal error occurs when overloading intrinsic Product: gcc Version: 10.3.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/103780] zero pointer is considered true

2021-12-20 Thread lucfety at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780 Luc FETY changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #3 from Luc FETY --- (In

[Bug target/103781] generic/cortex-a53 cost model for SLP for aarch64 is good

2021-12-20 Thread husseydevin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103781 --- Comment #4 from Devin Hussey --- Makes sense because the multiplier is what, 5 cycles on an A53?

[Bug fortran/103777] ICE in gfc_simplify_maskl, at fortran/simplify.c:4918

2021-12-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103777 --- Comment #3 from anlauf at gcc dot gnu.org --- Minimal fix (for maskl): diff --git a/gcc/fortran/simplify.c b/gcc/fortran/simplify.c index 90067b6bbe6..45080e8b912 100644 --- a/gcc/fortran/simplify.c +++ b/gcc/fortran/simplify.c @@ -4909,6

[Bug fortran/103778] [10/11/12 Regression] ICE: Invalid expression in gfc_element_size

2021-12-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103778 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug target/103781] Cost model for SLP for aarch64 is not so good still

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103781 --- Comment #3 from Andrew Pinski --- I think it is the generic (and cortex-a53) cost model which is bad, -mcpu=cortex-a57 and -mcpu=neoverse-n1 is fine.

[Bug target/103781] Cost model for SLP for aarch64 is not so good still

2021-12-20 Thread husseydevin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103781 --- Comment #2 from Devin Hussey --- Yeah my bad, I meant SLP, I get them mixed up all the time.

[Bug fortran/103776] ICE in gfc_compare_string, at fortran/arith.c:1118

2021-12-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103776 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot

[Bug middle-end/103781] [AArch64, 11 regr.] Failed partial vectorization of mulv2di3

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103781 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization --- Comment #1

[Bug c++/103780] zero pointer is considered true

2021-12-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780 --- Comment #2 from Jonathan Wakely --- It is undefined to decrement a pointer to point before an object.

[Bug middle-end/103781] New: [AArch64, 11 regr.] Failed partial vectorization of mulv2di3

2021-12-20 Thread husseydevin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103781 Bug ID: 103781 Summary: [AArch64, 11 regr.] Failed partial vectorization of mulv2di3 Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal

[Bug fortran/103778] [10/11/12 Regression] ICE: Invalid expression in gfc_element_size

2021-12-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103778 anlauf at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2021-12-20

[Bug c++/59739] missed optimization: attribute ((pure)) with aggregate returns

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59739 Andrew Pinski changed: What|Removed |Added CC||pskocik at gmail dot com --- Comment #5

[Bug tree-optimization/93540] Attributes pure and const not working with aggregate return types, even trivial ones

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93540 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug ipa/86132] Failure to elide condition known to be non-null

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86132 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement See Also|

[Bug target/103772] [12 Regression] wrong code with -mavx512fp16 since r12-5700-g7eb961d83b0eda53

2021-12-20 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103772 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/103772] [12 Regression] wrong code with -mavx512fp16 since r12-5700-g7eb961d83b0eda53

2021-12-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103772 --- Comment #3 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:72c68d7ad90221075102f08f22256d0b4a7631b3 commit r12-6081-g72c68d7ad90221075102f08f22256d0b4a7631b3 Author: Uros Bizjak Date: Mon

[Bug fortran/103777] ICE in gfc_simplify_maskl, at fortran/simplify.c:4918

2021-12-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103777 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug target/103772] [12 Regression] wrong code with -mavx512fp16 since r12-5700-g7eb961d83b0eda53

2021-12-20 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103772 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com

[Bug c++/103780] zero pointer is considered true

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug fortran/103776] ICE in gfc_compare_string, at fortran/arith.c:1118

2021-12-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103776 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/103780] New: zero pointer is considered true

2021-12-20 Thread lucfety at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780 Bug ID: 103780 Summary: zero pointer is considered true Product: gcc Version: 10.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug fortran/95107] ICE in hash_operand, at fold-const.c:3768

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95107 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/102479] segfault when deducing class template arguments for tuple with libc++-14

2021-12-20 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102479 Patrick Palka changed: What|Removed |Added Target Milestone|--- |12.0 Resolution|---

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-12-20 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #7 from Johel Ernesto Guerrero Peña --- if (v == [] consteval { return std::numeric_limits::max() }()) break; works too. More generally, you can avoid the linker error if you don't require the symbol at link time.

[Bug rtl-optimization/98782] [11/12 Regression] Bad interaction between IPA frequences and IRA resulting in spills due to changes in BB frequencies

2021-12-20 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98782 --- Comment #31 from rsandifo at gcc dot gnu.org --- I don't know how relevant this is to the exchange2 problem yet, but for: - #define PROB 0.95 struct L { int data; L

[Bug fortran/103779] New: ICE in gfc_convert_chartype, at fortran/intrinsic.c:5400

2021-12-20 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103779 Bug ID: 103779 Summary: ICE in gfc_convert_chartype, at fortran/intrinsic.c:5400 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/103778] New: [10/11/12 Regression] ICE: Invalid expression in gfc_element_size

2021-12-20 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103778 Bug ID: 103778 Summary: [10/11/12 Regression] ICE: Invalid expression in gfc_element_size Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/103777] ICE in gfc_simplify_maskl, at fortran/simplify.c:4918

2021-12-20 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103777 G. Steinmetz changed: What|Removed |Added Keywords||ice-on-invalid-code --- Comment #1 from

[Bug fortran/103777] New: ICE in gfc_simplify_maskl, at fortran/simplify.c:4918

2021-12-20 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103777 Bug ID: 103777 Summary: ICE in gfc_simplify_maskl, at fortran/simplify.c:4918 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug fortran/103776] New: ICE in gfc_compare_string, at fortran/arith.c:1118

2021-12-20 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103776 Bug ID: 103776 Summary: ICE in gfc_compare_string, at fortran/arith.c:1118 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/94039] conditional operator fails to use proper overload

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94039 Andrew Pinski changed: What|Removed |Added CC||sbence92 at gmail dot com --- Comment

[Bug c++/100800] ternary operator doesn't accept T with conversion operator and nullptr

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100800 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/47762] FAIL: ext/mt_allocator/deallocate_global_thread-1.cc execution test

2021-12-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47762 --- Comment #25 from Jonathan Wakely --- I think this test should have: { dg-additional-options "-pthread" { target pthread } }

[Bug rtl-optimization/103775] [12 Regression] Assembler messages: Warning: unpredictable transfer with writeback -- `ldrb w0,[x0,16]!'

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103775 Andrew Pinski changed: What|Removed |Added Component|target |rtl-optimization Ever confirmed|0

[Bug target/103775] [12 Regression] Assembler messages: Warning: unpredictable transfer with writeback -- `ldrb w0,[x0,16]!'

2021-12-20 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103775 --- Comment #2 from Zdenek Sojka --- (In reply to Zdenek Sojka from comment #1) > With slightly different flags, this ICEs instead: Actually, just add -g

[Bug target/103775] [12 Regression] Assembler messages: Warning: unpredictable transfer with writeback -- `ldrb w0,[x0,16]!'

2021-12-20 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103775 Zdenek Sojka changed: What|Removed |Added Keywords||ice-on-valid-code --- Comment #1 from

[Bug target/103775] [12 Regression] Assembler messages: Warning: unpredictable transfer with writeback -- `ldrb w0,[x0,16]!'

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103775 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0 Keywords|

[Bug target/103775] New: [12 Regression] Assembler messages: Warning: unpredictable transfer with writeback -- `ldrb w0,[x0,16]!'

2021-12-20 Thread zsojka at seznam dot cz via Gcc-bugs
tra-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211220 (experimental) (GCC)

[Bug target/103772] [12 Regression] wrong code with -mavx512fp16 since r12-5700-g7eb961d83b0eda53

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103772 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0

[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

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

[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Keywords|

[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 --- Comment #2 from Andrew Pinski --- #include #if defined(__INTEL_COMPILER) || defined(_MSC_VER) auto __tzcnt_u16(unsigned /*short*/ value) { #ifdef Q_CC_INTEL unsigned short res; asm("tzcntw %w1, %0" : "=r" (res) : "r" (value));

[Bug target/103774] [i386] GCC should swap the arguments to certain functions to generate a single instruction

2021-12-20 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 Thiago Macieira changed: What|Removed |Added CC||hjl.tools at gmail dot com ---

[Bug target/103774] New: [i386] GCC should swap the arguments to certain functions to generate a single instruction

2021-12-20 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103774 Bug ID: 103774 Summary: [i386] GCC should swap the arguments to certain functions to generate a single instruction Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug tree-optimization/103216] missed optimization, phiopt/vrp?

2021-12-20 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103216 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/86604] phiopt missed optimization of conditional add

2021-12-20 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86604 mcccs at gmx dot com changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug target/103773] wrong code at -Oz due to sign extension

2021-12-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103773 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug tree-optimization/103759] [12 Regression] memcpy-chk failure for 32 bits

2021-12-20 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103759 David Edelsohn changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/103760] Invalid expression inside lambda inside compound requirement causes an error instead of concept satisfaction failure

2021-12-20 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103760 --- Comment #5 from Patrick Palka --- (In reply to Jacek Olczyk from comment #4) > (In reply to Patrick Palka from comment #2) > > GCC's behavior appears to be correct here (though perhaps less useful than > > Clang's). According to

[Bug target/103772] [12 Regression] wrong code with -mavx512fp16 since r12-5700-g7eb961d83b0eda53

2021-12-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103772 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org,

[Bug target/103773] wrong code at -Oz due to sign extension

2021-12-20 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103773 Roger Sayle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |roger at nextmovesoftware dot com

[Bug rtl-optimization/68150] postreload-gcse ignores partially clobbered registers

2021-12-20 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68150 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last

[Bug target/103773] New: wrong code at -Oz due to sign extension

2021-12-20 Thread zsojka at seznam dot cz via Gcc-bugs
ary-trunk-r12-6072-20211220084313-g8d1e342b4af-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211220 (experimental) (GCC)

[Bug c++/96117] Cannot mix c++11-style and GCC-style attributes

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96117 --- Comment #2 from Andrew Pinski --- Here is one where GCC works but clang does not: __attribute__((visibility("default"))) [[deprecated("a message")]] __attribute__((visibility("default"))) int A(void); If you remove the first

[Bug middle-end/103770] [11 Regression] ICE related to VLA

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 --- Comment #2 from Andrew Pinski --- So this might be latent on the trunk too ...

[Bug target/103771] [12 Regression] Missed vectorization under -mavx512f -mavx512vl after r12-5489

2021-12-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103771 Andrew Pinski changed: What|Removed |Added Summary|Missed vectorization under |[12 Regression] Missed

[Bug target/103772] New: wrong code with -mavx512fp16

2021-12-20 Thread zsojka at seznam dot cz via Gcc-bugs
ing-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211220 (experimental) (GCC)

[Bug preprocessor/84864] Issues with large line numbers >= 2^31

2021-12-20 Thread jg at jguk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84864 --- Comment #9 from Jonny Grant --- I'm sure you all know more than me. But I understood #line 0was not allowed. Therefore, it can simply be unsigned, and 0 used to indicate an error, instead of negative values. #line 0 is not currently an

[Bug target/36409] Additional instructions in prologue and epilogue.

2021-12-20 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36409 Richard Earnshaw changed: What|Removed |Added Last reconfirmed|2009-04-21 14:42:20 |2021-12-20 --- Comment #3 from

[Bug tree-optimization/103761] [12 Regression] ICE in exact_div, at poly-int.h:2239 since r12-5612-g10833849b55401a52f2334eb032a70beb688e9fc

2021-12-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103761 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug middle-end/103770] [11 Regression] ICE related to VLA

2021-12-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 Martin Liška changed: What|Removed |Added Last reconfirmed||2021-12-20 CC|

[Bug tree-optimization/103759] [12 Regression] memcpy-chk failure for 32 bits

2021-12-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103759 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment

[Bug target/103771] New: Missed vectorization under -mavx512f -mavx512vl after r12-5489

2021-12-20 Thread wwwhhhyyy333 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103771 Bug ID: 103771 Summary: Missed vectorization under -mavx512f -mavx512vl after r12-5489 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug target/101017] ICE: Segmentation fault, convert_memory_address_addr_space_1 with vector_size(32) and target_clone arch=core-avx2/default

2021-12-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101017 --- Comment #3 from Martin Liška --- Started with introduction of target_clone attribute: r6-4443-g3b1661a9b93fe800

[Bug target/102768] [feature request] Add compiler support for aarch64 shadow call stack

2021-12-20 Thread ashimida at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102768 --- Comment #8 from ashimida --- Gentile ping for this :), thanks. https://gcc.gnu.org/pipermail/gcc-patches/2021-December/587185.html

[Bug c++/79274] FAIL: g++.dg/tls/pr77285-2.C -std=c++11 scan-assembler _ZTH4var1B3tag

2021-12-20 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79274 Eric Gallager changed: What|Removed |Added See Also|https://gcc.gnu.org/bugzill |https://gcc.gnu.org/bugzill

[Bug c++/35835] Compiler fails to recognize match of local "extern" declarations

2021-12-20 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35835 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[Bug preprocessor/87730] Warn about misuses of __has_include_next

2021-12-20 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87730 Eric Gallager changed: What|Removed |Added Last reconfirmed||2021-12-20 Ever confirmed|0

[Bug c/86239] Suggestion: Improve "set but not used variable" warning

2021-12-20 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86239 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---