[Bug target/118539] Unsorted -march suggestions

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

[Bug target/117688] [15 Regression] RISC-V: Wrong code for .SAT_SUB

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117688 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-01-17 Status|RESOLVED

[Bug middle-end/118443] [Meta bug] Bugs triggered by and blocking more smtgcc testing

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118443 Bug 118443 depends on bug 117688, which changed state. Bug 117688 Summary: [15 Regression] RISC-V: Wrong code for .SAT_SUB https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117688 What|Removed |Added ---

[Bug tree-optimization/117424] [12/13/14/15 regression] Miscompile with different optimization flags since r12-4871-g502ffb1f389011

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117424 --- Comment #9 from Andrew Pinski --- Note `-O3 -fdisable-tree-vrp2 -fdisable-tree-dom3` works.

[Bug tree-optimization/117424] [12/13/14/15 regression] Miscompile with different optimization flags since r12-4871-g502ffb1f389011

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117424 --- Comment #8 from Andrew Pinski --- Created attachment 60199 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60199&action=edit Sligtly reduced

[Bug middle-end/118537] [14/15 Regression] (20241102 -> 20241128) wrong initialization of member variable on aarch64

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118537 --- Comment #13 from Andrew Pinski --- On the trunk for the cvise'd testcase I see: Req ={v} {CLOBBER(bob)}; MEM [(unsigned int *)&Req] = { 0, 0 }; Req.Result = 0; MEM [(long long unsigned int *)&Req + 376B] = { 0, 0 }; MEM [(long

[Bug middle-end/118537] [14/15 Regression] (20241102 -> 20241128) wrong initialization of member variable on aarch64

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118537 --- Comment #12 from Andrew Pinski --- A few things to test out first: Is it -fsanitize=address clean? Does -fno-lifetime-dse help? Does -fstack-reuse=none help? What about both together?

[Bug target/118538] throw not caught causing an seg fault rather than a `terminate called after throwing an instance of 'int'` message

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118538 --- Comment #8 from Andrew Pinski --- I think you should first report this to ubuntu since I can't reproduce it with all upstream sources of GCC, glibc.

[Bug middle-end/118537] [14/15 Regression] (20241102 -> 20241128) wrong initialization of member variable on aarch64

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118537 --- Comment #11 from Andrew Pinski --- >These may be related (do q31 and v31 overlap?) Q31 and V31 are the same register just different views into it. That is q31 is the full 128bit view while v31.4s is the 32bit x 4 element vector view of the

[Bug target/118538] throw not caught causing an seg fault rather than a `terminate called after throwing an instance of 'int'` message

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118538 --- Comment #6 from Andrew Pinski --- Note on the trunk I get: [apinski@xeond2 upstream-cross-aarch64]$ QEMU_LD_PREFIX=./install/aarch64-linux-gnu/sysroot/ ./install-qemu/bin/qemu-aarch64 a.out terminate called after throwing an instance of 'int

[Bug target/118538] throw not caught causing an seg fault rather than a `terminate called after throwing an instance of 'int'` message

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118538 Andrew Pinski changed: What|Removed |Added Summary|Miscompilation at -O0 on|throw not caught causing an

[Bug target/118538] Miscompilation at -O0 on aarch64

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118538 --- Comment #3 from Andrew Pinski --- This might be an ubuntu specific issue because this is the first time we have a report about aarch64 seg faulting after a throw that was not caught.

[Bug target/118538] Miscompilation at -O0 on aarch64

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118538 --- Comment #2 from Andrew Pinski --- Does it matter if file exists or is this testing without file existing?

[Bug target/118538] Miscompilation at -O0 on aarch64

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118538 Andrew Pinski changed: What|Removed |Added Target||aarch64 Summary|Miscompilati

[Bug middle-end/118537] [14 Regression; 20241102 -> 20241128] wrong initialization of member variable on Graviton [related to tree-slp-vectorize]

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118537 Andrew Pinski changed: What|Removed |Added Status|WAITING |UNCONFIRMED Keywords|needs-so

[Bug middle-end/118537] [14 Regression; 20241102 -> 20241128] wrong initialization of member variable on Graviton [related to tree-slp-vectorize]

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118537 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0

[Bug c++/118537] [14 Regression; 20241102 -> 20241128] wrong initialization of member variable on Graviton [related to tree-slp-vectorize]

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118537 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/118533] [15 regression] bfloat16_scalar_*.c failures since r15-1619-g3b9b8d6cfdf593

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118533 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Target|

