Re: [PATCH] Optimize _Float16 usage for non AVX512FP16.

2021-11-28 Thread Uros Bizjak via Gcc-patches
On Mon, Nov 29, 2021 at 8:46 AM liuhongt wrote: > > As discussed in PR, this patch do optimizations: > 1. No memory is needed to move HI/HFmode between GPR and SSE registers > under TARGET_SSE2 and above, pinsrw/pextrw are used for them w/o > AVX512FP16. > 2. Use

Re: [PATCH] Fix regression introduced by r12-5536.

2021-11-28 Thread Uros Bizjak via Gcc-patches
On Mon, Nov 29, 2021 at 2:32 AM liuhongt wrote: > > There're several failures reported in [1]: > 1. unsupported instruction `pextrw` for "pextrw $0, %xmm31, 16(%rax)" > %vpextrw should be used in output templates. > 2. ICE in get_attr_memory for movhi_internal since some alternatives > are

[PATCH] Optimize _Float16 usage for non AVX512FP16.

2021-11-28 Thread liuhongt via Gcc-patches
As discussed in PR, this patch do optimizations: 1. No memory is needed to move HI/HFmode between GPR and SSE registers under TARGET_SSE2 and above, pinsrw/pextrw are used for them w/o AVX512FP16. 2. Use gen_sse2_pinsrph/gen_vec_setv4sf_0 to replace ix86_expand_vector_set in extendhfsf2/truncsfhf2

[Bug target/103463] [12 Regression] ICE: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 with -Os -fno-tree-dominator-opts -fno-tree-vrp

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

[Bug tree-optimization/103458] [12 Regression] ICE in verify_loop_structure, at cfgloop.c:1736 (error: loop with header 4 not in loop tree)

2021-11-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103458 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[PATCH]middle-end cse: Make sure duplicate elements are not entered into the equivalence set [PR103404]

2021-11-28 Thread Tamar Christina via Gcc-patches
Hi All, CSE uses equivalence classes to keep track of expressions that all have the same values at the current point in the program. Normal equivalences through SETs only insert and perform lookups in this set but equivalence determined from comparisons, e.g. (insn 46 44 47 7 (set (reg:CCZ 17

[Bug target/103463] [12 Regression] ICE: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 with -Os -fno-tree-dominator-opts -fno-tree-vrp

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

[Bug ipa/103451] [12 Regression] crash at gcc/range-op.cc:1836 since r12-5531-g1b0acc4b800b589a

2021-11-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103451 Richard Biener changed: What|Removed |Added CC||aldyh at gcc dot gnu.org,

[Bug target/61713] ICE when building c++ code with atomic functions for thumb1 target

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61713 Andrew Pinski changed: What|Removed |Added CC||mans at mansr dot com --- Comment #9

[Bug middle-end/56964] ICE with -fno-sync-libcalls when target lacks atomic operations

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

[Bug target/103463] New: [12 Regression] ICE: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 with -Os -fno-tree-dominator-opts -fno-tree-vrp

2021-11-28 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103463 Bug ID: 103463 Summary: [12 Regression] ICE: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 with -Os -fno-tree-dominator-opts -fno-tree-vrp

[Bug c++/46476] Missing Warning about unreachable code after return [-Wunreachable-code-return]

2021-11-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46476 Bug 46476 depends on bug 103439, which changed state. Bug 103439 Summary: genemit emits dead code https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103439 What|Removed |Added

[Bug middle-end/103439] genemit emits dead code

2021-11-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103439 Richard Biener changed: What|Removed |Added Resolution|--- |WONTFIX

[Bug rtl-optimization/60412] superfluous arithmetic generated for uneven tail handling

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60412 Andrew Pinski changed: What|Removed |Added CC||l_belev at yahoo dot com --- Comment #2

[Bug tree-optimization/70274] optimization goes astray and adds completely redundant code

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

[Bug rtl-optimization/60412] superfluous arithmetic generated for uneven tail handling

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60412 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Severity|normal

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

2021-11-28 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98782 --- Comment #8 from Tamar Christina --- > > I wonder how the situation looks on AArch64? The situation didn't improve, up until the end of stage-1 we were seeing a 6% perf uplift from somewhere which seems to have gone away now (in a commit

[Bug middle-end/46143] __attribute__((optimize)) emits wrong code

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46143 Bug 46143 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug target/52555] [4.6/4.7/4.8 Regression] ICE unrecognizable insn with -ffast-math and __attribute__((optimize(xx)))

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52555 Bug 52555 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug target/47315] ICE: in extract_insn, at recog.c:2109 (unrecognizable insn) with -mvzeroupper and __attribute__((target("avx")))

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47315 Bug 47315 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug target/45478] __attribute__((__target__())) causes crashes at various places

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45478 Bug 45478 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug target/45325] [4.9 Regression] target attribute doesn't work with -march=i586

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45325 Bug 45325 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug c/41206] Segmentation fault from two "#pragma GCC optimize" lines

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41206 Bug 41206 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug target/38018] gcc.dg/pr37106-1.c doesn't work

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38018 Bug 38018 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug target/37394] [4.4 Regression] Segfault in ia64_variable_issue with -O -fschedule-insns2

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37394 Bug 37394 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug middle-end/53776] pragma optimize does not support Os

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53776 Bug 53776 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug middle-end/39840] Non-optimal (or wrong) implementation of SSE intrinsics

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39840 Bug 39840 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

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

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39787 Bug 39787 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added

