[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-11 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-11 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #43 from uros at gcc dot gnu.org --- Author: uros Date: Sun Nov 11 17:44:43 2018 New Revision: 266015 URL: https://gcc.gnu.org/viewcvs?rev=266015=gcc=rev Log: Backport from mainline 2018-11-04 Uros Bizjak

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-11 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #42 from uros at gcc dot gnu.org --- Author: uros Date: Sun Nov 11 17:36:23 2018 New Revision: 266014 URL: https://gcc.gnu.org/viewcvs?rev=266014=gcc=rev Log: Backport from mainline 2018-11-04 Uros Bizjak

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-04 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #41 from uros at gcc dot gnu.org --- Author: uros Date: Sun Nov 4 19:22:50 2018 New Revision: 265776 URL: https://gcc.gnu.org/viewcvs?rev=265776=gcc=rev Log: PR middle-end/58372 * cfgexpand.c (pass_expand::execute):

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-01 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #40 from Uroš Bizjak --- (In reply to Terry Guo from comment #39) > (In reply to Uroš Bizjak from comment #38) > > (In reply to Terry Guo from comment #36) > > > > > OK. Do it right now. > > > > I think that latest attachment is

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-01 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #39 from Terry Guo --- (In reply to Uroš Bizjak from comment #38) > (In reply to Terry Guo from comment #36) > > > OK. Do it right now. > > I think that latest attachment is the one that should be tested. > Functionally it is the

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-01 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #38 from Uroš Bizjak --- (In reply to Terry Guo from comment #36) > OK. Do it right now. I think that latest attachment is the one that should be tested. Functionally it is the same, but avoids unnecessary variable updates before

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-01 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 Uroš Bizjak changed: What|Removed |Added Attachment #44928|0 |1 is obsolete|

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-01 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #36 from Terry Guo --- (In reply to Uroš Bizjak from comment #35) > > Actually, we can use crtl->stack_realign_processed to delay DRAP generation. > The condition in the patch should be changed to: > >

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-01 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #35 from Uroš Bizjak --- (In reply to Terry Guo from comment #31) > (In reply to Uroš Bizjak from comment #30) > > (In reply to Jakub Jelinek from comment #29) > > > > Let's ask Jakub about asan, if it is possible to move generation

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-11-01 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #34 from Terry Guo --- (In reply to David Grayson from comment #33) > Hello, Terry. I'd be happy to help. I hope you have access to a Linux > computer. I've actually spent a lot of time working on build scripts for >

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-31 Thread davidegrayson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #33 from David Grayson --- Hello, Terry. I'd be happy to help. I hope you have access to a Linux computer. I've actually spent a lot of time working on build scripts for cross-compilers running on Linux and here's what I have come

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-31 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #32 from Terry Guo --- (In reply to David Grayson from comment #27) > Thanks to everyone who is working on this. I can confirm that the patch in > comment #20 by Uroš Bizjak applies cleanly to GCC 7.3.0, and I successfully > used

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-31 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #31 from Terry Guo --- (In reply to Uroš Bizjak from comment #30) > (In reply to Jakub Jelinek from comment #29) > > > Let's ask Jakub about asan, if it is possible to move generation of the > > > call > > > after the function is

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-31 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #30 from Uroš Bizjak --- (In reply to Jakub Jelinek from comment #29) > > Let's ask Jakub about asan, if it is possible to move generation of the call > > after the function is already expanded to RTL. > > I'm afraid no. Hm... ...

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #29 from Jakub Jelinek --- (In reply to Uroš Bizjak from comment #28) > Let's ask Jakub about asan, if it is possible to move generation of the call > after the function is already expanded to RTL. I'm afraid no.

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-31 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 Uroš Bizjak changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #28

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-31 Thread davidegrayson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #27 from David Grayson --- Thanks to everyone who is working on this. I can confirm that the patch in comment #20 by Uroš Bizjak applies cleanly to GCC 7.3.0, and I successfully used the resulting toolchain targeting

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-31 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #26 from Terry Guo --- Hi Uroš: I think I found why your proposed patch causes problem in Comment 23. It is all about timing. The below code from patch is trying to set up DRAP reg in a rather early stage when the function is not

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-31 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #25 from Terry Guo --- Debugged the ICE further and found that below line in function ix86_get_drap_rtx is causing ICE: 12050 insn = emit_insn_before (seq, NEXT_INSN (entry_of_function ())); It is called when generating

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-30 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #24 from Terry Guo --- Created attachment 44934 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44934=edit case to reproduce problem related to sanitize

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-30 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #23 from Terry Guo --- Hi Uroš: With your fix, I identified two regressions so far: one is that we should run the case you provided with c++ standard newer than c++11. The 'noexcept' was introduced in c++14. Guess we need a

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-30 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #22 from xuepeng guo --- (In reply to Uroš Bizjak from comment #20) > Created attachment 44928 [details] > Proposed patch > > It turned out that functions, called directly through emit_library_call (as > the above testcase, which

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-30 Thread xuepeng.guo at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #21 from xuepeng guo --- Thanks for fix. I am glad to help to test it out.

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-30 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 Uroš Bizjak changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-30 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 H.J. Lu changed: What|Removed |Added CC||xuepeng.guo at intel dot com --- Comment #19

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-29 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 Uroš Bizjak changed: What|Removed |Added Target|mingw32-sjlj|x86 sjlj CC|

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-29 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #17 from Uroš Bizjak --- (In reply to Kai Tietz from comment #16) > > If you want to experiment, try the following patch: > > > > Index: config/i386/mingw32.h > > === >

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-29 Thread ktietz at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #16 from Kai Tietz --- (In reply to Uroš Bizjak from comment #15) > (In reply to David Grayson from comment #14) > > > Does anyone have an idea of how to fix this bug for real? What values > > should crtl->preferred_stack_boundary

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-29 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #15 from Uroš Bizjak --- (In reply to David Grayson from comment #14) > Does anyone have an idea of how to fix this bug for real? What values > should crtl->preferred_stack_boundary crtl->stack_alignment_needed really > have on

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-10-26 Thread davidegrayson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 David Grayson changed: What|Removed |Added CC||davidegrayson at gmail dot com ---

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-05-26 Thread martchus at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 martchus at gmx dot net changed: What|Removed |Added CC||martchus at gmx dot net ---

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2018-04-21 Thread cantabile.desu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 Bitterblue changed: What|Removed |Added CC||cantabile.desu at gmail dot com ---

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-12-14 Thread sonoro at telefonica dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #11 from sonoro at telefonica dot net --- So it seems you solved the problem in sjlj Are you going to push it? Thanks victor

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-12-10 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 Kai Tietz ktietz at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |NEW

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-12-10 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #9 from H.J. Lu hjl.tools at gmail dot com --- My understanding is stack realignment doesn't work on Windows. There was a attempt to do it at a time. But we didn't know enough about Windows to do it.

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-12-10 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #10 from Kai Tietz ktietz at gcc dot gnu.org --- Well, for x64 we can't realign stack due issue about prologue layout enforced by SEH stuff. For x86 I see actually no good reason why this shouldn't work. I checked generated assembly

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-10-01 Thread sonoro at telefonica dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #5 from sonoro at telefonica dot net --- Is there anything else I must provide in order to solve this issue?

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-10-01 Thread sonoro at telefonica dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #6 from sonoro at telefonica dot net --- (In reply to Paolo Carlini from comment #1) In any case a self contained reproducer is a requirement. Please do your best to reduce it to a manageable size

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-10-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #7 from Paolo Carlini paolo.carlini at oracle dot com --- Please, if you really want to see progress on this issue, do your best to reduce the reproducer to a manageable size, normally less than, say, 100 lines are more than enough.

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-09-12 Thread sonoro at telefonica dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #3 from sonoro at telefonica dot net --- Created attachment 30808 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30808action=edit ii file compressed with rar

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-09-12 Thread sonoro at telefonica dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 --- Comment #4 from sonoro at telefonica dot net --- this are the compiler flags for the project CXX_FLAGS = -save-temps -msse -msse -mfpmath=sse -msse2 -std=c++11 -mstackrealign -O2 -g -DNDEBUG

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-09-10 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Target||mingw32-sjlj

[Bug c++/58372] internal compiler error: ix86_compute_frame_layout

2013-09-09 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |WAITING