[Bug rtl-optimization/118502] Add shrink wrapping testcase for vector::push_back

2025-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118502 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug c++/118526] infinite compile time

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118526 --- Comment #1 from Andrew Pinski --- Seems like it is stuck testing any_template_arguments_need_structural_equality_p #43 0x017f72aa in walk_tree_without_duplicates_1 (tp=tp@entry=0x7fffbca8, func=func@entry=0xccbe00 , data=data@e

[Bug tree-optimization/118483] [12/13/14/15 Regression] Missed optimization due to cast being used more than once

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118483 Andrew Pinski changed: What|Removed |Added Keywords||patch URL|

[Bug c++/118525] [14/15 Regression] ICE after error dealing consteval

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118525 Andrew Pinski changed: What|Removed |Added Keywords||patch URL|

[Bug tree-optimization/118521] [15 regression] std::vector Wstringop-overflow false positive

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118521 Andrew Pinski changed: What|Removed |Added Status|WAITING |UNCONFIRMED Ever confirmed|1

[Bug c++/118509] [14/15 regression] Front-end produced uninitialized memory reference when compiling Nektar since r15-4595-gb25d3201b6338d

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 --- Comment #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #9) > Created attachment 60188 [details] > Runtime testcase I should note this fails only with >= C++17.

[Bug c++/118509] [14/15 regression] Front-end produced uninitialized memory reference when compiling Nektar since r15-4595-gb25d3201b6338d

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 Andrew Pinski changed: What|Removed |Added Attachment #60182|0 |1 is obsolete|

[Bug c++/118509] [14/15 regression] Front-end produced uninitialized memory reference when compiling Nektar since r15-4595-gb25d3201b6338d

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/118509] [14/15 regression] Front-end produced uninitialized memory reference when compiling Nektar since r15-4595-gb25d3201b6338d

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 Andrew Pinski changed: What|Removed |Added Attachment #60186|0 |1 is obsolete|

[Bug c++/118509] [14/15 regression] Front-end produced uninitialized memory reference when compiling Nektar since r15-4595-gb25d3201b6338d

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 Andrew Pinski changed: What|Removed |Added Attachment #60185|0 |1 is obsolete|

[Bug c++/118509] [14/15 regression] Front-end produced uninitialized memory reference when compiling Nektar since r15-4595-gb25d3201b6338d

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 Andrew Pinski changed: What|Removed |Added Attachment #60184|0 |1 is obsolete|

[Bug c++/118509] [14/15 regression] Front-end produced uninitialized memory reference when compiling Nektar since r15-4595-gb25d3201b6338d

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 --- Comment #4 from Andrew Pinski --- Created attachment 60184 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60184&action=edit Starting of removal of templates

[Bug c++/118525] [14/15 Regression] ICE after error dealing consteval

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118525 --- Comment #2 from Andrew Pinski --- Created attachment 60183 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60183&action=edit patch which I am testing

[Bug c++/118525] [14/15 Regression] ICE after error dealing consteval

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

[Bug c++/118525] New: [14/15 Regression] ICE after error dealing consteval

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118525 Bug ID: 118525 Summary: [14/15 Regression] ICE after error dealing consteval Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: error-recovery, ice-checking, ice-on-invalid-

[Bug c++/118515] Incorrect error message: after undeclared error message

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118515 --- Comment #5 from Andrew Pinski --- Or maybe . I am not sure what is better here.

[Bug c++/118515] Incorrect error message: after undeclared error message

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118515 --- Comment #4 from Andrew Pinski --- Maybe just and remove prefix.

[Bug c++/118515] Incorrect error message: after undeclared error message

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118515 --- Comment #3 from Andrew Pinski --- I wonder if it should just be undeclaredtypeerror instead so it is obvious what it was. But then again it might not be an undeclared type causing the error.

[Bug c++/118515] Incorrect error message: after undeclared error message

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118515 Andrew Pinski changed: What|Removed |Added Summary|[15] Incorrect error|Incorrect error message:

[Bug c++/118524] [15 Regression] Wrong assembler for string view literals with embedded null characters on ARM64 gcc trunk

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118524 --- Comment #6 from Andrew Pinski --- Filed https://github.com/compiler-explorer/compiler-explorer/issues/7280 for the filtering issue.

[Bug c++/118524] [15 Regression] Wrong assembler for string view literals with embedded null characters on ARM64 gcc trunk

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118524 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > godbolt is filtering too much. That is it is filtering out the .base64 directive.

