[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2019-01-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #17 from Jakub Jelinek --- Author: jakub Date: Fri Jan 18 10:07:27 2019 New Revision: 268067 URL: https://gcc.gnu.org/viewcvs?rev=268067&root=gcc&view=rev Log: PR tree-optimization/86214 * tree-inline.h (struct copy_b

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2019-01-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #16 from Jakub Jelinek --- Created attachment 45449 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45449&action=edit gcc9-pr86214.patch Untested patch. Not 100% sure if there must be just one landing pad, will see during boots

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2019-01-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #15 from Jakub Jelinek --- Ah, the #c13 testcase shows the issue, but in the early inliner, not in IPA inliner like is triggered on the #c7 testcase. This modified testcase triggers it in the IPA inliner: typedef __SIZE_TYPE__ size_t;

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2019-01-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #14 from Jakub Jelinek --- (In reply to Jakub Jelinek from comment #11) > The workaround for MySQL, at least for -O2, would be to move logger:msg > definition out from the class, so it is not inline, then at least gcc trunk > doesn't

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2019-01-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #13 from Jakub Jelinek --- Short testcase that shows what's going on on the #c7 testcase: typedef __SIZE_TYPE__ size_t; struct A { A (); ~A (); int a; void qux (const char *); }; int bar (char *); static inline __attribute__((always_

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2019-01-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #12 from Jakub Jelinek --- Author: jakub Date: Thu Jan 17 08:05:12 2019 New Revision: 268009 URL: https://gcc.gnu.org/viewcvs?rev=268009&root=gcc&view=rev Log: PR tree-optimization/86214 * cfgexpand.c (add_stack_var_c

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2019-01-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #11

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-12-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 Richard Biener changed: What|Removed |Added Priority|P3 |P2 CC|

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-07-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 Jakub Jelinek changed: What|Removed |Added Target Milestone|8.2 |8.3 --- Comment #9 from Jakub Jelinek -

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-07-04 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 Alexander Monakov changed: What|Removed |Added Status|WAITING |NEW --- Comment #8 from Alexander Mo

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-07-04 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #7 from Steinar H. Gunderson --- Created attachment 44351 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44351&action=edit Unreduced test case There; unreduced, from public MySQL. This is preprocessed with GCC 7, and compiles b

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-07-04 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #6 from Steinar H. Gunderson --- I wouldn't be surprised if everything is really over-reduced, and that GCC 7 just happens not to hit this by luck. I'll be making a checkout of the public git repository and try to reproduce there, so

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-07-04 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #5 from Alexander Monakov --- Sorry, this still seems over-reduced: the 'cmp' variable is uninitialized, and gcc-7 completely optimizes out the block with large stack usage guarded by 'cmp == 0' test, so gcc-7 vs gcc-8 is not directly

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-07-04 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #4 from Steinar H. Gunderson --- New test case added. It's quite a bit larger than the old one, but has no -Wreturn-type warning.

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-07-04 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 Steinar H. Gunderson changed: What|Removed |Added Attachment #44296|0 |1 is obsolete|

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-07-04 Thread sgunderson at bigfoot dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 --- Comment #2 from sgunderson at bigfoot dot com --- OK, starting a reduce that also checks for no -Wreturn-type warnings.

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-06-21 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Target Milestone|

[Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage

2018-06-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86214 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Target Milestone|