[Bug tree-optimization/118220] [15 regression] Optimization of malloc/free Produces Undefined Behavior

2024-12-30 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118220 --- Comment #3 from Jonathan Gruber --- (In reply to Richard Biener from comment #2) > I think we discussed replacing if (!p) with if (size > N) with some special N > but disregarded it with a reason I don't exactly remember. > > Yes, the testc

[Bug c/118220] New: Optimization of malloc/free Produces Undefined Behavior

2024-12-27 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118220 Bug ID: 118220 Summary: Optimization of malloc/free Produces Undefined Behavior Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Prior

[Bug rtl-optimization/118115] New: Missed Optimization: Failure to Elide Branch When Copying Overlapping Union Members

2024-12-18 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118115 Bug ID: 118115 Summary: Missed Optimization: Failure to Elide Branch When Copying Overlapping Union Members Product: gcc Version: 14.2.1 Status: UNCONFIRMED Se

[Bug middle-end/118109] New: RISC-V: Empty Variadic Function Redundantly Pushes Argument Registers onto Stack

2024-12-18 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118109 Bug ID: 118109 Summary: RISC-V: Empty Variadic Function Redundantly Pushes Argument Registers onto Stack Product: gcc Version: 14.2.0 Status: UNCONFIRMED Sever

[Bug middle-end/118098] New: Missed Optimization of memcpy into Unconditional Branch

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118098 Bug ID: 118098 Summary: Missed Optimization of memcpy into Unconditional Branch Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Pri

[Bug middle-end/118094] Missed Optimization of memcpy-Like Loop

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118094 --- Comment #3 from Jonathan Gruber --- Created attachment 59899 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59899&action=edit Test case preprocessed for riscv64.

[Bug middle-end/118094] Missed Optimization of memcpy-Like Loop

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118094 --- Comment #2 from Jonathan Gruber --- Created attachment 59898 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59898&action=edit Test case preprocessed for aarch64.

[Bug middle-end/118094] Missed Optimization of memcpy-Like Loop

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118094 Jonathan Gruber changed: What|Removed |Added CC||jonathan.gruber.jg at gmail dot co

[Bug middle-end/118094] New: Missed Optimization of memcpy-Like Loop

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118094 Bug ID: 118094 Summary: Missed Optimization of memcpy-Like Loop Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle

[Bug middle-end/118092] Missed Optimization of Variadic Functions

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118092 --- Comment #9 from Jonathan Gruber --- (In reply to Andrew Pinski from comment #4) > The riscv with noap is a target specific issue. Should I file a new riscv-specific bug for that?

[Bug c/118092] Missed Optimization of Variadic Functions

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118092 --- Comment #7 from Jonathan Gruber --- (In reply to Jonathan Gruber from comment #5) > Sorry, was it me who changed the component category, or someone else? I think someone changed it to middle-end? I was not sure if I did so when I filed to b

[Bug c/118092] Missed Optimization of Variadic Functions

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118092 --- Comment #5 from Jonathan Gruber --- Sorry, was it me who changed the component category, or someone else?

[Bug c/118092] New: Missed Optimization of Variadic Functions

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118092 Bug ID: 118092 Summary: Missed Optimization of Variadic Functions Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c/118092] Missed Optimization of Variadic Functions

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118092 --- Comment #3 from Jonathan Gruber --- Created attachment 59896 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59896&action=edit Test case preprocessed for riscv64.

[Bug c/118092] Missed Optimization of Variadic Functions

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118092 --- Comment #2 from Jonathan Gruber --- Created attachment 59895 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59895&action=edit Test case preprocessed for aarch64.

[Bug c/118092] Missed Optimization of Variadic Functions

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118092 --- Comment #1 from Jonathan Gruber --- Created attachment 59894 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59894&action=edit Test case preprocessed for x86_64.

[Bug rtl-optimization/118091] New: Missed Optimization in Creating Medium-Sized Struct and Passing It as Parameter

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118091 Bug ID: 118091 Summary: Missed Optimization in Creating Medium-Sized Struct and Passing It as Parameter Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severi

[Bug rtl-optimization/118086] Missed Optimization: Redundant Copying of Large Struct Parameter onto Stack

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118086 --- Comment #1 from Jonathan Gruber --- Created attachment 59892 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59892&action=edit Minimal test case, medium-sized struct I also tested this with a medium-sized struct. I have attached the ne

[Bug rtl-optimization/118086] New: Missed Optimization: Redundant Copying of Large Struct Parameter onto Stack

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118086 Bug ID: 118086 Summary: Missed Optimization: Redundant Copying of Large Struct Parameter onto Stack Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity:

[Bug middle-end/118076] [12/13/14/15 Regression] extra memcpy for passing large arguments in some cases, introduces STLF fails

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118076 --- Comment #6 from Jonathan Gruber --- Created attachment 59888 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59888&action=edit Minimal test case, non-tail call.

[Bug middle-end/118076] [12/13/14/15 Regression] extra memcpy for passing large arguments in some cases, introduces STLF fails

2024-12-17 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118076 --- Comment #5 from Jonathan Gruber --- For completeness, I also checked for when the call to the struct-accepting function is not a tail call. This is just the same test case as before, but the return value of extern_func is bitwise negated to

[Bug rtl-optimization/118076] New: Missed Optimization: Inefficient Stack Usage in Creating and Passing Large Struct Argument

2024-12-16 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118076 Bug ID: 118076 Summary: Missed Optimization: Inefficient Stack Usage in Creating and Passing Large Struct Argument Product: gcc Version: 14.2.1 Status: UNCONFIRMED

[Bug ipa/117862] Missed Optimization: Failure to Inline Functions When Generating Position-Independent Code (PIC)

2024-11-30 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117862 --- Comment #3 from Jonathan Gruber --- (In reply to Andrew Pinski from comment #1) > https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Optimize-Options.html#index- > fsemantic-interposition > > This is by design. You need -fno-semantic-interpositi

[Bug ipa/117862] New: Missed Optimization: Failure to Inline Functions When Generating Position-Independent Code (PIC)

2024-11-30 Thread jonathan.gruber.jg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117862 Bug ID: 117862 Summary: Missed Optimization: Failure to Inline Functions When Generating Position-Independent Code (PIC) Product: gcc Version: 14.2.1 Status: UNCONFIRMED