[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 Sam James changed: What|Removed |Added CC||eschwartz93 at gmail dot com,

[Bug c++/19501] Redundant "template" keyword rejected

2024-11-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19501 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug tree-optimization/85605] Potentially missing optimization under x64 and ARM: seemingly unnecessary branch in codegen

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

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #8 from Sergey Fedorov --- (In reply to Eli Schwartz from comment #5) > Not a meson bug, but gegl should probably test whether -ObjC is accepted as > a valid flag before unconditionally adding it to their build. I have opened an iss

[Bug c++/117479] ICE on x86_64-linux-gnu: in cxx_eval_constant_expression, at cp/constexpr.cc:8448 with vector_size

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117479 Andrew Pinski changed: What|Removed |Added Keywords|ice-on-invalid-code |ice-on-valid-code --- Comment #2 from A

[Bug c++/117479] ICE on x86_64-linux-gnu: in cxx_eval_constant_expression, at cp/constexpr.cc:8448 with vector_size

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

[Bug target/117477] Register allocator chooses a slot location instead a new callee saved register and not taking inot account pair allocation

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

[Bug tree-optimization/85605] Potentially missing optimization under x64 and ARM: seemingly unnecessary branch in codegen

2024-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85605 --- Comment #9 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:2a2e6784074e1f7b679bc09b1a66982bf60645a5 commit r15-5024-g2a2e6784074e1f7b679bc09b1a66982bf60645a5 Author: Andrew Pinski Date: Mon

[Bug tree-optimization/117414] missing predicated VN due to combining if statements

2024-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117414 --- Comment #3 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:578002846620ed04192a4832e9f20b5c32816153 commit r15-5021-g578002846620ed04192a4832e9f20b5c32816153 Author: Andrew Pinski Date: Fr

[Bug tree-optimization/117414] missing predicated VN due to combining if statements

2024-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117414 --- Comment #4 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:add4bb94459d6cecae11de279b49f9c1acb14394 commit r15-5022-gadd4bb94459d6cecae11de279b49f9c1acb14394 Author: Andrew Pinski Date: Fr

[Bug tree-optimization/117414] missing predicated VN due to combining if statements

2024-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117414 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:684e5ae90b64c3481f8a5cb7b9517daf79c78ab4 commit r15-5023-g684e5ae90b64c3481f8a5cb7b9517daf79c78ab4 Author: Andrew Pinski Date: Fr

[Bug rtl-optimization/117476] [15 regression] bad generated code at -O1 since r15-4991-g69bd93c167fefb

2024-11-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 --- Comment #12 from David Binderman --- (In reply to Alexey Merzlyakov from comment #11) > To verify the "outside mode N" part, we need to change > > & ~GET_MODE_MASK (mode)) == 0) > > to the: > > & ~GET_MODE_MASK(GET_MODE (op))) =

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #13 from Sergey Fedorov --- (In reply to Jakub Jelinek from comment #10) > -xobjective-c should work fine with both gcc and clang and is much better > designed, it isn't about two almost dead languages, but allows specifying > any la

[Bug target/117477] Register allocator chooses a slot location instead a new callee saved register and not taking inot account pair allocation

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117477 --- Comment #2 from Andrew Pinski --- Here is a testcase which shows that GCC spilling but spilling is better than using a callee saved register by removing extra moves: ``` int test (int x), test2 (int x); int test3(int,int,int); int foo (int

[Bug rtl-optimization/117476] [15 regression] bad generated code at -O1 since r15-4991-g69bd93c167fefb

2024-11-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org --- Comment #1

[Bug c++/117256] When initializing an object, padding bits are not set to zero

2024-11-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117256 --- Comment #3 from Jakub Jelinek --- Created attachment 59554 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59554&action=edit gcc15-pr117256.patch Untested fix on top of the above mentioned patch. This is just the start, I think for ful

[Bug target/117447] ICE in BPF GCC-trunk segmentation fault

2024-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117447 --- Comment #4 from GCC Commits --- The master branch has been updated by David Faust : https://gcc.gnu.org/g:0e1382034246a594f1da8dbaee97c4a06743f31a commit r15-5026-g0e1382034246a594f1da8dbaee97c4a06743f31a Author: David Faust Date: Thu N

