[Bug target/116472] Wrong offset format when generating assembly with -masm=intel and -fPIE/-fPIC

2024-08-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116472 Richard Biener changed: What|Removed |Added Target|X86_64 |x86_64-*-* Last reconfirmed|2024-08-

[Bug c++/116476] [14/15 regression] error: binding reference of type 'int&&' to 'const int' discards qualifiers for std::vector> f{2}; (OK under Clang and GCC<=13)

2024-08-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116476 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug ipa/116478] x86_64-w64-mingw32-gcc -flto should support and not warn about __attribute__ ((visibility("default")))

2024-08-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116478 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org Last reco

[Bug rtl-optimization/116372] [15 Regression] Ada bootstrap failure ada/gcc-interface/trans.cc:6423 since r15-2890-g72c9b5f438f22c

2024-08-25 Thread stefansf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116372 Stefan Schulze Frielinghaus changed: What|Removed |Added Resolution|--- |FIXED Status|

[Bug rtl-optimization/116405] [15 regression] wrong code at -O{2,3} with "-fno-ssa-phiopt -fno-tree-dce" on x86_64-linux-gnu since r15-2890-g72c9b5f438f22c

2024-08-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116405 Sam James changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/55212] [SH] Switch to LRA

2024-08-25 Thread kkojima at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #192 from Kazumoto Kojima --- Created attachment 58994 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58994&action=edit a testcase for a wrong code issue which is preprocessed gcc/pointer-query.cc I identified a wrong code with

[Bug target/55212] [SH] Switch to LRA

2024-08-25 Thread kkojima at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #193 from Kazumoto Kojima --- (In reply to Kazumoto Kojima from comment #192) Related parts of RTL dumps. [.ira dump] (insn 1747 1745 1748 125 (set (reg/f:SI 2854) (plus:SI (reg/f:SI 153 sfp) (const_int -136 [0x

[Bug target/55212] [SH] Switch to LRA

2024-08-25 Thread kkojima at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #194 from Kazumoto Kojima --- Created attachment 58995 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58995&action=edit simply a trial patch, not a real fix With this explicit emit_clobber, all the segfaults I reported are gone

[Bug target/55212] [SH] Switch to LRA

2024-08-25 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #195 from Oleg Endo --- (In reply to Kazumoto Kojima from comment #193) Great results! > > It looks that LRA allocates r4 to the psuedo register r2854 and assumes that > it's preserved beyond the insn 1752 block_lump_real_i4. > Can

[Bug rtl-optimization/116479] New: [15 Regression] wrong code with -O -funroll-loops -finline-stringops -fmodulo-sched --param=max-iterations-computation-cost=637924876 on aarch64

2024-08-25 Thread zsojka at seznam dot cz via Gcc-bugs
with-as=/usr/bin/aarch64-unknown-linux-gnu-as --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r15-3158-20240825101449-g91f549537ca-checking-yes-rtl-df-extra-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 2

[Bug target/55212] [SH] Switch to LRA

2024-08-25 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #196 from Andreas Schwab --- Both forms are completely equivalent (a multi element template is implicitly surrounded by parallel).

