[Bug middle-end/96200] Implement __builtin_thread_pointer() and __builtin_set_thread_pointer() if TLS is supported

2020-08-28 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96200 --- Comment #4 from H.J. Lu --- On Linux/i386 and Linux/x86-64, thread pointer access is done via syscall. On Linux/x86-64, __builtin_thread_pointer and __builtin_set_thread_pointer may be implemented with FSGSBASE ISA. Is it possible to impleme

[Bug middle-end/96200] Implement __builtin_thread_pointer() and __builtin_set_thread_pointer() if TLS is supported

2020-08-28 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96200 --- Comment #5 from H.J. Lu --- But CR4.FSGSBASE FSGSBASE-Enable Bit (bit 16 of CR4) — Enables the instructions RDFSBASE, RDGSBASE, WRFSBASE, and WRGSBASE. >From user space, we can't tell if FSGSBASE is enabled.

[Bug middle-end/96200] Implement __builtin_thread_pointer() and __builtin_set_thread_pointer() if TLS is supported

2020-08-29 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96200 --- Comment #7 from H.J. Lu --- (In reply to Florian Weimer from comment #6) > (In reply to H.J. Lu from comment #4) > > On Linux/i386 and Linux/x86-64, thread pointer access is done via syscall. > > On Linux/x86-64, __builtin_thread_pointer and

[Bug middle-end/96200] Implement __builtin_thread_pointer() and __builtin_set_thread_pointer() if TLS is supported

2020-08-29 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96200 --- Comment #9 from H.J. Lu --- (In reply to Florian Weimer from comment #8) > (In reply to H.J. Lu from comment #7) > > Give that the tcb field is setup by the C run-time on Linux/x86, should > > it be provided by a run-time header file? > > Ye

[Bug target/96895] ABI of returning V1DF differs between GCC and clang

2020-09-02 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96895 H.J. Lu changed: What|Removed |Added URL||https://gitlab.com/x86-psAB

[Bug target/96895] ABI of returning V1DF differs between GCC and clang

2020-09-02 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96895 --- Comment #4 from H.J. Lu --- (In reply to Michael Matz from comment #2) > The psABI doesn't say anything about such types, no. Maybe it could in some > additional info pages, but it's always a problem to codify behaviour > retroactively > in

[Bug tree-optimization/96512] wrong code generated with avx512 intrinsics in some cases

2020-09-04 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96512 H.J. Lu changed: What|Removed |Added Status|WAITING |RESOLVED See Also|

[Bug target/96955] New: Implement __builtin_thread_pointer

2020-09-07 Thread hjl.tools at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: crazylht at gmail dot com, wwwhhhyyy333 at gmail dot com Blocks: 96200 Target Milestone: --- Target: i386,x86-64 On Linux/x86-64, The %fs segment register is used

[Bug target/96955] Implement __builtin_thread_pointer for x86 TLS

2020-09-09 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96955 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/96200] Implement __builtin_thread_pointer() and __builtin_set_thread_pointer() if TLS is supported

2020-09-09 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96200 Bug 96200 depends on bug 96955, which changed state. Bug 96955 Summary: Implement __builtin_thread_pointer for x86 TLS https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96955 What|Removed |Added -

[Bug target/97018] [11 Regression] FAIL: gcc.target/i386/l_fma_float_1.c scan-assembler-times vfnmsub[123]+ss 32 on Linux/x86_64 (-m64 -march=cascadelake)

2020-09-11 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97018 H.J. Lu changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug target/97018] [11 Regression] FAIL: gcc.target/i386/l_fma_float_1.c scan-assembler-times vfnmsub[123]+ss 32 on Linux/x86_64 (-m64 -march=cascadelake)

2020-09-11 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97018 H.J. Lu changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug target/97018] [11 Regression] FAIL: gcc.target/i386/l_fma_float_1.c scan-assembler-times vfnmsub[123]+ss 32 on Linux/x86_64 (-m64 -march=cascadelake)

