[Bug tree-optimization/101822] Codegen bug for popcount

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101822 --- Comment #1 from Jeremy R. --- Never mind, 101821 was invalid and the initial xor eax eax is by design (still wondering whether this applies to new CPUs though). There is still a discrepancy between this code and the __builtin_popcount code t

[Bug middle-end/84858] wrong exception handling of std::function

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84858 --- Comment #2 from Andrew Pinski --- Seems fixed in GCC 8+.

[Bug target/101821] Redundant xor eax eax

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101821 --- Comment #8 from Andrew Pinski --- (In reply to Jeremy R. from comment #7) > Does the false dependency still apply to modern CPUs? How modern is modern? Skylake fixed this for lzcnt and tzcnt. Cannon Lake (and Ice Lake) fixed this for popcnt

[Bug tree-optimization/101822] Codegen bug for popcount

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101822 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Last reconfirmed|

[Bug target/101821] Redundant xor eax eax

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101821 --- Comment #9 from Jeremy R. --- Thank you for the resources and for your insight, it's much appreciated. Is there interest in updating the intentional false-dependency logic to not fire for architectures newer than cannonlake?

[Bug middle-end/85237] missed optimisation opportunity for large/negative shifts

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

[Bug middle-end/94497] Branchless clamp in the general case gets a branch in a particular case ?

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94497 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #7 from Andrew P

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2021-08-08 Thread davidledger at live dot com.au via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 David Ledger changed: What|Removed |Added CC||davidledger at live dot com.au --- Comme

[Bug c++/100611] coroutines: destructor called too many times for coroutine lambda stored object

2021-08-08 Thread davidledger at live dot com.au via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100611 --- Comment #4 from David Ledger --- It still seems like a bug though.

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2021-08-08 Thread noah at vectorized dot io via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 --- Comment #3 from Noah Watkins --- Happy to work on providing a different reproducer if it is helpful. This was the first smallish example we could create, and the `free of an invalid pointer error` seemed as good enough as any unexpected beha

[Bug tree-optimization/46352] ICE: division by zero with -fdump-tree-tracer

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46352 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Known to work|

[Bug preprocessor/66909] Internal Compiler Error when #including files from /sys on Linux

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66909 --- Comment #3 from Andrew Pinski --- Here is 4.7 backtrace: t65.c:1:0: internal compiler error: Segmentation fault 0x7547af crash_signal /bajas/pinskia/src/toolchain-47/scripts/../src/gcc/toplev.c:348 0xa55004 linemap_macro_map_lookup

[Bug preprocessor/66909] Internal Compiler Error when #including files from /sys on Linux

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66909 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Resolution|---

[Bug c++/91008] error redeclaring the same type involving a non-type template argument

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91008 --- Comment #3 from Andrew Pinski --- Seems fixed in GCC 11+

[Bug ipa/66363] ICE in modified test inline-39.c

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66363 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Ever confirmed|0

[Bug ipa/87624] improve interprocedural clean up of null pointer checks

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87624 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org Last reconf

[Bug middle-end/50316] ICE on fortran code with -O2 and -march=core2 options

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

[Bug target/39856] [4.4/4.5 Regression] ICE in subst_stack_regs_pat, at reg-stack.c:1386

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

[Bug target/54821] Microblaze: Position independent code for byte access is incorrect.

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54821 Andrew Pinski changed: What|Removed |Added Target||Microblaze Component|middle-end

[Bug target/11925] segment violation due to incorrect operand constraints

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11925 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |3.4.0 Status|NEW

[Bug target/33725] Could eliminate argument push for the second const function for same arguments

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33725 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Severity|n

[Bug target/33437] potentially valid construct rejected

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

[Bug target/39783] -ftls-model can not be specified independently of -fpic/-fpie

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

[Bug target/39783] -ftls-model can not be specified independently of -fpic/-fpie

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39783 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |WONTFIX

[Bug target/40988] incorrect code when using ..._bit macros from asm/bitops.h in a loop in userspace program

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40988 --- Comment #1 from Andrew Pinski --- I suspect the inline-asm is broken, I am 90% sure of it.

[Bug target/40546] -fwhole-program -shared with externally_visible gives R_X86_64_PC32 errors

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40546 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Keywords|

[Bug tree-optimization/80406] Reduced false positive test case for -Warray-bounds with -O3

2021-08-08 Thread brlcad at mac dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80406 --- Comment #4 from Sean --- Can confirm the warning no longer appears to issue (at least as of GCC 11).

[Bug target/43025] 32-bit x86 switch table refers to local symbols with -fPIC

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43025 Andrew Pinski changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug c++/101823] New: GCC generates the wrong string in the assembly code.

2021-08-08 Thread bootmgr at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101823 Bug ID: 101823 Summary: GCC generates the wrong string in the assembly code. Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug c++/101823] GCC generates the wrong string in the assembly code.

2021-08-08 Thread bootmgr at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101823 --- Comment #1 from bootmgr at 163 dot com --- Created attachment 51276 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51276&action=edit test.cc

[Bug target/43035] -O2 doesn't use movl (A, B, 4), C to its full extent to access an array

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43035 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.7.0 Status|UNCONFIRMED

[Bug target/39787] ICE with #pragma GCC target

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39787 --- Comment #4 from Andrew Pinski --- Hmm, does the pragma happen before or after the attribute? Because I don't get an ICE on any recent GCC but the code is all rejected.

[Bug target/44332] ICE: in copy_to_mode_reg, at explow.c:623 with -mno-sse2

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44332 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |DUPLICATE --- Comment #5 from Andrew Pin

[Bug target/47948] ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47948 --- Comment #4 from Andrew Pinski --- *** Bug 44332 has been marked as a duplicate of this bug. ***

[Bug target/47948] ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code

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

[Bug c++/49480] internal compiler error: output_operand: invalid expression as operand

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49480 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.7.0 Status|NEW

[Bug target/39258] No ABI warnings on __m128i when SSE is disabled

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39258 --- Comment #4 from Andrew Pinski --- union sse2 does not pass via a register for me on x86_64

[Bug fortran/101824] New: VOLATILE not honored

2021-08-08 Thread martin.diehl at kuleuven dot be via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101824 Bug ID: 101824 Summary: VOLATILE not honored Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assigne

[Bug target/58124] ICE: in gen_split_2192, at config/i386/i386.md:3237 with -mtune-ctrl=zero_extend_with_and,partial_reg_stall

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58124 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |7.0 --- Comment #1 from Andrew Pinski -

[Bug target/62133] internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2")

2021-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62133 Andrew Pinski changed: What|Removed |Added Known to work||8.4.0, 8.5.0, 9.3.0 Keywords|

[Bug target/100782] [11 Regression] sh4 ICEs on -O2 -fPIE -fstack-protector: internal compiler error: in curr_insn_transform, at lra-constraints.c:4132

2021-08-08 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100782 --- Comment #6 from Sergei Trofimovich --- Trying to understand why rejection happens: -fdump-rtl-all-slim 295r.reload says: Choosing alt 0 in insn 12: (0) =r (1) %0 (2) rI08 {*addsi3_compact_lra} alt=0: No input/output

<    1   2