[Bug target/119784] -mapxf saves registers beyond red zone

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

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls (inc. preserve_none for x86_64?)

2025-04-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #13 from H.J. Lu --- (In reply to Ken Jin from comment #9) > I tried this out with CPython's interpreter that uses tail calls with the > patch at > https://gitlab.com/x86-gcc/gcc/-/tree/users/hjl/saved/master?ref_type=heads > applied

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls (inc. preserve_none for x86_64?)

2025-04-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 H.J. Lu changed: What|Removed |Added Attachment #61120|0 |1 is obsolete|

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls (inc. preserve_none for x86_64?)

2025-04-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #11 from H.J. Lu --- (In reply to Ken Jin from comment #9) > I tried this out with CPython's interpreter that uses tail calls with the > patch at > https://gitlab.com/x86-gcc/gcc/-/tree/users/hjl/saved/master?ref_type=heads > applied

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #8 from H.J. Lu --- Created attachment 61120 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61120&action=edit A tested patch

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

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

[Bug target/119784] -mapxf saves registers beyond red zone

2025-04-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119784 --- Comment #1 from H.J. Lu --- Created attachment 61098 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61098&action=edit A patch I am testing this.

[Bug target/119784] New: -mapxf saves registers beyond red zone

2025-04-13 Thread hjl.tools at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86-64 [hjl@gnu-tgl-3 pr119628]$ cat x1.c #define DONT_SAVE_REGS __attribute__((no_callee_saved_registers

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #6 from H.J. Lu --- no_caller_saved_registers only works with XMM and ZMM, not YMM, since YMM load will clear the upper 256 bits of ZMM.

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 H.J. Lu changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail dot com