[Bug tree-optimization/117482] [12/13/14/15 Regression] Bogus -Wstringop-overflow warning in intrusive list implementation

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

[Bug rtl-optimization/117476] [15 regression] bad generated code at -O1 since r15-4991-g69bd93c167fefb

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Andrew Pinski changed: What|Removed |Added Priority|P3 |P1 Keywords|

[Bug libstdc++/115285] [12/13/14 Regression] std::unordered_set can have duplicate value

2024-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115285 --- Comment #17 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:90c578654a2c96032aa6621449859243df5f641b commit r15-5032-g90c578654a2c96032aa6621449859243df5f641b Author: Jonathan Wakely Date

[Bug tree-optimization/117484] New: [15 Regression] ICE: segfault during GIMPLE pass: vect

2024-11-07 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117484 Bug ID: 117484 Summary: [15 Regression] ICE: segfault during GIMPLE pass: vect Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug ada/117485] New: aspect "type_invariant" only allowed for private type or corresponding full view, but RM doesn't mention that

2024-11-07 Thread 00120260a at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117485 Bug ID: 117485 Summary: aspect "type_invariant" only allowed for private type or corresponding full view, but RM doesn't mention that Product: gcc Version: 14.2.

[Bug target/117483] New: [15 Regression] ICE: in merge, at config/riscv/riscv-vsetvl.cc:2106

2024-11-07 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117483 Bug ID: 117483 Summary: [15 Regression] ICE: in merge, at config/riscv/riscv-vsetvl.cc:2106 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug ada/117485] aspect "type_invariant" only allowed for private type or corresponding full view

2024-11-07 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117485 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/117484] [15 Regression] ICE: segfault during GIMPLE pass: vect

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

[Bug tree-optimization/117484] [15 Regression] ICE: segfault during GIMPLE pass: vect

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117484 --- Comment #1 from Andrew Pinski --- Created attachment 59557 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59557&action=edit testcase that also fails with -march=armv9-a on aarch64

[Bug tree-optimization/117486] New: [15 Regression] ICE: in vect_build_slp_tree_2, at tree-vect-slp.cc:2027

2024-11-07 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117486 Bug ID: 117486 Summary: [15 Regression] ICE: in vect_build_slp_tree_2, at tree-vect-slp.cc:2027 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/117486] [15 Regression] ICE: in vect_build_slp_tree_2, at tree-vect-slp.cc:2027

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117486 --- Comment #1 from Andrew Pinski --- Created attachment 59558 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59558&action=edit testcase that ICEs the same way on aarch64

[Bug tree-optimization/117486] [15 Regression] ICE: in vect_build_slp_tree_2, at tree-vect-slp.cc:2027

2024-11-07 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117486 --- Comment #3 from Patrick O'Neill --- (In reply to Andrew Pinski from comment #2) > I think you reduced the testcase case a little too much. Anyways confirmed, > see the attached testcase for one that fails on aarch64 with -march=armv9-a. Tha

[Bug tree-optimization/117484] [15 Regression] ICE: segfault during GIMPLE pass: vect

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117484 Andrew Pinski changed: What|Removed |Added Target|riscv*-*-* |riscv*-*-* aarch64*-*-* Ever confir

[Bug tree-optimization/117486] [15 Regression] ICE: in vect_build_slp_tree_2, at tree-vect-slp.cc:2027

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

[Bug target/117353] [15 regression] RISC-V: ICE when building libcrypt since r15-3228-g771256bcb9ddc4

2024-11-07 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353 --- Comment #7 from Vineet Gupta --- (In reply to Jeffrey A. Law from comment #6) > So my approach would be to note the insn number, then set a conditional > breakpoint in make_insn_raw (after it initializes INSN_UID in the new > insn). The co

[Bug target/117353] [15 regression] RISC-V: ICE when building libcrypt since r15-3228-g771256bcb9ddc4

2024-11-07 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353 --- Comment #8 from Vineet Gupta --- We could potentially use a scratch in splitter. (clobber (match_scratch:DI 3 "=&r"))]

[Bug ada/117485] aspect "type_invariant" only allowed for private type or corresponding full view

