[Bug target/103594] [12 Regression] ICE in get, at cgraph.h:1335 since r12-5771

2021-12-07 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103594 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/103594] [12 Regression] ICE in get, at cgraph.h:1335 since r12-5771

2021-12-07 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103594 --- Comment #4 from H.J. Lu --- (In reply to H.J. Lu from comment #3) > Why can't I reproduce it? > > $ ./xgcc -B./ -S -O > /export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/gcc.c-torture/compile/ > pr37433.c > $ -fPIE/-fPIC is needed.

[Bug target/103594] [12 Regression] ICE in get, at cgraph.h:1335 since r12-5771

2021-12-07 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103594 H.J. Lu changed: What|Removed |Added CC|hjl at gcc dot gnu.org |hjl.tools at gmail dot com ---

[Bug sanitizer/103466] [12 Regression] SIGILL on machine without avx support when using thread sanitizer

2021-12-06 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103466 --- Comment #7 from H.J. Lu --- (In reply to Jakub Jelinek from comment #6) > I'd say we should patch away locally the initial v prefixes until the merge > is done. The patch is here:

[Bug target/103269] Enable ZMM in MOVE_MAX and STORE_MAX_PIECES without -mprefer-vector-width=512

2021-12-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103269 H.J. Lu changed: What|Removed |Added Target Milestone|--- |12.0 Resolution|---

[Bug bootstrap/103547] [12 Regression] Bootstrap failure with --with-cpu=skylake-avx512

2021-12-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103547 --- Comment #3 from H.J. Lu --- r12-5778 builds now. It has happened once before. I will leave it open until we find out exactly what is going on.

[Bug bootstrap/103547] New: [12 Regression] Bootstrap failure

2021-12-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103547 Bug ID: 103547 Summary: [12 Regression] Bootstrap failure Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap

[Bug pch/71934] pch cannot be disabled so gcc cannot be position independent

2021-12-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71934 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug pch/71934] pch cannot be disabled so gcc cannot be position independent

2021-12-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71934 --- Comment #9 from H.J. Lu --- Can we enable PIE on gcc now?

[Bug target/83782] [9/10/11 Regression] Inconsistent address for hidden ifunc in a shared library

2021-12-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83782 H.J. Lu changed: What|Removed |Added Status|REOPENED|NEW Summary|[9/10/11/12

[Bug middle-end/103393] [12 Regression] Generating 256bit register usage with -mprefer-avx128 -mprefer-vector-width=128

2021-11-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103393 --- Comment #14 from H.J. Lu --- (In reply to Richard Earnshaw from comment #13) > Also, note that the comment in gimple-fold.c prior to this change read: > > /* If we can perform the copy efficiently with first doing all loads >

[Bug middle-end/103419] FAIL: gcc.target/i386/pr102566-10b.c with -mx32

2021-11-24 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103419 --- Comment #2 from H.J. Lu --- Created attachment 51871 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51871=edit A patch Hongtao, please take a look.

[Bug middle-end/103419] FAIL: gcc.target/i386/pr102566-10b.c with -mx32

2021-11-24 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103419 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug middle-end/103419] New: FAIL: gcc.target/i386/pr102566-10b.c with -mx32

2021-11-24 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103419 Bug ID: 103419 Summary: FAIL: gcc.target/i386/pr102566-10b.c with -mx32 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/103393] [12 Regression] Generating 256bit register usage with -mprefer-avx128 -mprefer-vector-width=128

2021-11-24 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103393 --- Comment #2 from H.J. Lu --- (In reply to Richard Biener from comment #1) > It isn't the vectorizer but memmove inline expansion. I'm not sure it's > really a bug, but there isn't a way to disable %ymm use besides disabling > AVX entirely.

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-11-23 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364 --- Comment #8 from H.J. Lu --- Does it work on x86-64?

[Bug other/103335] new test case gcc.dg/tree-ssa/modref-dse-4.c fails

2021-11-20 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103335 H.J. Lu changed: What|Removed |Added Last reconfirmed||2021-11-20