[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32846 --- Comment #10 from H.J. Lu --- A patch is posted at https://sourceware.org/pipermail/binutils/2025-April/140473.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32846 --- Comment #9 from H.J. Lu --- (In reply to Sam James from comment #0) > Hi! > > Since ... > > commit 2707d55e539ef323dd14a1293e762bf3d9739ee7 > Author: Michael Matz > Date: Mon Mar 31 15:57:08 2025 +0200 > > [lto] Fix symlookup in

[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32846 H.J. Lu changed: What|Removed |Added Blocks||32854 Referenced Bugs: https://sourceware

[Bug ld/32854] Default versioned symbol in shared library is ignored with LTO

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32854 H.J. Lu changed: What|Removed |Added Depends on||32846 Referenced Bugs: https://sourceware

[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32846 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug ld/32854] Default versioned symbol in shared library is ignored with LTO

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32854 Bug 32854 depends on bug 32846, which changed state. Bug 32846 Summary: LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7 https://sourceware.org/bugzilla/show_bug.cgi?id=32846 What|Removed

[Bug ld/32854] Default versioned symbol in shared library is ignored with LTO

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32854 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-09 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 H.J. Lu changed: What|Removed |Added Last reconfirmed||2025-04-09 CC|

[Bug ld/32860] Definition of GCC builtin function in LTO archive is ignored

2025-04-09 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32860 H.J. Lu changed: What|Removed |Added Summary|Definition of GCC builtin |Definition of GCC builtin

[Bug ld/32860] New: Definition in the archive is ignored with LTO

2025-04-09 Thread hjl.tools at gmail dot com
Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-tgl-3 lto-6]$ cat pr31482a.c #include int main() { abort (); return 0; } [hjl@gnu-tgl-3 lto-6]$ cat pr31482c.c #include #include void abort (void

[Bug ld/32860] Definition of GCC builtin function in the archive is ignored with LTO

2025-04-09 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32860 H.J. Lu changed: What|Removed |Added Summary|Definition in the archive |Definition of GCC builtin

[Bug ld/32854] New: Default versioned symbol in shared library is ignored with LTO

2025-04-08 Thread hjl.tools at gmail dot com
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- when a shared library defines 'foo@@FOO' (default version), a static archive defines 'foo', the shared lib c

[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-08 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32846 --- Comment #8 from H.J. Lu --- (In reply to Michael Matz from comment #7) > Ultimately first_hash was introduced for what really is a bug in the compiler > (pr31482, where the LTO .o files don't contain a reference to abort in their > symbol

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #3 from H.J. Lu --- (In reply to ak from comment #2) > The existing attributes could just handle this case? Caller needs to know what registers are saved by callee. But caller doesn't know what ISAs are used by callee.

[Bug gas/32813] Missing REX prefix for LSL

2025-04-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32813 --- Comment #3 from H.J. Lu --- (In reply to Andreas Abel from comment #2) > Yes, it causes issues in > https://github.com/andreas-abel/nanoBench/tree/master/tools/cpuBench, which > is the code that generates the benchmarks that are behind > h

[Bug gprof/32779] tst-gmon-gprof-l.sh failure when -g isn't used

2025-04-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32779 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug ld/32816] --{undefined,--require-defined} appears to fail against shared libraries

2025-04-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32816 --- Comment #3 from H.J. Lu --- (In reply to Aliaksey Kandratsenka from comment #2) > As noted above, I have tried --no-as-needed. And yes it kinda "works", but > it is not great. > > There several imperfections with --no-as-needed: > > *)

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #1 from H.J. Lu --- no_calle(e|r)_saved_registers=gpr(16|32)?

[Bug gas/32813] Missing REX prefix for LSL

2025-04-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32813 --- Comment #7 from H.J. Lu --- (In reply to Andreas Abel from comment #5) > If it is not a bug, but a conscious choice to prefer the form without the > REX prefix to optimize the instruction size, I would expect that > `{nooptimize} LSL RCX,

[Bug fortran/119540] New: [15 Regression] FAIL: gfortran.dg/reduce_1.f90 -O0 execution test

2025-03-29 Thread hjl.tools at gmail dot com via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86-64 On x86-64, r15-9029-geb26b667518c95 gave FAIL

[Bug target/119539] New: [15 Regression] FAIL: gcc.target/i386/apx-nf.c scan-assembler-times {nf} rol 4

2025-03-29 Thread hjl.tools at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: haochen.jiang at intel dot com, liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86-64 On x86-64

[Bug gas/32811] nooptimize doesn't apply to immediates

2025-03-29 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32811 H.J. Lu changed: What|Removed |Added Status|WAITING |RESOLVED Target Milestone|---

[Bug gas/32813] Missing REX prefix for LSL

2025-03-27 Thread hjl.tools at gmail dot com
||2025-03-23 Ever confirmed|0 |1 CC||hjl.tools at gmail dot com --- Comment #1 from H.J. Lu --- Does the current behavior cause any issues in actual codes? -- You are receiving this mail because: You are on

[Bug ld/32816] --{undefined,--require-defined} appears to fail against shared libraries

2025-03-27 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32816 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0

[Bug gas/32811] nooptimize doesn't apply to immediates

2025-03-27 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32811 H.J. Lu changed: What|Removed |Added CC||haochen.jiang at intel dot com Ever con

[Bug binutils/32809] readelf doesn't dump .debug_loclists section correctly for 64-bit target and mixed dwarf4/5 content

2025-03-25 Thread hjl.tools at gmail dot com
|NEW Ever confirmed|0 |1 CC||hjl.tools at gmail dot com --- Comment #2 from H.J. Lu --- A patch is posted at https://sourceware.org/pipermail/binutils/2025-March/140085.html -- You are receiving this

[Bug gas/32813] Missing REX prefix for LSL

2025-03-25 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32813 --- Comment #6 from H.J. Lu --- (In reply to Andreas Abel from comment #4) > Yes, I could add workarounds to my code, but it would be preferable if this > could be fixed at the source. Earlier versions of gas correctly added the > REX prefix,

[Bug gas/32811] nooptimize doesn't apply to immediates

2025-03-22 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32811 --- Comment #5 from H.J. Lu --- (In reply to Andi Kleen from comment #4) > Looks good to me thanks. > > Except should there be an error if the immediate exceeds imm8 or imm16? It is a hint, not a hard requirement. -- You are receiving this

[Bug gas/32811] nooptimize doesn't apply to immediates

2025-03-22 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32811 H.J. Lu changed: What|Removed |Added Assignee|unassigned at sourceware dot org |hjl.tools at gmail dot com

[Bug gas/32811] nooptimize doesn't apply to immediates

2025-03-21 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32811 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com -- You are

[Bug ld/32807] x86-64 test pr19636-3d is not run and would fail

2025-03-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32807 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-20 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386 --- Comment #13 from H.J. Lu --- (In reply to Michael Matz from comment #11) > access to the respective GOT slot). Upstream binutils now silently do emit a > route via PLT, our binutils complain. I'm not sure that upstream behaviour > is > i

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

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

[Bug ld/32787] --build-id produces broken elf

2025-03-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32787 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/117069] [15 Regression] gcc.target/i386/apx-ndd-tls-1b.c since r15-268-g9dbff9c05520a7