2024-11-07 Thread 00120260a at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117485 --- Comment #2 from Saada Mehdi <00120260a at gmail dot com> --- mm, ok, we're wrong, I remember we didn't find it, weird. In that case I'll take it up with ARG, because it doesn't make sense to stop public types from using this.

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread eschwartz93 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #5 from Eli Schwartz --- https://github.com/GNOME/gegl/blob/626c202550c4536c2e411821fb34e91d138c1548/meson.build#L246-L254 ``` if os_osx add_languages('objc') osx_ldflags = ['-Wl,-framework,Foundation', '-Wl,-framework,AppKit',

[Bug target/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 Iain Sandoe changed: What|Removed |Added Last reconfirmed||2024-11-07 Assignee|unassigned

[Bug c/117482] New: Bogus -Wstringop-overflow warning in intrusive list implementation

2024-11-07 Thread adam at adamrosenfield dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117482 Bug ID: 117482 Summary: Bogus -Wstringop-overflow warning in intrusive list implementation Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/117414] missing predicated VN due to combining if statements

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

[Bug fortran/117473] Issue with OpenMP workshare and -fsanitize=thread

2024-11-07 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117473 anlauf at gcc dot gnu.org changed: What|Removed |Added Attachment #59547|0 |1 is obsolete|

[Bug tree-optimization/117480] New: wrong code at -O1 and above on x86_64-linux-gnu

2024-11-07 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 20241107 (experimental) (GCC) [608] % [608] % gcctk -O0 small.c; ./a.out [609] % [609] % gcct

[Bug target/117353] [15 regression] RISC-V: ICE when building libcrypt since r15-3228-g771256bcb9ddc4

2024-11-07 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353 --- Comment #9 from Vineet Gupta --- Or the other option is to prevent these patterns from kicking in during reload by adjust the costs (there's a TODO there already) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 3ac

[Bug ada/117485] aspect "type_invariant" only allowed for private type or corresponding full view

2024-11-07 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117485 --- Comment #3 from Eric Botcazou --- > In that case I'll take it up with ARG, because it doesn't make sense to stop > public types from using this. You might want to read the AI that discussed it 15 years ago, that's clearly explained in there

[Bug rtl-optimization/117476] [15 regression] bad generated code at -O1 since r15-4991-g69bd93c167fefb

2024-11-07 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org --- Comm

[Bug target/117487] New: Power8 optimizations for math library aren't done in power9 or power10 (PR target/71977)

2024-11-07 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117487 Bug ID: 117487 Summary: Power8 optimizations for math library aren't done in power9 or power10 (PR target/71977) Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug bootstrap/117488] New: Building a gcc cross-compiler for hppa fails

2024-11-07 Thread bart.vanassche at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117488 Bug ID: 117488 Summary: Building a gcc cross-compiler for hppa fails Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: boo

[Bug bootstrap/117488] Building a gcc cross-compiler for hppa fails

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

[Bug c++/117475] C++20: Union object with atomic integer cannot be statically initialized

2024-11-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117475 --- Comment #15 from Jonathan Wakely --- (In reply to Andreas Schwab from comment #13) > > Note again the only reason clang 17 from opensuse works is because it is > > using GCC's libstdc++ from GCC 7 > > This is not true. It seems to be true

[Bug c/117476] [15 regression] bad generated code from -finline-small-functions

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #3 fr

[Bug tree-optimization/117467] [15 Regression] 521.wrf_r again explodes memory/compile-time wise

2024-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117467 --- Comment #7 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:7a07de2c60b3c513b6aef206e9b55b3ffefe8b39 commit r15-5008-g7a07de2c60b3c513b6aef206e9b55b3ffefe8b39 Author: Richard Biener Date:

[Bug rtl-optimization/117477] New: aarch64: Unnecessary stack spill generated around function call

2024-11-07 Thread dhruvc at nvidia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117477 Bug ID: 117477 Summary: aarch64: Unnecessary stack spill generated around function call Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/116578] vectorizer SLP transition issues / dependences

2024-11-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116578 --- Comment #3 from Richard Biener --- The linaro CI reports 184 regressions on aarch64: https://ci.linaro.org/job/tcwg_gcc_check--master-aarch64-precommit/8871/artifact/artifacts/artifacts.precommit/notify/mail-body.txt 4 regressions on arm: h

[Bug c++/117475] C++20: Union object with atomic integer cannot be statically initialized