[Bug middle-end/37565] __optimize__ attribute doesn't work correctly

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

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-28 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #7 from luoxhu at gcc dot gnu.org --- 1| Dump of assembler code for function foo: 2|0x15e0 <+0>: rldicr. r3,r3,29,1 3+> 0x15e4 <+4>: beq 0x15f0 4|0x15e8 <+8>: blr 5|

[Bug tree-optimization/49946] Thread jumps confuse loop unrolling

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49946 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection Last reconfirmed|

[Bug middle-end/87210] [RFE] introduce build time options to zero initialize automatic stack variables

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

[Bug middle-end/96159] atomic creates incorrect code for possible misaligned struct

2021-11-28 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96159 Martin Uecker changed: What|Removed |Added Summary|atomic creates incorrect|atomic creates incorrect

[Bug tree-optimization/19676] Loop optimizer fails to reverse simple loop

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

[Bug tree-optimization/103462] GCC failed to reduce bit clear in loop.

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

[Bug tree-optimization/103462] GCC failed to reduce bit clear in loop.

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

[Bug tree-optimization/103462] GCC failed to reduce bit clear in loop.

2021-11-28 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103462 --- Comment #2 from Hongtao.liu --- bit clear and induction variable could be simplified to `& CONSTANT`

[Bug tree-optimization/103462] GCC failed to reduce bit clear in loop.

2021-11-28 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103462 --- Comment #1 from Hongtao.liu --- Should it be done in vectorizer or ldist(just like memory op), or somewhere else?

[Bug target/47769] [missed optimization] use of btr (bit test and reset)

2021-11-28 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47769 --- Comment #7 from Hongtao.liu --- > > This is obviously horrible, but the right answer isn't btr in a loop, it's > what clang does: > > movabsq $7905747460161236406, %rax # imm = 0x6DB6DB6DB6DB6DB6 every > third bit unset >

[Bug tree-optimization/103462] New: vectorizer failed to reduce bit_clear in loop.

2021-11-28 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103462 Bug ID: 103462 Summary: vectorizer failed to reduce bit_clear in loop. Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug ipa/103461] [12 Regression] ICE in operator_div::wi_fold or in evaluate_conditions_for_known_args

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103461 --- Comment #2 from Andrew Pinski --- The first one is a dup of bug 103451.

[Bug ipa/103461] [12 Regression] ICE in operator_div::wi_fold or in evaluate_conditions_for_known_args

2021-11-28 Thread asolokha at gmx dot com via Gcc-bugs
, at ipa-fnsummary.c:516 19 | } | ^ 0x6d8bdb evaluate_conditions_for_known_args /var/tmp/portage/sys-devel/gcc-12.0.0_p20211128/work/gcc-12-20211128/gcc/ipa-fnsummary.c:516 0xc4732d do_estimate_edge_size(cgraph_edge*) /var/tmp/portage/sys-devel/gcc-12.0.0_p20211128/work/gcc-12

[Bug ipa/103461] [12 Regression] ICE in operator_div::wi_fold

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

[Bug ipa/103461] New: [12 Regression] ICE in operator_div::wi_fold