[Bug c++/118524] [15 Regression] Wrong assembler for string view literals with embedded null characters on ARM64 gcc trunk

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

[Bug c++/118524] [15 Regression] Wrong assembler for string view literals with embedded null characters on ARM64 gcc trunk

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118524 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection, wrong-code

[Bug tree-optimization/118523] [15 regression] std::vector C++20 Wuninitialized false positive at -O2

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118523 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/118522] ICE: 'verify_gimple' failed: mismatching comparison operand types with _BitInt(32) cast to double and compared

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118522 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 See Also|

[Bug tree-optimization/118521] [15 regression] std::vector Wstringop-overflow false positive

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118521 --- Comment #2 from Andrew Pinski --- The deconstructor is not inlined into main.

[Bug tree-optimization/118521] [15 regression] std::vector Wstringop-overflow false positive

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118521 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-01-16 Ever confirmed|0

[Bug target/118520] compiles with clang on openmp target, but gcc fails to compile with unresolved symbol __cxa_throw_bad_array_new_length

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118520 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug target/101544] [OpenMP][AMDGCN][nvptx] C++ offloading: unresolved _Znwm = "operator new(unsigned long)"

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101544 Andrew Pinski changed: What|Removed |Added CC||schulz.benjamin@googlemail.

[Bug target/118518] gcc 14.2.1 nvptx cross compiler complains about alias definitions in a struct with two constructors that are not aliases

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118518 --- Comment #5 from Andrew Pinski --- You might need to pass -malias down to the offloading compiler . Nvptx alias support is disabled by default due not working with anything except functions and in this case it is used for functions.

[Bug preprocessor/118519] Escaped line breaks in the middle of a token

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118519 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/118516] [12/13/14/15 Regression] Misleading error message "call to non-'constexpr' function" when loop variable is not declared

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118516 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-01-16 Summary|Misleadin

[Bug ipa/117892] [15 Regression] ICE on valid code at -O1 and above on x86_64-linux-gnu: in single_succ_edge, at basic-block.h:332 since r15-5336-gcee7d080d5c2a5

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117892 Andrew Pinski changed: What|Removed |Added CC||mjires at gcc dot gnu.org --- Comment #

[Bug tree-optimization/118517] ICE in single_succ_edge, at basic-block.h:332 since r15-5336-gcee7d080d5c2a5

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

[Bug c++/118509] [14/15 regression] Front-end produced uninitialized memory reference when compiling Nektar

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 Andrew Pinski changed: What|Removed |Added Target Milestone|14.4|14.3

[Bug c++/118509] [14/15 regression] Front-end produced uninitialized memory reference when compiling Nektar

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 Andrew Pinski changed: What|Removed |Added Known to work||14.2.0 Summary|Front-end pro

[Bug c++/118509] Front-end produced uninitialized memory reference when compiling Nektar

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118509 Andrew Pinski changed: What|Removed |Added Priority|P3 |P1 Target Milestone|---

[Bug tree-optimization/118505] [15 regression] aarch64: 25% regression in TSVC s258 since r15-3436-gb2b20b277988ab

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118505 --- Comment #7 from Andrew Pinski --- I do have to wonder if splitting the path here helps because the condition (a[i] > 0.) Is predictable. I can't think it would be predictable but maybe on accident the predictor get it right 50% of the time

[Bug tree-optimization/118505] [15 regression] aarch64: 25% regression in TSVC s258 since r15-3436-gb2b20b277988ab

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118505 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/56547] missed opportunity for FMA with -ffast-math

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56547 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment #

[Bug tree-optimization/118506] Missing FMA for `(a + 1.0) * b`

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118506 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c++/44402] Doesn't allow friend declarations using a typedef for function type

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44402 Andrew Pinski changed: What|Removed |Added CC||rush102333 at gmail dot com --- Comment

[Bug c++/65608] [meta-bug] friend issues

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65608 Bug 65608 depends on bug 118507, which changed state. Bug 118507 Summary: Erroneous 'invalid use of qualified-name' for member function defined with 'typedef' in a friend declaration https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118507

[Bug c++/118507] Erroneous 'invalid use of qualified-name' for member function defined with 'typedef' in a friend declaration

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

[Bug tree-optimization/56547] missed opportunity for FMA with -ffast-math

2025-01-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56547 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug tree-optimization/118506] Missing FMA for `(a + 1.0) * b`

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118506 Andrew Pinski changed: What|Removed |Added Depends on||56547 --- Comment #1 from Andrew Pinski