2024-11-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117475 --- Comment #14 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #2) > This was p0883r2 : > https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0883r2.pdf > > Which was the change in C++20. Which was implemented in r10-59

[Bug c/117476] [15 regression] bad generated code from -finline-small-functions

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Sam James changed: What|Removed |Added Target Milestone|--- |15.0 Keywords|

[Bug c/117476] [15 regression] bad generated code from -finline-small-functions

2024-11-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 --- Comment #2 from David Binderman --- Partially reduced code: void printf (); void platform_main_end(int crc) { printf ("checksum = %X\n", crc); } int crc32_tab[6]; int crc32_context = 4294967295; void crc32_byte (char b) { crc32_context

[Bug c++/117294] Concept swallow diagnostics when they're defined in terms of type traits

2024-11-07 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117294 Nathaniel Shead changed: What|Removed |Added CC||nshead at gcc dot gnu.org --- Comment

[Bug target/98189] [SH] ICE and segmentation fault with -O2 and without -fno-guess-branch-probability when building gdal

2024-11-07 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98189 --- Comment #6 from John Paul Adrian Glaubitz --- This is still reproducible with GCC 14: (unstable-sh4-sbuild)glaubitz@adams:~/gdal/gdal-3.9.3+dfsg/build-py3.12/frmts/pcraster$ /usr/bin/g++-14 -DDONT_DEPRECATE_SPRINTF -DGDAL_COMPILATION -DUSE_I

[Bug c++/117479] ICE on x86_64-linux-gnu: in cxx_eval_constant_expression, at cp/constexpr.cc:8448 with vector_size

2024-11-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117479 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #7

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread eschwartz93 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #12 from Eli Schwartz --- (In reply to Sergey Fedorov from comment #11) > Do you mean that even with the correct flag passed, the code won’t compile > with gcc14? While I have gcc15 locally (not updating it weekly though), few > peop

[Bug c++/115560] ICE: in type_dependent_expression_p, at cp/pt.cc:28576

2024-11-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115560 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/117475] C++20: Union object with atomic integer cannot be statically initialized

2024-11-07 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117475 --- Comment #17 from Sebastian Huber --- (In reply to Jonathan Wakely from comment #15) > (In reply to Andreas Schwab from comment #13) > > > Note again the only reason clang 17 from opensuse works is because it is > > > using GCC's libstdc++ fr

[Bug target/117468] [12/13/14/15 Regression] arm thumb1 high reg restoration trashes register reserved with -ffixed-reg

2024-11-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117468 Richard Biener changed: What|Removed |Added Known to fail||10.1.0 Known to work|

[Bug target/117366] [12/13/14/15 regression] arm thumb1 epilogue size optimizer violates -ffixed

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117366 Sam James changed: What|Removed |Added Known to work||4.5.4 Target Milestone|---

[Bug c/117476] New: bad generated code from -finline-small-functions

2024-11-07 Thread dcb314 at hotmail dot com via Gcc-bugs
cc -v 2>&1 | grep exp gcc version 15.0.0 20241107 (experimental) (4473cf8409f4db19) foundBugs $ ~/gcc/results/bin/gcc -g -O1 bug1062.c foundBugs $ ./a.out checksum = 6361D861 foundBugs $ ~/gcc/results/bin/gcc -g -O1 -finline-small-functions bug1062.c foundBugs $ ./a.out Segmentation faul

[Bug target/117481] New: ICE: maximum number of generated reload insns per insn achieved (90) with -O -mrvv-vector-bits=zvl -march=rv64gcv -mabi=lp64e

2024-11-07 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117481 Bug ID: 117481 Summary: ICE: maximum number of generated reload insns per insn achieved (90) with -O -mrvv-vector-bits=zvl -march=rv64gcv -mabi=lp64e Product: gcc

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #11 from Sergey Fedorov --- (In reply to Eli Schwartz from comment #9) > It's not a bad idea to "fix" it from both ends. > > Projects such as gegl cannot compile on macOS using GCC 13 or 14, and that's > not going to change. They ca

[Bug c++/78620] C++11, Padding bytes not zero-intialized when POD is initialized with compiler generated default constructor

2024-11-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78620 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug c++/117462] internal compiler error: comptypes(tree_node*, tree_node*, int)