2021-11-28 Thread asolokha at gmx dot com via Gcc-bugs
lt 14 | } | ^ 0xeaadef crash_signal /var/tmp/portage/sys-devel/gcc-12.0.0_p20211128/work/gcc-12-20211128/gcc/toplev.c:322 0x1d1e040 operator_div::wi_fold(irange&, tree_node*, generic_wide_int const&, generic_wide_int const&, generic_wide_int const&, generic_wide_int const&

[Bug middle-end/60070] An option to disable all floating-pont

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60070 --- Comment #3 from Andrew Pinski --- For x86_64, the option was added with PR 70738. I don't know if this would be an useful option that is general though. Each target will implement it differently too.

[Bug target/61810] init-regs.c papers over issues elsewhere

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61810 --- Comment #6 from Andrew Pinski --- https://gcc.gnu.org/pipermail/gcc-patches/2021-August/577192.html

[Bug tree-optimization/64992] More optimize opportunity

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64992 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-28 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #6 from luoxhu at gcc dot gnu.org --- (In reply to Segher Boessenkool from comment #5) > (In reply to luoxhu from comment #4) > > Simply adjust the sequence of dot instruction could produce expected code, > > is this correct? > > No

[Bug target/102811] vcvtph2ps and vcvtps2ph should be used to convert _Float16 to SFmode with -mf16c

2021-11-28 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102811 --- Comment #20 from Hongtao.liu --- (In reply to Uroš Bizjak from comment #18) > (In reply to Uroš Bizjak from comment #17) > > (In reply to Hongtao.liu from comment #16) > > > > > ix86_expand_vector_set is mainly used by vec_set_optab which

[Bug rtl-optimization/50677] volatile forces load into register

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

[Bug middle-end/60089] Complex arithmetic instructions

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60089 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization --- Comment #5 from

[Bug middle-end/53875] calls to const functions are eliminated at -O0

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53875 Andrew Pinski changed: What|Removed |Added CC||roger at nextmovesoftware dot com ---

[Bug middle-end/53875] calls to const functions are eliminated at -O0

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53875 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > The code which introduced this was > g:8c6a82695b85f8ed74cdc67f2cf74c5a62d0d91d . https://gcc.gnu.org/pipermail/gcc-patches/2003-May/104797.html

[Bug middle-end/53875] calls to const functions are eliminated at -O0

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53875 Andrew Pinski changed: What|Removed |Added Known to work||3.3.3 Known to fail|

[Bug target/102811] vcvtph2ps and vcvtps2ph should be used to convert _Float16 to SFmode with -mf16c

2021-11-28 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102811 --- Comment #19 from Hongtao.liu --- (In reply to Uroš Bizjak from comment #17) > (In reply to Hongtao.liu from comment #16) > > > ix86_expand_vector_set is mainly used by vec_set_optab which exactly takes > > target as both input and output,

[Bug middle-end/59711] ICE in force_constant_size, at gimplify.c:619 with variably-modified return type

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59711 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |6.0 See Also|

[Bug c++/103460] New: GCC rejected operator[](auto[]...) after P2128

2021-11-28 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103460 Bug ID: 103460 Summary: GCC rejected operator[](auto[]...) after P2128 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug fortran/50463] [4.6/4.7 Regression] -ftree-dse leeds to wrong code with gfortran

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50463 Andrew Pinski changed: What|Removed |Added CC||strasbur at chkw386 dot ch.pwr.wro

[Bug middle-end/58270] Wrong code while accessing trailing array elements in a global common structure

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

[Bug middle-end/50808] Diagnostic output at expansion time should be moved earlier.

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50808 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2011-10-20 00:00:00 |2021-11-28 --- Comment #4 from Andrew

[Bug ipa/46554] Less inlining leads to CSiBE regression

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46554 Andrew Pinski changed: What|Removed |Added Component|middle-end |ipa Keywords|

[Bug c++/97681] noinline attribute ignored on constexpr function

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97681 Andrew Pinski changed: What|Removed |Added Keywords||wrong-debug See Also|

Re: [PATCH] rs6000/test: Add emulated gather test case

2021-11-28 Thread Kewen.Lin via Gcc-patches
on 2021/11/27 上午12:24, Segher Boessenkool wrote: > Hi! > > On Thu, Nov 25, 2021 at 11:20:57AM +0800, Kewen.Lin wrote: >> This patch is to add a test case similar to the one in i386 >> to add testing coverage for 510.parest_r hotspots. > >> gcc/testsuite/ChangeLog: >> *

[Bug c++/93008] Need a way to make inlining heuristics ignore whether a function is inline

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

[Bug c++/65503] g++ string array in struct crash

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

[Bug other/103021] Make the path to etags used in the build system configurable

2021-11-28 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103021 Eric Gallager changed: What|Removed |Added Keywords||patch URL|

[PATCH] Make the path to etags used in the build system configurable [PR103021]

2021-11-28 Thread Eric Gallager via Gcc-patches
The attached patch allows users to specify a path to their `etags` executable for use when doing `make tags`, which is meant to close PR other/103021: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103021 I based this patch off of this one from upstream automake:

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