2025-03-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117069 --- Comment #10 from H.J. Lu --- (In reply to Hongtao Liu from comment #8) > (In reply to Hongtao Liu from comment #6) > > It looks like the testcase is fragile, it's supposed to check the compiler > > ability of generating code_6_gottpoff_reloc

[Bug target/117069] [15 Regression] gcc.target/i386/apx-ndd-tls-1b.c since r15-268-g9dbff9c05520a7

2025-03-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117069 --- Comment #11 from H.J. Lu --- (In reply to H.J. Lu from comment #10) > (In reply to Hongtao Liu from comment #8) > > (In reply to Hongtao Liu from comment #6) > > > It looks like the testcase is fragile, it's supposed to check the compiler >

[Bug ld/32787] --build-id produces broken elf

2025-03-15 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32787 H.J. Lu changed: What|Removed |Added Target Milestone|--- |2.45 -- You are receiving this mail becaus

[Bug ld/32787] --build-id produces broken elf

2025-03-14 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32787 --- Comment #3 from H.J. Lu --- Fixed for 2.45 so far. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug tree-optimization/119299] Jump followed by jump not optimized.

2025-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119299 --- Comment #3 from H.J. Lu --- (In reply to AK from comment #0) ... > https://godbolt.org/z/3xh6Mxq4j FYI, https://gitlab.com/x86-gcc/gcc/-/tree/users/hjl/condjmp/gcc-16?ref_type=heads generates: .globl g1 .type g1, @func

[Bug middle-end/119297] New: Dead local vector variable isn't removed

2025-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
ormal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-tgl-3 gcc]$ cat /tmp/y.c typedef char vec_t __attribute__((vector_size(16))); extern void func1(vec_t); extern void

[Bug tree-optimization/119294] Could improve vector formation when generated using a loop (vector char)

2025-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119294 --- Comment #5 from H.J. Lu --- CSE turns (insn 18 16 19 2 (set (mem/c:V16QI (plus:DI (reg/f:DI 19 frame) (const_int -16 [0xfff0])) [0 MEM [(void *)&x]+0 S16 A128]) (subreg:V16QI (reg:V4SI 111) 0)) "x.c":11:

[Bug rtl-optimization/119297] Dead local vector variable isn't removed

2025-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119297 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Component|middle-end

[Bug ld/32787] --build-id produces broken elf

2025-03-13 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32787 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug gprof/32779] New: tst-gmon-gprof-l.sh failure when -g isn't used

2025-03-11 Thread hjl.tools at gmail dot com
y: P2 Component: gprof Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- When binutils is compiled without -g, I got -- expected +++ actual @@ -1,3 +1,3 @@ -25 f1 2000 -31 f2 1000 -40 f3 1 +0 f1 2000 +0 f2 1000 +0 f3 1 FAIL m

[Bug rtl-optimization/119171] [15 Regression] error: ‘asm’ operand has impossible constraints or there are not enough registers

2025-03-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119171 H.J. Lu changed: What|Removed |Added Resolution|INVALID |FIXED

[Bug binutils/32773] New: Test failures when -flto is used

2025-03-09 Thread hjl.tools at gmail dot com
Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- When binutils is configured with $ CC="gcc" CXX="g++" CFLAGS="-O2 -g -flto" CXXFLAGS="-O2 -g -flto" .../configure I got /export/

[Bug rtl-optimization/119171] [15 Regression] error: ‘asm’ operand has impossible constraints or there are not enough registers

2025-03-08 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119171 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/119171] New: [15 Regression] error: ‘asm’ operand has impossible constraints or there are not enough registers

2025-03-08 Thread hjl.tools at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- On x86-64, r15-7900-g622968990beee7 gave: [hjl@gnu-tgl-3 pr119083]$ cat x.i long

[Bug gprof/32768] tst-gmon failure on x86_64

2025-03-08 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32768 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug gprof/32768] tst-gmon failure on x86_64

2025-03-08 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32768 --- Comment #7 from H.J. Lu --- (In reply to Alan Modra from comment #0) > Disassembly of f1 and f2 shows the expected calls are there, it's just > that gprof miscategorises the f2->f1 call as f1->f1. > > 00401196 : > 401196:

[Bug gprof/32768] tst-gmon failure on x86_64

2025-03-08 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32768 H.J. Lu changed: What|Removed |Added Assignee|unassigned at sourceware dot org |hjl.tools at gmail dot com

[Bug gprof/32768] tst-gmon failure on x86_64

2025-03-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32768 --- Comment #1 from H.J. Lu --- Which compiler was used? -- You are receiving this mail because: You are on the CC list for the bug.