[Bug target/103330] [12 Regression] FAIL: gcc.target/i386/avx512fp16-vector-complex-float.c by r12-5378

2021-11-19 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103330 H.J. Lu changed: What|Removed |Added Last reconfirmed||2021-11-19 Ever confirmed|0

[Bug target/103330] New: [12 Regression] FAIL: gcc.target/i386/avx512fp16-vector-complex-float.c by r12-5378

2021-11-19 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103330 Bug ID: 103330 Summary: [12 Regression] FAIL: gcc.target/i386/avx512fp16-vector-complex-float.c by r12-5378 Product: gcc Version: 12.0 Status:

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-11-18 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Target Milestone|--- |12.0 Status|NEW

[Bug middle-end/103309] [12 Regression] Random gcc/system.h:784:34: error: section type conflict

2021-11-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103309 --- Comment #5 from H.J. Lu --- (In reply to Andrew Pinski from comment #4) > (In reply to H.J. Lu from comment #3) > > I first ran into it with r12-5074. I am using GCC 11.2.1 from Fedora 35 > > and binutils master branch. For r12-5074, the

[Bug middle-end/103309] [12 Regression] Random gcc/system.h:784:34: error: section type conflict

2021-11-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103309 --- Comment #3 from H.J. Lu --- I first ran into it with r12-5074. I am using GCC 11.2.1 from Fedora 35 and binutils master branch. For r12-5074, the only change on the machine is the GCC source.

[Bug bootstrap/103309] [12 Regression] Random gcc/system.h:784:34: error: section type conflict

2021-11-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103309 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug bootstrap/103309] New: [12 Regression] Random gcc/system.h:784:34: error: section type conflict

2021-11-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103309 Bug ID: 103309 Summary: [12 Regression] Random gcc/system.h:784:34: error: section type conflict Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug target/103307] New: Unused "%!" before return

2021-11-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103307 Bug ID: 103307 Summary: Unused "%!" before return Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/103275] [11/12 Regression] don't generate kmov with IE model relocations

2021-11-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103275 --- Comment #11 from H.J. Lu --- (In reply to Hongtao.liu from comment #10) > I'm working on a patch which adds a new memory constraint "Bk" which will > exclude TLS UNSPECs for mask register alternative. > > The UNSPEC i'm excluding is like

[Bug target/103275] [11/12 Regression] don't generate kmov with IE model relocations

2021-11-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103275 --- Comment #8 from H.J. Lu --- (In reply to Hongtao.liu from comment #7) > vmovd have same issue, for simplify should we disable 32bit load for > sse/mask register when memory_operand has PIC address. Please disable specific UNSPEC operands

[Bug testsuite/103282] New test case gcc.dg/tree-ssa/modref-dse-5.c in r12-5292 fails

2021-11-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103282 H.J. Lu changed: What|Removed |Added Build|powerpc64-linux-gnu,| |powerpc64le-linux-gnu

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-11-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW CC|

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #17 from H.J. Lu --- (In reply to David Binderman from comment #0) > For this C code: > > long pscc_a_2_3; > int pscc_a_1_4; > void pscc() > { > pscc_a_1_4 = __sync_fetch_and_and(_a_2_3, 1); > } > > compiled by recent gcc

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/103269] Enable ZMM in MOVE_MAX and STORE_MAX_PIECES without -mprefer-vector-width=512

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103269 --- Comment #1 from H.J. Lu --- Created attachment 51803 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51803=edit A patch Please try this.

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #16 from H.J. Lu --- (In reply to Hongtao.liu from comment #15) > (In reply to H.J. Lu from comment #13) > > (In reply to Hongtao.liu from comment #8) > > > unsigned long pscc_a_2_3; > > > int pscc_a_1_4; > > > unsigned long pc2; >

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #14 from H.J. Lu --- Should we open a new bug for missed optimization?

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #13 from H.J. Lu --- (In reply to Hongtao.liu from comment #8) > unsigned long pscc_a_2_3; > int pscc_a_1_4; > unsigned long pc2; > void pscc(int n) > { > long mask = 1ll << n; > pc2 = __sync_fetch_and_or(_a_2_3, mask) & mask; >

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 --- Comment #4 from H.J. Lu --- Created attachment 51802 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51802=edit A patch

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 H.J. Lu changed: What|Removed |Added CC||crazylht at gmail dot com,