2021-11-28 Thread jiangning.liu at amperecomputing dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98782 --- Comment #7 from Jiangning Liu --- Without reverting the commit g:1118a3ff9d3ad6a64bba25dc01e7703325e23d92, we still see exchange2 performance issue for aarch64. BTW, we have been using -fno-inline-functions-called-once to get the best

[PATCH] Fix regression introduced by r12-5536.

2021-11-28 Thread liuhongt via Gcc-patches
There're several failures reported in [1]: 1. unsupported instruction `pextrw` for "pextrw $0, %xmm31, 16(%rax)" %vpextrw should be used in output templates. 2. ICE in get_attr_memory for movhi_internal since some alternatives are marked as TYPE_SSELOG. Explicitly set memory_attr for those

Re: [PATCH] tree-optimization: [PR101540] Simplify CONSTRUCTOR for vector(1) to be VCE

2021-11-28 Thread Andrew Pinski via Gcc-patches
On Sun, Nov 28, 2021 at 12:25 PM Jeff Law via Gcc-patches wrote: > > > > On 11/28/2021 10:56 AM, apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > > > This just adds a simplification to simplify_vector_constructor for > > vector of 1 element to be VCE which should reduce memory usage

[Bug other/19089] Environment variable TMP may yield gcc: abort with internal error

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

[Bug other/19089] Environment variable TMP may yield gcc: abort with internal error

2021-11-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19089 --- Comment #6 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:68332ab7ec58a89660db82569c5f4c2251d59741 commit r12-5568-g68332ab7ec58a89660db82569c5f4c2251d59741 Author: Andrew Pinski Date:

Re: [PATCH] Fix PR 19089: Environment variable TMP may yield gcc: abort

2021-11-28 Thread Andrew Pinski via Gcc-patches
On Sun, Nov 28, 2021 at 12:14 PM Jeff Law via Gcc-patches wrote: > > > > On 11/27/2021 7:49 PM, apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > > > Even though I cannot reproduce the ICE any more, this is still > > a bug. We check already to see if we can access the directory > >

[Bug debug/24551] [meta-bug] -feliminate-unused-debug-types issues

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

Re: [committed 03/12] d: Insert null terminator in obstack buffers

2021-11-28 Thread Iain Buclaw via Gcc-patches
Excerpts from Iain Buclaw's message of November 26, 2021 1:35 pm: > Excerpts from Martin Liška's message of November 25, 2021 3:09 pm: >> On 7/30/21 13:01, Iain Buclaw via Gcc-patches wrote: >>> |Covers cases where functions that handle the extracted strings ignore the >>> explicit length. This

[Bug c++/90885] GCC should warn about 2^16 and 2^32 and 2^64 [-Wxor-used-as-pow]

2021-11-28 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90885 Eric Gallager changed: What|Removed |Added Summary|GCC should warn about 2^16 |GCC should warn about 2^16

[Bug bootstrap/103459] New: Make configury regenerate cleanly with `autoreconf -Wall`

2021-11-28 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103459 Bug ID: 103459 Summary: Make configury regenerate cleanly with `autoreconf -Wall` Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: build

[Bug tree-optimization/103458] [12 Regression] ICE in verify_loop_structure, at cfgloop.c:1736 (error: loop with header 4 not in loop tree)

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103458 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug tree-optimization/103458] [12 Regression] ICE in verify_loop_structure, at cfgloop.c:1736 (error: loop with header 4 not in loop tree)

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

[Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78

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

[Bug tree-optimization/81174] bswap not recognized in |= statement

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81174 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection See Also|

[Bug tree-optimization/103457] boolean operations on bit-fields are not merged

2021-11-28 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103457 --- Comment #2 from Roland Illig --- Cool, thank you for taking this optimization. Just to give you a bit of background: I discovered this while converting some of the enum types in BSD Make to proper bitfields, which theoretically should be

[Bug c++/90782] internal compiler error: in dependent_type_p, at cp/pt.c:25409

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90782 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection --- Comment #7 from

[Bug c++/103455] [9/10/11/12 Regression] internal compiler error: in dependent_type_p, at cp/pt.c:27057

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103455 --- Comment #5 from Andrew Pinski --- Reduced: template struct rp { T* operator->() const; operator T*() const; template explicit operator U*() const; }; struct b {}; typedef void (b::*fptr)(); void foo(rp n, fptr h) {

[Bug sanitizer/100987] make distclean error "hwasan: No such file or directory"

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100987 Bug 100987 depends on bug 62157, which changed state. Bug 62157 Summary: make distclean error when libsanitizer is configured not to build 'tsan' https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62157 What|Removed

[Bug bootstrap/3415] make distclean (in gcc subdirectory) does not clean up all the way

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3415 Bug 3415 depends on bug 62157, which changed state. Bug 62157 Summary: make distclean error when libsanitizer is configured not to build 'tsan' https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62157 What|Removed

[Bug sanitizer/62157] make distclean error when libsanitizer is configured not to build 'tsan'

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

[Bug sanitizer/62157] make distclean error when libsanitizer is configured not to build 'tsan'

2021-11-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62157 --- Comment #7 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:32377c101934477e3d27fec9c6a22f1c97ccf730 commit r12-5566-g32377c101934477e3d27fec9c6a22f1c97ccf730 Author: Andrew Pinski Date:

gcc-12-20211128 is now available

2021-11-28 Thread GCC Administrator via Gcc
Snapshot gcc-12-20211128 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20211128/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

[Bug tree-optimization/103457] boolean operations on bit-fields are not merged

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

[PATCH] Extend usage of user hint in _Hashtable

2021-11-28 Thread François Dumont via Gcc-patches
    libstdc++: In _Hashtable, use insertion hint as much as possible.     Make use in unordered containers of the user provided hint iterator as much as possible.     Hint is now used:     - As a hint for allocation, in order to limit memory fragmentation when     allocator is making use of

[Bug target/103302] wrong code with -fharden-compares

2021-11-28 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103302 --- Comment #5 from Alexandre Oliva --- Hello, Jim, Thanks for the investigation, that's useful. I guess the register allocator shouldn't choose to coalesce registers when there's a clobber afterwards, or it should drop the clobber, since

Re: [PATCH] tree-optimization: [PR101540] Simplify CONSTRUCTOR for vector(1) to be VCE

2021-11-28 Thread Jeff Law via Gcc-patches
On 11/28/2021 10:56 AM, apinski--- via Gcc-patches wrote: From: Andrew Pinski This just adds a simplification to simplify_vector_constructor for vector of 1 element to be VCE which should reduce memory usage in the compiler and maybe allow for some more optimizations. OK? Bootstrapped and

Re: [PATCH] Fix PR 19089: Environment variable TMP may yield gcc: abort

2021-11-28 Thread Jeff Law via Gcc-patches
On 11/27/2021 7:49 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski Even though I cannot reproduce the ICE any more, this is still a bug. We check already to see if we can access the directory but never check to see if the path is actually a directory. This adds the check and now

Re: [PATCH] Fix PR 62157: disclean in libsanitizer not working

2021-11-28 Thread Jeff Law via Gcc-patches
On 11/27/2021 6:19 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski So what is happening is DIST_SUBDIRS contains the conditional directories which is wrong, so we need to force DIST_SUBDIRS to be the same as SUBDIRS as recommened by the automake manual. OK? Bootstrapped and

[Bug tree-optimization/103458] New: [12 Regression] ICE in verify_loop_structure, at cfgloop.c:1736 (error: loop with header 4 not in loop tree)

2021-11-28 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103458 Bug ID: 103458 Summary: [12 Regression] ICE in verify_loop_structure, at cfgloop.c:1736 (error: loop with header 4 not in loop tree) Product: gcc Version: 12.0

Re: [RFC][PATCH] c++/46476 - implement -Wunreachable-code-return

2021-11-28 Thread Jeff Law via Gcc-patches
On 11/26/2021 5:18 AM, Richard Biener via Gcc-patches wrote: This implements a subset of -Wunreachable-code, unreachable code after a return stmt. Contrary to the previous attemt at CFG construction time this implements the bits during GIMPLE lowering where there are still all GIMPLE return

[Bug tree-optimization/103457] New: boolean operations on bit-fields are not merged

2021-11-28 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103457 Bug ID: 103457 Summary: boolean operations on bit-fields are not merged Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

Re: [PATCH] x86_64: PR target/100711: Splitters for pandn

2021-11-28 Thread Uros Bizjak via Gcc-patches
On Sun, Nov 28, 2021 at 2:25 PM Roger Sayle wrote: > > > This patch addresses PR target/100711 by introducing define_split > patterns so that not/broadcast/pand may be simplified (by combine) > to broadcast/pandn. This introduces two splitters one for optimizing > pandn on TARGET_SSE for V4SI

[Bug c++/103455] [9/10/11/12 Regression] internal compiler error: in dependent_type_p, at cp/pt.c:27057

2021-11-28 Thread stha09 at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103455 --- Comment #4 from Stephan Hartmann --- Last working compiler was gcc-8.1, gcc-8.2 and later produce an ICE.

  1   2   >