[Bug tree-optimization/118505] [15 regression] aarch64: 25% regression in TSVC s258 since r15-3436-gb2b20b277988ab

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118505 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/118506] New: Missing FMA for `(a + 1.0) * b`

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118506 Bug ID: 118506 Summary: Missing FMA for `(a + 1.0) * b` Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Prio

[Bug tree-optimization/118505] [15 regression] aarch64: 25% regression in TSVC s258 since r15-3436-gb2b20b277988ab

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118505 --- Comment #3 from Andrew Pinski --- Note there is also a fma forming missing: _69 = s_64 + 1.0e+0; ... _71 = _69 * _70; which is: `(s_64 + 1.0) * _70` which can be rewritten as `s_64 * _70 + _70` That might alone get the performance

[Bug tree-optimization/118505] [15 regression] aarch64: 25% regression in TSVC s258 since r15-3436-gb2b20b277988ab

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118505 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org

[Bug tree-optimization/118503] [15 Regression] gcc-15.0.0_pre20250112 ICE with webkit-gtk-2.46.5-r600: JSBigInt.cpp:1424:6: internal compiler error: in exact_div, at poly-int.h:2160 1424 | bool JSBig

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118503 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > Created attachment 60169 [details] > Slightly reduced from the reduced testcase Any more manual inlining causes the ICE to go away. Because of the uninitialized

[Bug tree-optimization/118503] [15 Regression] gcc-15.0.0_pre20250112 ICE with webkit-gtk-2.46.5-r600: JSBigInt.cpp:1424:6: internal compiler error: in exact_div, at poly-int.h:2160 1424 | bool JSBig

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118503 --- Comment #5 from Andrew Pinski --- Created attachment 60169 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60169&action=edit Slightly reduced from the reduced testcase

[Bug tree-optimization/118503] [15 Regression] gcc-15.0.0_pre20250112 ICE with webkit-gtk-2.46.5-r600: JSBigInt.cpp:1424:6: internal compiler error: in exact_div, at poly-int.h:2160 1424 | bool JSBig

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118503 --- Comment #4 from Andrew Pinski --- Note this creduced testcase is full of uninitialized variables.

[Bug tree-optimization/118464] [15 Regression] gcc-15.0.0_pre20250112 ICE with opencv-4.10.0 using -O2/-ftree-loop-vectorize: memory_descriptor_ref.cpp:94:19: internal compiler error: in exact_div, at

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118464 --- Comment #11 from Andrew Pinski --- *** Bug 118503 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/118503] [15 Regression] gcc-15.0.0_pre20250112 ICE with webkit-gtk-2.46.5-r600: JSBigInt.cpp:1424:6: internal compiler error: in exact_div, at poly-int.h:2160 1424 | bool JSBig

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118503 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug tree-optimization/118483] [12/13/14/15 Regression] Missed optimization due to cast being used more than once

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118483 --- Comment #9 from Andrew Pinski --- Created attachment 60167 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60167&action=edit patch which I am testing for this

[Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 113026, which changed state. Bug 113026 Summary: Bogus -Wstringop-overflow warning on simple memcpy type loop https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113026 What|Removed |Added

[Bug tree-optimization/113026] Bogus -Wstringop-overflow warning on simple memcpy type loop

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113026 Andrew Pinski changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug tree-optimization/118492] Move retrieval of virtual table pointers out of the loop

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118492 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/67886] Incomplete optimization for virtual function call into freshly constructed object

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67886 --- Comment #4 from Andrew Pinski --- Note in this example the reason why GCC able to optimize this way (even without something like -fstrict-vtable-pointers) is because GCC is able to speculatively devirtualize the inner function call (that mean

[Bug tree-optimization/118492] Move retrieval of virtual table pointers out of the loop

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118492 Andrew Pinski changed: What|Removed |Added Keywords||alias --- Comment #1 from Andrew Pinski

[Bug tree-optimization/114277] [12/13/14/15 Regression] Missed optimization: x*(x||b) => x

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114277 --- Comment #9 from Andrew Pinski --- > But reviewing that hunk made me realize that we did have the right bits in > place to test for 0/1 values during expansion. So instead of recognizing the > multiplication as a conditional move, we could

[Bug rtl-optimization/118502] Add shrink wrapping testcase for vector::push_back

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118502 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-01-16 Status|UNCONFIRM

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

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19501 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug rtl-optimization/118502] New: Add shrink wrapping testcase for vector::push_back

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118502 Bug ID: 118502 Summary: Add shrink wrapping testcase for vector::push_back Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization, needs-