[Bug target/103269] New: Enable ZMM in MOVE_MAX and STORE_MAX_PIECES without -mprefer-vector-width=512

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103269 Bug ID: 103269 Summary: Enable ZMM in MOVE_MAX and STORE_MAX_PIECES without -mprefer-vector-width=512 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug middle-end/103184] [12 Regression] ICE caused by r12-5102

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103184 H.J. Lu changed: What|Removed |Added Component|tree-optimization |middle-end Resolution|---

[Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103262 --- Comment #3 from H.J. Lu --- merge_call_side_effects has modref_parm_map chain_map; ... for (auto kill : saved_kills) { if (kill.parm_index >= (int)parm_map.length ()) continue; modref_parm_map

[Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103262 --- Comment #2 from H.J. Lu --- May also need -mtune=generic -march=pentium4 with bootstrap. Valgrind reports: ==2421026== Memcheck, a memory error detector ==2421026== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.

[Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103262 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug middle-end/103262] New: [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103262 Bug ID: 103262 Summary: [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242 Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Status|NEW |WAITING --- Comment #24 from H.J. Lu ---

[Bug target/103065] [meta] atomic operations aren't optimized

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103065 Bug 103065 depends on bug 103069, which changed state. Bug 103069 Summary: cmpxchg isn't optimized https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103069 What|Removed |Added

[Bug target/103069] cmpxchg isn't optimized

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103069 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug tree-optimization/103184] [12 Regression] ICE caused by r12-5102

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103184 --- Comment #7 from H.J. Lu --- The updated patch is at https://gcc.gnu.org/pipermail/gcc-patches/2021-November/584464.html

[Bug tree-optimization/103184] [12 Regression] ICE caused by r12-5102

2021-11-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103184 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #6

[Bug tree-optimization/103235] [12 Regression] Recent change to atomics triggers ICE

2021-11-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103235 --- Comment #3 from H.J. Lu --- Works for me: [hjl@gnu-cfl-2 pr103235]$ /export/build/gnu/tools-build/gcc-gitlab-cross/build-csky-linux/gcc/cc1 -O2 pthread_cancel.i -I./ -quiet -w [hjl@gnu-cfl-2 pr103235]$

[Bug tree-optimization/103235] [12 Regression] Recent change to atomics triggers ICE

2021-11-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103235 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug libgomp/103224] New: [12 Regression] FAIL: libgomp.c/../libgomp.c-c++-common/target-in-reduction-2.c (internal compiler error) by r12-5146

2021-11-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103224 Bug ID: 103224 Summary: [12 Regression] FAIL: libgomp.c/../libgomp.c-c++-common/target-in-reduction- 2.c (internal compiler error) by r12-5146 Product: gcc

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 H.J. Lu changed: What|Removed |Added Attachment #51784|0 |1 is obsolete|

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #5 from H.J. Lu --- Created attachment 51784 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51784=edit An incomplete patch Hongtao, can you finish it?

[Bug sanitizer/102911] AddressSanitizer: CHECK failed: asan_malloc_linux.cpp:46

2021-11-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102911 --- Comment #4 from H.J. Lu --- Fixed for GCC 12.

[Bug libffi/102874] [12 regression] src/x86/win64.S doesn't assemble with Solaris as

2021-11-12 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102874 --- Comment #8 from H.J. Lu --- The proposed fix should be submitted to GCC and put it in libffi/LOCAL_PATCHES after it is checked in.

[Bug target/103205] [9/10/11/12 Regression] ICE Segmentation fault since r7-532

2021-11-12 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103205 H.J. Lu changed: What|Removed |Added Summary|[12 Regression] ICE |[9/10/11/12 Regression] ICE

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-12 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #4 from H.J. Lu --- This avoids the crash: diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 0f79e9f05bd..14c5ecdf119 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -3443,7 +3443,7 @@

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and

2021-11-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libffi/102874] [12 regression] src/x86/win64.S doesn't assemble with Solaris as

2021-11-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102874 --- Comment #6 from H.J. Lu --- (In reply to Richard Biener from comment #5) > Upstream bug was filed and fix proposed. IMHO we don't need to wait and can > pull this fix temporarily. Is there a pull request to fix it in upstream?

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-11-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #24 from H.J. Lu --- (In reply to Andrew Cooper from comment #23) > Apologies for the delay, but I do now have a working prototype of Xen with > CET-IBT active, using the current version of these patches. > > The result actually

[Bug target/103066] __sync_val_compare_and_swap/__sync_bool_compare_and_swap aren't optimized

2021-11-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103066 --- Comment #7 from H.J. Lu --- Instead of generating: movlf(%rip), %eax .L2: movd%eax, %xmm0 addss .LC0(%rip), %xmm0 movd%xmm0, %edx lock cmpxchgl %edx, f(%rip) jne .L2

[Bug target/103066] __sync_val_compare_and_swap/__sync_bool_compare_and_swap aren't optimized

2021-11-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103066 --- Comment #4 from H.J. Lu --- (In reply to Jakub Jelinek from comment #3) > If by fail you mean that it doesn't update the memory if the memory isn't > equal to expected, sure, but do you mean it can fail spuriously, not update > the memory

[Bug target/103066] __sync_val_compare_and_swap/__sync_bool_compare_and_swap aren't optimized

2021-11-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103066 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/103069] New: cmpxchg isn't optimized