2020-09-11 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97018 H.J. Lu changed: What|Removed |Added Status|REOPENED|RESOLVED Summary|[10/11 Regression]

[Bug target/97032] [8/9/10/11 Regression] ICE output_operand: invalid use of register 'frame' since r8-1911

2020-09-12 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97032 --- Comment #2 from H.J. Lu --- Created attachment 49212 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49212&action=edit A patch I am testing this.

[Bug target/97035] New: csky-linux-gnuabiv2 won't build with binutils master branch

2020-09-12 Thread hjl.tools at gmail dot com
ormal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: rjiejie at me dot com Target Milestone: --- Target: csky-linux-gnuabiv2 GCC 10 branch won't won't build with

[Bug target/97032] [8/9/10/11 Regression] ICE output_operand: invalid use of register 'frame' since r8-1911

2020-09-12 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97032 H.J. Lu changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug target/97035] csky-linux-gnuabiv2 won't build with binutils master branch

2020-09-14 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97035 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/97054] [r10-3559 Regression] Runtime segfault with attached test code

2020-09-14 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97054 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug middle-end/97054] [10/11 Regression] Runtime segfault with attached test code since r10-3559

2020-09-15 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97054 --- Comment #1 from H.J. Lu --- Created attachment 49220 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49220&action=edit A patch I am testing this.

[Bug middle-end/97054] [10/11 Regression] Runtime segfault with attached test code since r10-3559

2020-09-15 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97054 H.J. Lu changed: What|Removed |Added CC||vmakarov at redhat dot com Keywords|

[Bug middle-end/97054] [10/11 Regression] Runtime segfault with attached test code since r10-3559

2020-09-18 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97054 --- Comment #3 from H.J. Lu --- Fixed in GCC 11 by commit 3c7c5f1d4a4b8328fb4c07483cdbfe4ea7762155 Author: Richard Sandiford Date: Fri Sep 18 16:55:45 2020 +0100 ira: Fix elimination for global hard FPs [PR91957]

[Bug bootstrap/97118] New: [11 Regression] r11-3274 breaks bootstrap

2020-09-18 Thread hjl.tools at gmail dot com
: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: jason at redhat dot com Target Milestone: --- On Linux/x86: commit f627125855075f7ffde74e48481ee961f0bc4c7b Author: Jason Merrill Date: Fri Sep 4 12:14:19 2020 -0400 c

[Bug target/96861] Integer min/max optimization failed under -march=skylake-avx512

2020-09-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96861 H.J. Lu changed: What|Removed |Added Target Milestone|--- |11.0

[Bug target/97140] [10/11 Regression] ICE in error: unable to generate reloads for since r10-400-gecfdb16c54ad06ac

2020-09-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97140 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/97140] [10/11 Regression] ICE in error: unable to generate reloads for since r10-400-gecfdb16c54ad06ac

2020-09-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97140 --- Comment #2 from H.J. Lu --- The updated patch: https://gcc.gnu.org/pipermail/gcc-patches/2020-September/554383.html

[Bug target/97148] New: Add