2024-11-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117462 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug rtl-optimization/117476] [15 regression] bad generated code from -finline-small-functions since r15-4991-g69bd93c167fefb

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Sam James changed: What|Removed |Added Known to fail||15.0 Ever confirmed|0

[Bug target/98189] [SH] ICE and segmentation fault with -O2 and without -fno-guess-branch-probability when building gdal

2024-11-07 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98189 --- Comment #7 from John Paul Adrian Glaubitz --- Passing -fno-guess-branch-probability still helps, even with the LRA-enabled GCC 15.

[Bug target/116725] operand size mismatch for vfpclasssd and vfpclassss when using -masm=intel for AVX512 builtins

2024-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116725 --- Comment #11 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:0dadf022de293c202ab21b0aeed7c9a4511f57d5 commit r15-5011-g0dadf022de293c202ab21b0aeed7c9a4511f57d5 Author: Jakub Jelinek Date:

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread eschwartz93 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #9 from Eli Schwartz --- It's not a bad idea to "fix" it from both ends. Projects such as gegl cannot compile on macOS using GCC 13 or 14, and that's not going to change. They can't really know what versions their users have install

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #10 from Jakub Jelinek --- -xobjective-c should work fine with both gcc and clang and is much better designed, it isn't about two almost dead languages, but allows specifying any language the compiler supports.

[Bug rtl-optimization/117476] [15 regression] bad generated code from -finline-small-functions since r15-4991-g69bd93c167fefb

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Sam James changed: What|Removed |Added Component|c |rtl-optimization Summary|[15 reg

[Bug c++/117475] C++20: Union object with atomic integer cannot be statically initialized

2024-11-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117475 --- Comment #16 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #4) > (In reply to Andrew Pinski from comment #3) > > testcase which works with clang but fails with GCC: > > But that was fixed in GCC 13. Let me see if I can fin

[Bug c++/117475] C++20: Union object with atomic integer cannot be statically initialized

2024-11-07 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117475 --- Comment #13 from Andreas Schwab --- > Note again the only reason clang 17 from opensuse works is because it is > using GCC's libstdc++ from GCC 7 This is not true. $ clang -Wall -Wextra -std=c++20 -pedantic -S atomic.cc -v clang version 17

[Bug rtl-optimization/117476] [15 regression] bad generated code from -finline-small-functions since r15-4991-g69bd93c167fefb

2024-11-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 --- Comment #5 from David Binderman --- (In reply to Sam James from comment #3) > Please reduce with something like: -Werror=uninitialized > -Werror=aggressive-loop-optimizations -Werror=sequence-point. Thanks. Second try: void printf (); voi

[Bug c++/117479] New: ICE on x86_64-linux-gnu: in cxx_eval_constant_expression, at cp/constexpr.cc:8448 with vector_size

2024-11-07 Thread iamanonymous.cs at gmail dot com via Gcc-bugs
--disable-bootstrap --enable-checking=yes --prefix=/home/software/gcc-trunk --enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib --enable-coverage Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 20241107 (experimental) (GCC

[Bug objc/117478] New: -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 Bug ID: 117478 Summary: -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast' Product: gcc Version: 14.2.0 Status: UNC

[Bug rtl-optimization/117476] [15 regression] bad generated code from -finline-small-functions since r15-4991-g69bd93c167fefb

2024-11-07 Thread alexey.merzlyakov at samsung dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 --- Comment #7 from Alexey Merzlyakov --- Thank you for the issue simplification the repro-case. Confirming: the problem exists on trunk since r15-4991-g69bd93c167fefb. Working on it.

[Bug c/117065] [15 regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_padding_at_level_p, at gimple-fold.cc:4820

2024-11-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117065 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org K

[Bug rtl-optimization/117476] [15 regression] bad generated code from -finline-small-functions since r15-4991-g69bd93c167fefb

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Sam James changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |alexey.merzlyakov at samsung dot c

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #4 from Iain Sandoe --- -ObjC is not exactly clang-specific - AFAIR it was supported by Apple gcc-4.x as well, Perhaps we can support it as a driver flag (which is used as shorthand for -x objective-c) I'm short of time at the mome

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #1 from Andrew Pinski --- > AFAICT, this flag is redundant with GCC No the correct flag is -xobjc

[Bug rtl-optimization/117477] aarch64: Unnecessary stack spill generated around function call

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117477 --- Comment #1 from Andrew Pinski --- Both are the same. Gcc choices a stack location rather than a calee save register which is also saved/restored from the stackq. The cost of knowing that using another callee saved register is not known to

[Bug rtl-optimization/117476] [15 regression] bad generated code from -finline-small-functions since r15-4991-g69bd93c167fefb

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Sam James changed: What|Removed |Added CC||zhendong.su at inf dot ethz.ch --- Comment

[Bug tree-optimization/117480] wrong code at -O1 and above on x86_64-linux-gnu

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117480 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/117476] [15 regression] bad generated code from -finline-small-functions since r15-4991-g69bd93c167fefb

2024-11-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 --- Comment #10 from Sam James --- The dupe PR117480 has a nicer testcase.

[Bug objc/117478] -ObjC is not accepted: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

2024-11-07 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117478 --- Comment #6 from Iain Sandoe --- fine with fixing it upstream - but also OK with trying to be compatible (esp. with facilities that were present for ≈ 20 years, if those are not to intrusive to arrange).

[Bug rtl-optimization/117476] [15 regression] bad generated code at -O1 since r15-4991-g69bd93c167fefb

2024-11-07 Thread alexey.merzlyakov at samsung dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 --- Comment #11 from Alexey Merzlyakov --- Analysis shown that the problem seem is related to incorrect check in the optimization, introduced by the aforementioned patch: (zero_extend:M (subreg:N (not:M (X:M -> (xor:M (X:M, mask)) In

[Bug tree-optimization/117467] [15 Regression] 521.wrf_r again explodes memory/compile-time wise

2024-11-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117467 --- Comment #1 from Richard Biener --- Samples: 2M of event 'cycles:Pu', Event count (approx.): 2183019518772 Overhead Samples Command Shared Object Symbol 29.34%627170 f951 f951

[Bug tree-optimization/117467] [15 Regression] 521.wrf_r again explodes memory/compile-time wise

2024-11-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117467 Richard Biener changed: What|Removed |Added CC||law at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/117467] [15 Regression] 521.wrf_r again explodes memory/compile-time wise

2024-11-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117467 --- Comment #3 from Richard Biener --- (In reply to Richard Biener from comment #2) > - 32.11% (anonymous namespace)::pass_ext_dce::execute(function*) > ▒ > - ext_dce_execute()

[Bug libstdc++/108645] Change in behavior, std::accumulate doesn't always work as expected in C++20 builds

2024-11-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108645 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/117467] [15 Regression] 521.wrf_r again explodes memory/compile-time wise