[Bug target/119142] [15 Regression] Many regressions since r15-7852 on i686-linux

2025-03-06 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119142 --- Comment #8 from H.J. Lu --- Created attachment 60673 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60673&action=edit A patch I am testing this with if (GENERAL_REGNO_P (hard_regno)) { /* push is 1 byte while typical spil

[Bug target/119142] [15 Regression] Many regressions since r15-7852 on i686-linux

2025-03-06 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119142 --- Comment #7 from H.J. Lu --- Something like diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index 661e71b032c..8e599bb22fc 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -20613,11 +20613,10 @@ ix86_calle

[Bug target/119142] [15 Regression] Many regressions since r15-7852 on i686-linux

2025-03-06 Thread hjl.tools at gmail dot com via Gcc-bugs
|NEW CC||hjl.tools at gmail dot com Ever confirmed|0 |1

[Bug gprof/32764] glibc gmon test failures with binutils trunk's gprof changes (b8189cf9e40bd90502c9a2ce0df39dd54419bea4)

2025-03-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32764 --- Comment #3 from H.J. Lu --- This change: diff --git a/gprof/gprof.c b/gprof/gprof.c index 9392575f747..d1cbf25fa28 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -527,17 +527,6 @@ This program is free software. This program has absolu

[Bug gprof/32765] [2.45 Regression] FAIL: gmon/tst-gmon-gprof

2025-03-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32765 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug gprof/32764] glibc gmon test failures with binutils trunk's gprof changes (b8189cf9e40bd90502c9a2ce0df39dd54419bea4)

2025-03-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32764 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #2

[Bug gprof/32765] New: [2.45 Regression] FAIL: gmon/tst-gmon-gprof

2025-03-05 Thread hjl.tools at gmail dot com
: gprof Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- commit b8189cf9e40bd90502c9a2ce0df39dd54419bea4 Author: Richard Allen Date: Sun Feb 16 16:50:05 2025 -0600 gprof: only process line numbers for intersection of

[Bug ld/32762] ld test failures on x86 (No PLT) with default BIND_NOW

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32762 H.J. Lu changed: What|Removed |Added Status|WAITING |RESOLVED Target Milestone|---

[Bug ld/32761] 2.43/2.44 Regression] Static PIE with more than one PT_LOAD segments at offset 0

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32761 H.J. Lu changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug ld/32761] 2.43/2.44 Regression] Static PIE with more than one PT_LOAD segments at offset 0

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32761 H.J. Lu changed: What|Removed |Added Summary|binary created by ld will |2.43/2.44 Regression] |se

[Bug ld/32762] ld test failures on x86 (No PLT) with default BIND_NOW

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32762 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com

[Bug binutils/25237] Strip leaves file offset of empty PT_LOAD segment point past end of file

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25237 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #12

[Bug ld/32761] binary created by ld will segfault in _dl_relocate_static_pie when static pie is enabled

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32761 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug ld/32761] binary created by ld will segfault in _dl_relocate_static_pie when static pie is enabled

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32761 --- Comment #7 from H.J. Lu --- It is caused by commit 0bc3450e220a4fb29f931ada84b546ce8993e85e Author: Alan Modra Date: Fri Dec 13 16:14:57 2019 +1030 Set no file contents PT_LOAD p_offset to first page PR 25237

[Bug ld/32761] binary created by ld will segfault in _dl_relocate_static_pie when static pie is enabled

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32761 H.J. Lu changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug ld/32761] binary created by ld will segfault in _dl_relocate_static_pie when static pie is enabled

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32761 H.J. Lu changed: What|Removed |Added CC||amodra at gmail dot com,

[Bug ld/32761] binary created by ld will segfault in _dl_relocate_static_pie when static pie is enabled

2025-03-04 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32761 --- Comment #5 from H.J. Lu --- Section to Segment mapping: Segment Sections... 00 .note.gnu.build-id .init .plt .plt.got .text .fini ^^^ Data, .note.gnu.build-id, in the executable segment is unexpected.

[Bug target/119083] Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

2025-03-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119083 --- Comment #8 from H.J. Lu --- Created attachment 60647 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60647&action=edit A patch to remove CREG and BREG from ix86_class_likely_spilled_p Hongtao, can you measure its impact on SPEC CPU 201

[Bug target/119083] Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

2025-03-02 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119083 --- Comment #6 from H.J. Lu --- (In reply to H.J. Lu from comment #4) > (In reply to Uroš Bizjak from comment #1) > > SSE_FIRST_REG is in ic86_class_likely_spilled_p because it is a > > single-member class. It is there because of SSE4 pcmpistrm

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for x86-64?