2020-09-21 Thread hjl.tools at gmail dot com
dot gnu.org Reporter: hjl.tools at gmail dot com CC: crazylht at gmail dot com Target Milestone: --- is always usable. libgcc/config/i386/shadow-stack-unwind.h has /* NB: We need _get_ssp and _inc_ssp from . But we can't include which ends up including ,

[Bug target/97148] Add

2020-09-23 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97148 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Target Milestone|---

[Bug target/97148] Add

2020-09-23 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97148 H.J. Lu changed: What|Removed |Added Keywords||patch URL|

[Bug target/97184] New: Incorrect MOVDIRI and MOVDIR64B patterns

2020-09-23 Thread hjl.tools at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: crazylht at gmail dot com, wwwhhhyyy333 at gmail dot com Target Milestone: --- Target: i386,x86-64 MOVDIRI and MOVDIR64B update memory. But there is not SET operation

[Bug target/92168] Poor code generation for addcarry / subborrow

2019-10-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92168 --- Comment #3 from H.J. Lu --- [hjl@gnu-cfl-1 gcc]$ cat c.c #include unsigned char foo (unsigned long long HxL0, unsigned long long LxH0, unsigned long long HxL1, unsigned long long LxH1) { unsigned char carry; carry = _addcarry_u64(

[Bug rtl-optimization/92213] New: internal compiler error: in lra_assign, at lra-assigns.c:1647

2019-10-24 Thread hjl.tools at gmail dot com
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: vmakarov at redhat dot com Target Milestone: --- When enabling mask register spill with: @@ -21452,6 +21442,13

[Bug rtl-optimization/92213] internal compiler error: in lra_assign, at lra-assigns.c:1647

2019-10-24 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92213 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug rtl-optimization/92213] internal compiler error: in lra_assign, at lra-assigns.c:1647

2019-10-24 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92213 --- Comment #2 from H.J. Lu --- Created attachment 47108 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47108&action=edit A testcase [hjl@gnu-skx-1 mask-2]$ /export/build/gnu/tools-build/gcc-tuning-debug/build-x86_64-linux/gcc/xgcc -B/expo

[Bug rtl-optimization/92213] internal compiler error: in lra_assign, at lra-assigns.c:1647

2019-10-24 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92213 --- Comment #3 from H.J. Lu --- IRA has ; bb 2 artificial_defs: { } ;; bb 2 artificial_uses: { u0(6){ }u1(7){ }u2(16){ }u3(19){ }} ;; lr in5 [di] 6 [bp] 7 [sp] 16 [argp] 19 [frame] ;; lr use 5 [di] 6 [bp] 7 [sp] 16 [argp] 19 [fra

[Bug rtl-optimization/92213] internal compiler error: in lra_assign, at lra-assigns.c:1647

2019-10-24 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92213 --- Comment #4 from H.J. Lu --- /* The transfer function used by the DF equation solver to propagate live info through block with BB_INDEX according to the following equation: bb.livein = (bb.liveout - bb.kill) OR bb.gen */ static boo

[Bug target/92223] Redundant pushing to stack when passing empty structs to function (x86)

2019-10-25 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92223 --- Comment #4 from H.J. Lu --- This is related to PR 60336.

[Bug rtl-optimization/92213] internal compiler error: in lra_assign, at lra-assigns.c:1647

2019-10-25 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92213 --- Comment #6 from H.J. Lu --- When the same register is assigned by assign_by_spills which sets reg_renumber and assigned by assign_spill_hard_regs which sets hard_regs_spilled_into, lra_create_live_ranges_1 treats the register only for spill,

[Bug driver/47785] GCC with -flto does not pass -Wa/-Xassembler options to the assembler

2019-10-29 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47785 H.J. Lu changed: What|Removed |Added Summary|GCC with -flto does not |GCC with -flto does not |pas

[Bug driver/47785] GCC with -flto does not pass -Wa/-Xassembler options to the assembler

2019-10-29 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47785 --- Comment #16 from H.J. Lu --- (In reply to H.J. Lu from comment #15) > We need to also handle -Xassembler? Since -Wa, doesn't work with comma in > assembler options, like -mfoo=foo1,foo2, one needs to use > > -Xassembler -mfoo=foo1,foo2 > >

[Bug target/92295] New: Inefficient vector constructor