2024-11-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117467 Richard Biener changed: What|Removed |Added CC||amacleod at redhat dot com --- Comment

[Bug tree-optimization/116578] vectorizer SLP transition issues / dependences

2024-11-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116578 --- Comment #2 from Richard Biener --- On x86-64, apart from PR116973, there is only FAIL: gcc.dg/vect/vect-early-break_20.c scan-tree-dump vect "LOOP VECTORIZED" remaining with --param vect-force-slp=1

[Bug libstdc++/104222] std::basic_string::resize_and_overwrite passes an unexpected value to user's callable

2024-11-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104222 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/117467] [15 Regression] 521.wrf_r again explodes memory/compile-time wise

2024-11-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117467 Richard Biener changed: What|Removed |Added Last reconfirmed||2024-11-07 Priority|P3

[Bug tree-optimization/117467] [15 Regression] 521.wrf_r again explodes memory/compile-time wise

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117467 --- Comment #6 from Andrew Pinski --- (In reply to Richard Biener from comment #5) > So confirmed the 25GB memory use is ext-dce, with -fno-ext-dce memory use is > donw to 3GB. The time report then shows VRP as offender: > > tree VRP

[Bug c/117492] ICE: in decompose, at wide-int.h:1049 with __builtin_stdc_rotate_left/right()

2024-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117492 --- Comment #2 from Andrew Pinski --- (In reply to Sam James from comment #1) > I don't think we have any folding for patterns into these yet so can't make > it a regression. We do fold sometimes into LROTATE_EXPR and RROTATE_EXPR but this is a

  1   2   >