2025-03-02 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #15 from H.J. Lu --- (In reply to Hongtao Liu from comment #14) > (In reply to H.J. Lu from comment #13) > > (In reply to H.J. Lu from comment #11) > > > Created attachment 60609 [details] > > > An untested patch > > > > Hongtao, do

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for x86-64?

2025-03-02 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #13 from H.J. Lu --- (In reply to H.J. Lu from comment #11) > Created attachment 60609 [details] > An untested patch Hongtao, do you have SPEC CPU2017 data on this patch?

[Bug target/119083] Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

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

[Bug target/119083] Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

2025-03-02 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119083 --- Comment #3 from H.J. Lu --- Created attachment 60640 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60640&action=edit A patch to remove SSE_FIRST_REG from ix86_class_likely_spilled_p Hongtao, can you measure its impact on SPEC CPU2017

[Bug target/119083] New: Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

2025-03-01 Thread hjl.tools at gmail dot com via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86 SSE_FIRST_REG was added to CLASS_LIKELY_SPILLED_P, which became

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #12 from H.J. Lu --- (In reply to H.J. Lu from comment #11) > Created attachment 60609 [details] > An untested patch Tested on x86-64 with RUNTESTFLAGS="--target_board='unix{-m32,}'". There are no regressions.

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

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

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #9 from H.J. Lu --- (In reply to H.J. Lu from comment #8) > Created attachment 60607 [details] > A patch > > Here is the patch to change TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P to > return false for x86-64. This doesn't work: /ex

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #10 from H.J. Lu --- Testing this: diff --git a/gcc/ira.cc b/gcc/ira.cc index 885239d1b43..e93a596e2a9 100644 --- a/gcc/ira.cc +++ b/gcc/ira.cc @@ -2158,6 +2158,10 @@ decrease_live_ranges_number (void) || (targetm.small_regis

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #8 from H.J. Lu --- Created attachment 60607 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60607&action=edit A patch Here is the patch to change TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P to return false for x86-64.

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #6 from H.J. Lu --- SMALL_REGISTER_CLASSES was added by commit c98f874233428d7e6ba83def7842fd703ac0ddf1 Author: James Van Artsdalen Date: Sun Feb 9 13:28:48 1992 + Initial revision which became TARGET_SMALL_REGISTER_CLA

[Bug target/118992] Redundant argument set up for call

2025-02-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 H.J. Lu changed: What|Removed |Added Attachment #60590|0 |1 is obsolete|

[Bug target/118992] Redundant argument set up for call

2025-02-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 --- Comment #14 from H.J. Lu --- (In reply to Hongtao Liu from comment #13) > (In reply to H.J. Lu from comment #11) > > Created attachment 60590 [details] > > A patch > > > > Can you try this on SPEC CPU? > > No big impact for both O2 and Ofa

[Bug binutils/32459] libbfd doesn't report RELR relocations

2025-02-25 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32459 --- Comment #12 from H.J. Lu --- (In reply to H.J. Lu from comment #11) > The BFD library provides: > > 1. bfd_get_dynamic_reloc_upper_bound to count dynamic relocations. > 2. bfd_canonicalize_dynamic_reloc to retrieve dynamic reloctions. >

[Bug binutils/32459] libbfd doesn't report RELR relocations

2025-02-25 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32459 H.J. Lu changed: What|Removed |Added Target Milestone|--- |2.45 -- You are receiving this mail becaus

[Bug binutils/32459] libbfd doesn't report RELR relocations

2025-02-25 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32459 H.J. Lu changed: What|Removed |Added Summary|objdump -R: dump SHT_RELR |libbfd doesn't report RELR

[Bug target/118992] Redundant argument set up for call

2025-02-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 --- Comment #11 from H.J. Lu --- Created attachment 60590 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60590&action=edit A patch Can you try this on SPEC CPU?

[Bug target/118992] Redundant argument set up for call

2025-02-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 --- Comment #10 from H.J. Lu --- (In reply to Hongtao Liu from comment #9) > > > Remove check of 2 hooks regressed > > gcc: gcc.target/i386/pr111673.c check-function-bodies advance > unix/-m32: gcc: gcc.target/i386/pr49095.c scan-assembler-not

[Bug binutils/32459] objdump -R: dump SHT_RELR relocations?

2025-02-24 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32459 H.J. Lu changed: What|Removed |Added Assignee|nickc at redhat dot com|hjl.tools at gmail dot com

  1   2   3   4   5   6   7   8   9   10   >