2021-11-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103069 Bug ID: 103069 Summary: cmpxchg isn't optimized Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug libgomp/103068] New: gomp_mutex_lock_slow isn't optimized

2021-11-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103068 Bug ID: 103068 Summary: gomp_mutex_lock_slow isn't optimized Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp

[Bug target/103066] New: __sync_val_compare_and_swap/__sync_bool_compare_and_swap aren't optimized

2021-11-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103066 Bug ID: 103066 Summary: __sync_val_compare_and_swap/__sync_bool_compare_and_sw ap aren't optimized Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug target/103065] New: [meta] atomic operations aren't optimized

2021-11-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103065 Bug ID: 103065 Summary: [meta] atomic operations aren't optimized Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: meta-bug Severity: normal Priority:

[Bug bootstrap/102675] [12 regression] Bootstrap fails in libsanitizer: 'MD5_DIGEST_STRING_LENGTH' was not declared in this scope

2021-10-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102675 H.J. Lu changed: What|Removed |Added Keywords||patch --- Comment #15 from H.J. Lu --- A

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #22 from H.J. Lu --- (In reply to Andrew Cooper from comment #21) > Another possibly-bug, but possibly mis-expectations on my behalf. > > I've found some code in the depths of Xen which is causing a failure on > final link due to a

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-29 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #19 from H.J. Lu --- (In reply to Andrew Cooper from comment #17) > I think I've found a bug in the -fcf-check-attribute implementation. > Please try the v5 patch. BTW, do you have a testcase to show how -fcf-check-attribute=yes

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-29 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Attachment #51696|0 |1 is obsolete|

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW --- Comment #23 from H.J. Lu --- (In

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #16 from H.J. Lu --- (In reply to Andrew Cooper from comment #14) > (In reply to H.J. Lu from comment #13) > > (In reply to Andrew Cooper from comment #11) > > > > > > There should be a diagnostic, but it ought to include cf_check

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Attachment #51693|0 |1 is obsolete|

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #13 from H.J. Lu --- (In reply to Andrew Cooper from comment #11) > > There should be a diagnostic, but it ought to include cf_check in the type > it prints. Try the v3 patch.

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Attachment #51687|0 |1 is obsolete|

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #10 from H.J. Lu --- (In reply to Andrew Cooper from comment #8) > Actually, there is a (possibly pre-existing) diagnostics issue: > > $ cat proto.c > static void __attribute__((cf_check)) foo(void); > static void

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Attachment #51672|0 |1 is obsolete|

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Attachment #51684|0 |1 is obsolete|

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 --- Comment #17 from H.J. Lu --- [hjl@gnu-tgl-2 pr102952]$ cat z2.i extern void (*fptr) (int, int); void foo (int x, int y) { fptr (x, y); } [hjl@gnu-tgl-2 pr102952]$ make z2.s

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 --- Comment #16 from H.J. Lu --- (In reply to Andrew Cooper from comment #15) > So this is the irritating corner case where the two options are linked. > > *If* we are using -mindirect-branch-cs-prefix, then we intend to rewrite > `jmp

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 --- Comment #14 from H.J. Lu --- (In reply to peterz from comment #13) > (In reply to H.J. Lu from comment #12) > > (In reply to peterz from comment #9) > > > Created attachment 51683 [details] > > > kernel patch to test -mharden-sls=all > > >

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 --- Comment #12 from H.J. Lu --- (In reply to peterz from comment #9) > Created attachment 51683 [details] > kernel patch to test -mharden-sls=all > > $ make O=defconfig CC=gcc-12.0.0 arch/x86/entry/common.o > ... > arch/x86/entry/common.o:

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Attachment #51679|0 |1 is obsolete|

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 --- Comment #8 from H.J. Lu --- (In reply to peterz from comment #7) > (In reply to H.J. Lu from comment #3) > > Created attachment 51678 [details] > > A patch to add -mharden-sls= > > > > x86: Add

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Attachment #51678|0 |1 is obsolete|

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #5 from H.J. Lu --- (In

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 --- Comment #4 from H.J. Lu --- Created attachment 51679 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51679=edit A patch to add -mindirect-branch-cs-prefix It adds CS prefix to call and jmp to thunk when converting indirect call and

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Attachment #51670|0 |1 is obsolete|