[Bug tree-optimization/111148] Missing boolean optimizations due to comparisons

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48 Andrew Pinski changed: What|Removed |Added Depends on||118483 --- Comment #3 from Andrew Pinsk

[Bug tree-optimization/118483] [12/13/14/15 Regression] Missed optimization due to cast being used more than once

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118483 Andrew Pinski changed: What|Removed |Added Known to fail||5.1.0 Known to work|

[Bug tree-optimization/102705] [12/13/14/15 Regression] Dead Code Elimination Regression at -O3 since r12-2637-g145bc41dae7c7bfa093d61e77346f98e6a595a0e

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102705 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|12.5

[Bug target/118501] [14/15 regression] aarch64: ICE in simplify_context::simplify_subreg

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118501 --- Comment #5 from Andrew Pinski --- >Note: the code originates from thrust, not from libstdc++! And the reason why it works with libstdc++s' complex definition is because libstdc++ uses _Complex for double types and not arrays or fields.

[Bug target/118501] [14/15 regression] aarch64: ICE in simplify_context::simplify_subreg

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118501 --- Comment #4 from Andrew Pinski --- xorsign didn't change But what did change was `struct s1` changed into a V2DF mode. and now a subreg of that causes issues. Maybe this needs to be force_subreg now ...

[Bug target/118501] [14/15 regression] aarch64: ICE in simplify_context::simplify_subreg

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118501 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/118501] [14/15 regression] aarch64: ICE in simplify_context::simplify_subreg

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118501 --- Comment #2 from Andrew Pinski --- Created attachment 60166 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60166&action=edit Reduced further

[Bug c++/118396] [15 regression] -O1+ leads to reading uninitialized data when virtual destructor is present since r15-6369-gfa99002538bc91

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118396 --- Comment #8 from Andrew Pinski --- Created attachment 60165 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60165&action=edit Fixed up removing hard coded size_t, use __SIZE_TYPE__ instead and removed __assert_failure Just some small ch

[Bug tree-optimization/102705] [12/13/14/15 Regression] Dead Code Elimination Regression at -O3 since r12-2637-g145bc41dae7c7bfa093d61e77346f98e6a595a0e

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102705 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug analyzer/118500] no diagnostics with strsep(3) and [[gnu::malloc(free)]] attribute

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118500 Andrew Pinski changed: What|Removed |Added Component|c |analyzer Assignee|unassigned

[Bug analyzer/118498] not diagnostic a leak with analyzer and malloc attribute with free filled in

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118498 --- Comment #5 from Andrew Pinski --- (In reply to Alejandro Colomar from comment #4) > > What about the leak? Is it not reported because main() is special? Or is > it a bug? Most likely a bug, I have not looked into how the leak detection s

[Bug analyzer/118498] not diagnostic a leak with analyzer and malloc attribute with free filled in

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118498 --- Comment #2 from Andrew Pinski --- (In reply to Sam James from comment #1) > Where's the deallocation? I think he is saying there is a missing leak detection here. -Wmismatched-dealloc does not come into play if there is no de-allocation (a

[Bug analyzer/118498] not diagnostic a leak with analyzer and malloc attribute with free filled in

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118498 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org

[Bug target/118497] [15 Regression] Worse code generated on i686-linux since r15-1619

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118497 --- Comment #2 from Andrew Pinski --- I wonder if the patch in r15-2810-g3c67a0fa1dd39a3378deb854a7fef0ff7fe38004 (which was reverted due to a bootstrap failure on aarch64) fixes this one too ..

[Bug c++/118491] [15 Regression] coroutines: ICE when co_awaiting l-value awaitable from range-based loop.

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118491 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 See Also|

[Bug tree-optimization/118483] Missed optimization due to cast being used more than once

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118483 --- Comment #7 from Andrew Pinski --- Here is a testcase which we miss currently because of the missing optional convert: ``` short d; int f(int a) { short b = a; int e = ~a; short c = e; return b == c; } ``` This is one missing for the

[Bug tree-optimization/118483] Missed optimization due to cast being used more than once

2025-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118483 --- Comment #6 from Andrew Pinski --- I am not sure we need the :S in the end. I noticed the other patterns that do `a OP ~a` have an optional convert assiocated with it: e.g.: ``` /* ~x | x -> -1 */ /* ~x ^ x -> -1 */ (for op (bit_ior bit_xor)

  1   2   3   4   5   6   7   8   9   10   >