2019-10-30 Thread hjl.tools at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: crazylht at gmail dot com Target Milestone: --- Target: x86-64 [hjl@gnu-skx-1 microbenchmark]$ cat dup.c typedef int X __attribute__((vector_size (32))); X foo (int x, int z

[Bug middle-end/92574] New: Inefficient code for multidimensional array assess

2019-11-18 Thread hjl.tools at gmail dot com
: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- For [hjl@gnu-skx-1 tmp]$ cat foo3.c extern long bar[25][10]; long foo (long ip, long itp) { long ip1 = ip + 1; long itp1 = itp + 1; return (bar[ip][itp

[Bug target/92807] gcc generate extra move for the snippet code along with lea instruction.

2019-12-04 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92807 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/92807] gcc generate extra move for the snippet code along with lea instruction.

2019-12-04 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92807 --- Comment #4 from H.J. Lu --- Created attachment 47424 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47424&action=edit A patch

[Bug target/93319] New: -mtls-dialect=gnu2 doesn't work for x32

2020-01-18 Thread hjl.tools at gmail dot com
arget Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: ubizjak at gmail dot com Target Milestone: --- Target: x86-64 [hjl@gnu-cfl-2 tls-x32-ld]$ cat lib.c #include static __thread int foo = 30; int * test (void) { p

[Bug target/93319] -mtls-dialect=gnu2 doesn't work for x32

2020-01-18 Thread hjl.tools at gmail dot com
||2020-01-18 Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail dot com Ever confirmed|0 |1 --- Comment #1 from H.J. Lu --- Created attachment 47674 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47674&action=edit A patch

[Bug target/93319] -mtls-dialect=gnu2 doesn't work for x32

2020-01-19 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93319 H.J. Lu changed: What|Removed |Added URL||https://gcc.gnu.org/ml/gcc-

[Bug target/93319] -mtls-dialect=gnu2 doesn't work for x32

2020-01-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93319 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/90878] [8/9/10 Regression] integer -> SSE register move isn't generated

2020-01-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90878 Bug 90878 depends on bug 90952, which changed state. Bug 90952 Summary: Costs of moves are used for costs of RTL expressions https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90952 What|Removed |Added ---

[Bug target/90952] Costs of moves are used for costs of RTL expressions

2020-01-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90952 H.J. Lu changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug target/91399] parse_mtune_ctrl_str shouldn't use ix86_tune_ctrl_string

2020-01-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91399 H.J. Lu changed: What|Removed |Added URL||https://gcc.gnu.org/ml/gcc-

[Bug target/91461] Don't turn on X86_TUNE_SSE_TYPELESS_STORES for AVX/AVX512

2020-01-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91461 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW --- Comment #2 from H.J. Lu --- (In reply

[Bug target/91461] Don't turn on X86_TUNE_SSE_TYPELESS_STORES for AVX/AVX512

2020-01-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91461 H.J. Lu changed: What|Removed |Added Keywords||patch URL|

[Bug target/89346] Unnecessary EVEX encoding

2020-01-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89346 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/89346] Unnecessary EVEX encoding

2020-01-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89346 H.J. Lu changed: What|Removed |Added Resolution|FIXED |DUPLICATE --- Comment #3 from H.J. Lu --- Dup

[Bug target/89229] Incorrect xmm16-xmm31/ymm16-ymm31 in vector move

2020-01-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89229 --- Comment #27 from H.J. Lu --- *** Bug 89346 has been marked as a duplicate of this bug. ***

[Bug target/89229] Incorrect xmm16-xmm31/ymm16-ymm31 in vector move

2020-01-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89229 H.J. Lu changed: What|Removed |Added Keywords||patch URL|

[Bug target/91399] parse_mtune_ctrl_str shouldn't use ix86_tune_ctrl_string

2020-01-28 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91399 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/91461] Don't turn on X86_TUNE_SSE_TYPELESS_STORES for AVX/AVX512

2020-01-28 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91461 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-01-31 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 H.J. Lu changed: What|Removed |Added Status|NEW |WAITING --- Comment #3 from H.J. Lu --- (In r

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-01-31 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 --- Comment #4 from H.J. Lu --- Created attachment 47758 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47758&action=edit A patch If it looks OK, I will add a couple testcases.

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-01-31 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 H.J. Lu changed: What|Removed |Added Attachment #47758|0 |1 is obsolete|

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-01-31 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-01-31 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 H.J. Lu changed: What|Removed |Added Attachment #47759|0 |1 is obsolete|

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-02-01 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 H.J. Lu changed: What|Removed |Added Attachment #47760|0 |1 is obsolete|

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-02-01 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 --- Comment #9 from H.J. Lu --- (In reply to Fangrui Song from comment #7) > > Is -fasynchronous-unwind-tables compatible with -fpatchable-function-entry? > > Apparently the Linux kernel does not care about it. To make it usable in > userspace,

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-02-01 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 --- Comment #10 from H.J. Lu --- (In reply to H.J. Lu from comment #9) > > > (A more concerning issue is that __patchable_function_entries can be > > stripped by -Wl,--gc-sections , as the bug I linked above describes) > > I opened: > > https:

[Bug middle-end/93197] -fpatchable-function-entries : __patchable_function_entries does not survive under --gc-sections

2020-02-01 Thread hjl.tools at gmail dot com
||https://sourceware.org/bugz ||illa/show_bug.cgi?id=25490 CC||hjl.tools at gmail dot com Resolution|--- |MOVED --- Comment #1 from H.J. Lu --- I opened a linker

[Bug middle-end/93536] New: -fpatchable-function-entries doesn't work with --gc-sections

2020-02-01 Thread hjl.tools at gmail dot com
ormal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Blocks: 93195 Target Milestone: --- [hjl@gnu-cfl-2 pr93492]$ cat foo.i void bar (void) { } void _start (void) { } [hjl@gnu-cfl-2 pr93492]$

[Bug middle-end/93536] -fpatchable-function-entries doesn't work with --gc-sections

2020-02-01 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93536 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-02-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 H.J. Lu changed: What|Removed |Added Keywords||patch URL|

[Bug middle-end/93197] -fpatchable-function-entries : __patchable_function_entries does not survive under --gc-sections

2020-02-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93197 H.J. Lu changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug middle-end/93195] -fpatchable-function-entries : __patchable_function_entries should consider comdat groups

2020-02-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93195 --- Comment #2 from H.J. Lu --- *** Bug 93197 has been marked as a duplicate of this bug. ***

[Bug middle-end/93197] -fpatchable-function-entries : __patchable_function_entries does not survive under --gc-sections

2020-02-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93197 H.J. Lu changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug middle-end/93195] -fpatchable-function-entries : __patchable_function_entries should consider comdat groups

2020-02-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93195 --- Comment #3 from H.J. Lu --- Created attachment 47773 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47773&action=edit A patch

[Bug middle-end/93195] -fpatchable-function-entries : __patchable_function_entries should consider comdat groups

2020-02-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93195 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-02-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 --- Comment #13 from H.J. Lu --- A new patch works with both .cfi_startproc and DWARF debug info: https://gcc.gnu.org/ml/gcc-patches/2020-02/msg00107.html

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-02-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 H.J. Lu changed: What|Removed |Added URL|https://gcc.gnu.org/ml/gcc- |https://gcc.gnu.org/ml/gcc-

[Bug target/93588] Vectorized load followed by FMA pessimizes on Haswell from version 8.1

2020-02-05 Thread hjl.tools at gmail dot com
, ||hjl.tools at gmail dot com --- Comment #3 from H.J. Lu --- Hongtao, can you take a look?

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-02-05 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 --- Comment #15 from H.J. Lu --- A new patch set is posted at https://gcc.gnu.org/ml/gcc-patches/2020-02/msg00265.html

[Bug target/85667] ms_abi rules aren't followed when returning short structs with float values

2020-02-05 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85667 H.J. Lu changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug target/88521] GCC from r266355 miscompiles x265 for mingw-w64 target

2020-02-05 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88521 Bug 88521 depends on bug 85667, which changed state. Bug 85667 Summary: ms_abi rules aren't followed when returning short structs with float values https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85667 What|Removed

[Bug target/85667] ms_abi rules aren't followed when returning short structs with float values

2020-02-05 Thread hjl.tools at gmail dot com
||hjl.tools at gmail dot com Version|8.0.1 |10.0 Target Milestone|9.0 |10.0 --- Comment #11 from H.J. Lu --- Confirmed with GCC 10.

[Bug target/85667] ms_abi rules aren't followed when returning short structs with float values