[Bug rtl-optimization/116480] New: [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt() on aarch64

2024-08-25 Thread zsojka at seznam dot cz via Gcc-bugs
a-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240825 (experimental) (GCC)

[Bug middle-end/116480] [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt() on aarch64

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116480 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org Com

[Bug target/55212] [SH] Switch to LRA

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #197 from Andrew Pinski --- (In reply to Andreas Schwab from comment #196) > Both forms are completely equivalent (a multi element template is implicitly > surrounded by parallel). Yes and I just fixed a bug dealing with that and gen

[Bug tree-optimization/115866] missed optimization vectorizing switch statements.

2024-08-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Andi Kleen : https://gcc.gnu.org/g:c9ccc3961f5b8d333f5081b377cd9ee9e33079f7 commit r15-3167-gc9ccc3961f5b8d333f5081b377cd9ee9e33079f7 Author: Andi Kleen Date: Thu Aug

[Bug middle-end/116480] [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt(65...128) on aarch64

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116480 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug middle-end/116480] [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt(65...128) on aarch64

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116480 --- Comment #3 from Andrew Pinski --- Or rather the issue is here: 5320 rtx plhs = expand_normal (lhs); 5321 rtx pcmp = emit_store_flag (NULL_RTX, EQ, plhs, const1_rtx, mode, 0, 0); We are expanding: int _1; uint128_t _2; _Bool

[Bug middle-end/116480] [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt(65...128) on aarch64

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116480 --- Comment #4 from Andrew Pinski --- Another testcase: ``` int foo(unsigned __int128 b) { return __builtin_popcountg(b) == 1; } ```

[Bug middle-end/116480] [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt(65...128) on aarch64

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116480 --- Comment #5 from Andrew Pinski --- Created attachment 58998 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58998&action=edit patch which I am testing

[Bug target/116472] Wrong offset format when generating assembly with -masm=intel and -fPIE/-fPIC

2024-08-25 Thread 8dcc.git at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116472 --- Comment #6 from 8dcc.git at gmail dot com --- (In reply to Xi Ruoyao from comment #4) > > I tried compiling the source with: > > > > gcc -S -masm=intel -no-pie -o output.s source.c > > > > And the issue still persists. > > -no-pie is o

[Bug rtl-optimization/116479] [15 Regression] wrong code with -O -funroll-loops -finline-stringops -fmodulo-sched --param=max-iterations-computation-cost=637924876 on aarch64

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116479 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0

[Bug rtl-optimization/116479] [15 Regression] wrong code with -O -funroll-loops -finline-stringops -fmodulo-sched --param=max-iterations-computation-cost=637924876 on aarch64

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116479 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/116463] [15 Regression] fast-math-complex-mls-{double,float}.c fail after r15-3087-gb07f8a301158e5

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116463 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/116480] [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt(65...128) on aarch64

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116480 Andrew Pinski changed: What|Removed |Added Keywords||patch URL|

[Bug c/116481] New: Compilation error caused by -Warray-bounds and -O2

2024-08-25 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481 Bug ID: 116481 Summary: Compilation error caused by -Warray-bounds and -O2 Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug tree-optimization/116481] Compilation error caused by -Warray-bounds and -O2

2024-08-25 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481 --- Comment #1 from Bruno Haible --- A workaround is to declare the local variable 'tramp_address' volatile: = foo.c = extern void tramp (); int is_trampoline (void* function) { void* volatile

[Bug tree-optimization/116481] Compilation error caused by -Warray-bounds and -O2

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481 Andrew Pinski changed: What|Removed |Added Blocks||56456 Target|hppa-linux-gnu

[Bug tree-optimization/116481] [12/13/14/15 Regression] Compilation error caused by -Warray-bounds and -O2

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481 Andrew Pinski changed: What|Removed |Added Known to fail||12.1.0 Last reconfirmed|

[Bug tree-optimization/116460] [14/15 Regression] LTO ICE with -g during GIMPLE pass: forwprop

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116460 --- Comment #13 from Andrew Pinski --- (In reply to Andrew Pinski from comment #8) > ./a.ltrans6.ltrans.212t.forwprop4 > > Removing dead stmt noDataCandVec$_M_start_888 = PHI <_1783(176), _577(186)> > ... > Removing dead stmt:_598 = _888 + 16;

[Bug tree-optimization/116481] [12/13/14/15 Regression] `arrays of functions are not meaningful` error message happens with -W -Wall -O2 even though there are no arrays of function types used

2024-08-25 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481 --- Comment #4 from Bruno Haible --- (In reply to Andrew Pinski from comment #3) > The error message happens on x86_64 also. Indeed. > Note I think this code is undefined really unless you use the volatile. Why? This code is accessing read-on

[Bug tree-optimization/116481] [12/13/14/15 Regression] `arrays of functions are not meaningful` error message happens with -W -Wall -O2 even though there are no arrays of function types used

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481 --- Comment #5 from Andrew Pinski --- (In reply to Bruno Haible from comment #4) > Why? This code is accessing read-only memory near the address of the 'tramp' > function. Why would it need 'volatile' when doing so? (I don't claim that > this is

[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls

2024-08-25 Thread andi at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 --- Comment #32 from andi at firstfloor dot org --- The feature is currently only supported with standard C/C++ attributes ([[clang/gnu::musttail]]), not __attribute__ But given that you have existing code that uses the old syntax and clang suppo

[Bug target/55212] [SH] Switch to LRA

2024-08-25 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #198 from John Paul Adrian Glaubitz --- (In reply to Kazumoto Kojima from comment #194) > Created attachment 58995 [details] > simply a trial patch, not a real fix > > With this explicit emit_clobber, all the segfaults I reported are

[Bug c++/115851] ICE in gimplify_var_or_parm_decl with coroutine suspension point inside statement expression

2024-08-25 Thread daklishch at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115851 --- Comment #1 from Dan Klishch --- GCC seems to do checks for coroutine-related types more eagerly now, so the original minified reproducer is rejected. Nonetheless, the underlying issue persists, which can be shown using this snippet: ``` #in

[Bug c++/115851] ICE in gimplify_var_or_parm_decl with coroutine suspension point inside statement expression

2024-08-25 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115851 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/116482] New: Bogus -Wunused-parameter with C++ coroutines

2024-08-25 Thread daklishch at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116482 Bug ID: 116482 Summary: Bogus -Wunused-parameter with C++ coroutines Product: gcc Version: unknown Status: UNCONFIRMED Keywords: c++-coroutines Severity: normal

[Bug target/116466] The standard instruction pattern of RISC-V addv has generated an unnecessary instruction.

2024-08-25 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116466 --- Comment #2 from Jeffrey A. Law --- Looking at this, I would fully expect that in an optimizing compilation that the redundant extension would be eliminated. Are you seeing the redundant sign extensions in the final assembly output or just

[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls

2024-08-25 Thread lucier at math dot purdue.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 --- Comment #33 from lucier at math dot purdue.edu --- I don't know what the issues are about whether to support __attribute__, whether the notation is obsolete or nonstandard. If gcc doesn't support this notation, it might lead to just one more

[Bug target/116466] The standard instruction pattern of RISC-V addv has generated an unnecessary instruction.

2024-08-25 Thread leidian900 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116466 --- Comment #3 from cui xu --- (In reply to Jeffrey A. Law from comment #2) > Looking at this, I would fully expect that in an optimizing compilation that > the redundant extension would be eliminated. Are you seeing the redundant > sign exten

[Bug target/97448] Unneccessary stack frame when using stack protector

2024-08-25 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97448 Jiu Fu Guo changed: What|Removed |Added CC||guojiufu at gcc dot gnu.org --- Comment #2

[Bug target/96866] ICE in print_operand_address, at config/rs6000/rs6000.c:13560

2024-08-25 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96866 Jiu Fu Guo changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/116030] [15 regression] ICE "could not split insn" in final_scan_insn_1, at final.cc on power pc since r15-1576-g6274f10318d053

2024-08-25 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116030 --- Comment #4 from Jiu Fu Guo --- Submitted a patch as: https://gcc.gnu.org/pipermail/gcc-patches/2024-August/660983.html

[Bug target/116030] [15 regression] ICE "could not split insn" in final_scan_insn_1, at final.cc on power pc since r15-1576-g6274f10318d053

2024-08-25 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116030 --- Comment #5 from Jiu Fu Guo --- And the new version: https://gcc.gnu.org/pipermail/gcc-patches/2024-August/66.html

[Bug target/116030] [15 regression] ICE "could not split insn" in final_scan_insn_1, at final.cc on power pc since r15-1576-g6274f10318d053

2024-08-25 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116030 --- Comment #6 from Jiu Fu Guo --- (In reply to Jiu Fu Guo from comment #5) > And the new version: > https://gcc.gnu.org/pipermail/gcc-patches/2024-August/66.html Sorry, -save-temps is still there. As Kewen's comments: https://gcc.gnu.org/

[Bug tree-optimization/116166] [13/14 Regression] risc-v (last) insn-emit-nn.c build takes hours

2024-08-25 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #30 from Aldy Hernandez --- (In reply to Richard Biener from comment #15) > We're also doing a lot of redundant stmt simplifications by likely > quadratically > exploring jump threading paths. And each hybrid_jt_simplifier::simplif

[Bug target/55212] [SH] Switch to LRA

2024-08-25 Thread kkojima at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #199 from Kazumoto Kojima --- Created attachment 59000 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59000&action=edit a patch for an experiment I added explicit register clobbers after all s-function calls as an experiment, a