[Bug tree-optimization/102950] [11/12 Regression] Dead Code Elimination Regression at -O3 (trunk&11.2.0 vs 10.3.0)

2021-10-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102950 --- Comment #2 from H.J. Lu --- r11-3685 is bad and r11-3683 is good.

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Status|NEW |WAITING --- Comment #4 from H.J. Lu ---

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #3 from H.J. Lu --- Created attachment 51672 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51672=edit Add -fcf-check-attribute=[yes|no] -fcf-check-attribute=[yes|no] implies "cf_check" or "nocf_check" function attribute.

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Last reconfirmed||2021-10-26 Ever confirmed|0

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added CC||crazylht at gmail dot com,

[Bug libffi/102923] [12 Regression] powerpc64 (BE) linux all languages bootstrap broken after libffi 3.4.2 import.

2021-10-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102923 H.J. Lu changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #7 from

[Bug libffi/102923] [12 Regression] powerpc64 (BE) linux all languages bootstrap broken after libffi 3.4.2 import.

2021-10-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102923 H.J. Lu changed: What|Removed |Added See Also||https://github.com/libffi/l

[Bug other/18907] library makefiles should not set AM_MAKEFLAGS

2021-10-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18907 --- Comment #5 from H.J. Lu --- New list: libatomic/Makefile.am: $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE) libffi/Makefile.am:AM_MAKEFLAGS = \ libffi/Makefile.am:FLAGS_TO_PASS = $(AM_MAKEFLAGS) libgo/Makefile.am:AM_MAKEFLAGS = \

[Bug libffi/102923] [12 Regression] powerpc64 (BE) linux all languages bootstrap broken after libffi 3.4.2 import.

2021-10-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102923 --- Comment #3 from H.J. Lu --- powerpc64-unknown-linux-gnu works with libffi upstream on gcc110.fsffrance.org.

<    1   2   3   4   5   6   7   8   9   10   >