2020-02-05 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85667 --- Comment #12 from H.J. Lu --- I am testing this diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ffda3e8fd21..f769cb8f75e 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3153,7 +3153,7 @@ function_arg_64

[Bug middle-end/93195] -fpatchable-function-entries : __patchable_function_entries should consider comdat groups

2020-02-06 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93195 --- Comment #4 from H.J. Lu --- *** Bug 93536 has been marked as a duplicate of this bug. ***

[Bug middle-end/93536] -fpatchable-function-entries -ffunction-sections doesn't work with --gc-sections

2020-02-06 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93536 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/93195] -fpatchable-function-entries : __patchable_function_entries should consider comdat groups

2020-02-06 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93195 Bug 93195 depends on bug 93536, which changed state. Bug 93536 Summary: -fpatchable-function-entries -ffunction-sections doesn't work with --gc-sections https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93536 What|Removed

[Bug target/85667] ms_abi rules aren't followed when returning and passing short structs with float and double values

2020-02-07 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85667 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/88521] GCC from r266355 miscompiles x265 for mingw-w64 target

2020-02-07 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88521 Bug 88521 depends on bug 85667, which changed state. Bug 85667 Summary: ms_abi rules aren't followed when returning and passing short structs with float and double values https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85667 What|Rem

[Bug target/93588] Vectorized load followed by FMA pessimizes on Haswell from version 8.1

2020-02-07 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93588 --- Comment #5 from H.J. Lu --- It is because load/store costs of vector registers for register allocator are too low. This patch fixes it: diff --git a/gcc/config/i386/x86-tune-costs.h b/gcc/config/i386/x86-tune-costs.h index c73917e5a62..54b9

[Bug libgcc/85334] Shadow stack isn't unwound properly through signal handler

2020-02-08 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85334 H.J. Lu changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug target/81652] [meta-bug] -fcf-protection=full bugs

2020-02-08 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81652 Bug 81652 depends on bug 85334, which changed state. Bug 85334 Summary: Shadow stack isn't unwound properly through signal handler https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85334 What|Removed |Added -

[Bug target/81652] [meta-bug] -fcf-protection=full bugs

2020-02-10 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81652 Bug 81652 depends on bug 85334, which changed state. Bug 85334 Summary: Shadow stack isn't unwound properly through signal handler https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85334 What|Removed |Added -

[Bug libgcc/85334] Shadow stack isn't unwound properly through signal handler

2020-02-10 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85334 H.J. Lu changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug target/93656] New: FAIL: gcc.target/i386/pr67770.c execution test with -fcf-protection

2020-02-10 Thread hjl.tools at gmail dot com
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: ubizjak at gmail dot com Blocks: 81652 Target Milestone: --- Target: i386 On

[Bug target/93673] Fake error given by gcc when compiling for _kshift intrinsics

2020-02-11 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93673 --- Comment #2 from H.J. Lu --- Something like this: diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 902ea318999..b3b6552e13b 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -1650,7 +1650,7 @@ (define_insn

[Bug target/93656] FAIL: gcc.target/i386/pr67770.c execution test with -fcf-protection

2020-02-20 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93656 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/81652] [meta-bug] -fcf-protection=full bugs

2020-02-20 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81652 Bug 81652 depends on bug 93656, which changed state. Bug 93656 Summary: FAIL: gcc.target/i386/pr67770.c execution test with -fcf-protection https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93656 What|Removed |Added

[Bug lto/93966] New: -fcf-protection -flto -g don't work togeter

2020-02-28 Thread hjl.tools at gmail dot com
: lto Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: marxin at gcc dot gnu.org, rguenth at gcc dot gnu.org Target Milestone: --- [hjl@gnu-cfl-2 tmp]$ cat x.c #include int main () { printf ("hello\n"); return 0; }

[Bug lto/93966] -fcf-protection -flto -g don't work togeter

2020-02-28 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93966 H.J. Lu changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail dot com

[Bug lto/93966] [9/10 Regression] -fcf-protection -flto -g don't work togeter

2020-02-29 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93966 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

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