[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-06 Thread hkzhang455 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #13 from Hanke Zhang --- (In reply to Andrew Pinski from comment #12) > (In reply to Hanke Zhang from comment #11) > > But I have never seen this '_FORTIFY_SOURCE' before. So I'm a confused as > > well. And when I try gcc@11.4 built

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #12 from Andrew Pinski --- (In reply to Hanke Zhang from comment #11) > But I have never seen this '_FORTIFY_SOURCE' before. So I'm a confused as > well. And when I try gcc@11.4 built in the default ubuntu 22.04, it's the > same. So

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-05 Thread hkzhang455 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #11 from Hanke Zhang --- (In reply to Andrew Pinski from comment #10) > The difference between the 2 is the costing of the __printf_chk/puts: > _FORTIFY_SOURCE case: > freq:0.20 size: 3 time:2.43 __printf_chk (1, "Object code

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #10 from Andrew Pinski --- The difference between the 2 is the costing of the __printf_chk/puts: _FORTIFY_SOURCE case: freq:0.20 size: 3 time:2.43 __printf_chk (1, "Object code generation not active! Forgot to call

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 Andrew Pinski changed: What|Removed |Added Attachment #56046|0 |1 is obsolete|

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-04 Thread hkzhang455 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #8 from Hanke Zhang --- (In reply to Andrew Pinski from comment #5) > Add -save-temps and attach the resulting .i (or .ii) file. Thank you. I have attached it.

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-04 Thread hkzhang455 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #7 from Hanke Zhang --- Created attachment 56046 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56046=edit preprocessed source

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > Add -save-temps and attach the resulting .i (or .ii) file. This is documented at https://gcc.gnu.org/bugs/ under the section of `What we need `.

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #5 from Andrew Pinski --- Add -save-temps and attach the resulting .i (or .ii) file.

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-03 Thread hkzhang455 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #4 from Hanke Zhang --- (In reply to Andrew Pinski from comment #3) > Oh I see the compiler you are testing with defaults with fortify turned on. > That is the difference. > Maybe also with pie turned on by default tlalso. > > Can

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #3 from Andrew Pinski --- Oh I see the compiler you are testing with defaults with fortify turned on. That is the difference. Maybe also with pie turned on by default tlalso. Can you provide the full output of gcc -v and also the

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-03 Thread hkzhang455 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #2 from Hanke Zhang --- (In reply to Andrew Pinski from comment #1) > I cannot reproduce this on the trunk (or even in 12.3.0): > > Split point at BB 3 > header time: 1393.311190 header size: 33 > split time: 2.226400 split

[Bug ipa/111672] Inappropriate function splitting during pass_split_functions

2023-10-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672 --- Comment #1 from Andrew Pinski --- I cannot reproduce this on the trunk (or even in 12.3.0): Split point at BB 3 header time: 1393.311190 header size: 33 split time: 2.226400 split size: 2 bbs: 3 SSA names to pass: Refused: split