public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/106555] New: [12/13 Regression] d: internal compiler error: in add_stack_var, at cfgexpand.cc:476
@ 2022-08-08 10:48 ibuclaw at gdcproject dot org
2022-08-08 18:28 ` [Bug d/106555] " cvs-commit at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-08-08 10:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106555
Bug ID: 106555
Summary: [12/13 Regression] d: internal compiler error: in
add_stack_var, at cfgexpand.cc:476
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ibuclaw at gdcproject dot org
Target Milestone: ---
When compiled with: gdc -O2 empty.d ice.d
empty.d:
---
---
ice.d:
---
struct EnemyPool
{
int[] enemy;
int maxEnemy;
this(int) {
enemy.length = maxEnemy;
}
}
---
Results in ICE:
---
during GIMPLE pass: local-fnsummary
In function ‘_d_HookTraceImpl’:
d21: internal compiler error: in add_stack_var, at cfgexpand.cc:476
0x7fa9f3 add_stack_var
../../gcc/cfgexpand.cc:476
0xc9e9cb expand_one_var
../../gcc/cfgexpand.cc:1824
0xc9eae0 estimated_stack_frame_size(cgraph_node*)
../../gcc/cfgexpand.cc:2103
0xf1b37f compute_fn_summary(cgraph_node*, bool)
../../gcc/ipa-fnsummary.cc:3108
0xf1b630 compute_fn_summary_for_current
../../gcc/ipa-fnsummary.cc:3237
0xf1b630 execute
../../gcc/ipa-fnsummary.cc:4855
---
Reduced from debian bug
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016701
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug d/106555] [12/13 Regression] d: internal compiler error: in add_stack_var, at cfgexpand.cc:476
2022-08-08 10:48 [Bug d/106555] New: [12/13 Regression] d: internal compiler error: in add_stack_var, at cfgexpand.cc:476 ibuclaw at gdcproject dot org
@ 2022-08-08 18:28 ` cvs-commit at gcc dot gnu.org
2022-08-08 18:29 ` cvs-commit at gcc dot gnu.org
2022-08-08 18:31 ` ibuclaw at gdcproject dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-08-08 18:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106555
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:4b0253b019943abf2cc5f4db0b7ed67caedffe4a
commit r13-1992-g4b0253b019943abf2cc5f4db0b7ed67caedffe4a
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Mon Aug 8 15:17:47 2022 +0200
d: Fix ICE in in add_stack_var, at cfgexpand.cc:476
The type that triggers the ICE never got completed by the semantic
analysis pass. Checking for size forces it to be done, or issue a
compile-time error.
PR d/106555
gcc/d/ChangeLog:
* d-target.cc (Target::isReturnOnStack): Check for return type
size.
gcc/testsuite/ChangeLog:
* gdc.dg/imports/pr106555.d: New test.
* gdc.dg/pr106555.d: New test.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug d/106555] [12/13 Regression] d: internal compiler error: in add_stack_var, at cfgexpand.cc:476
2022-08-08 10:48 [Bug d/106555] New: [12/13 Regression] d: internal compiler error: in add_stack_var, at cfgexpand.cc:476 ibuclaw at gdcproject dot org
2022-08-08 18:28 ` [Bug d/106555] " cvs-commit at gcc dot gnu.org
@ 2022-08-08 18:29 ` cvs-commit at gcc dot gnu.org
2022-08-08 18:31 ` ibuclaw at gdcproject dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-08-08 18:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106555
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Iain Buclaw
<ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:fc7166a7c409bf231d5f243636f30904deea6e6f
commit r12-8671-gfc7166a7c409bf231d5f243636f30904deea6e6f
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Mon Aug 8 15:17:47 2022 +0200
d: Fix ICE in in add_stack_var, at cfgexpand.cc:476
The type that triggers the ICE never got completed by the semantic
analysis pass. Checking for size forces it to be done, or issue a
compile-time error.
PR d/106555
gcc/d/ChangeLog:
* d-target.cc (Target::isReturnOnStack): Check for return type
size.
gcc/testsuite/ChangeLog:
* gdc.dg/imports/pr106555.d: New test.
* gdc.dg/pr106555.d: New test.
(cherry picked from commit 4b0253b019943abf2cc5f4db0b7ed67caedffe4a)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug d/106555] [12/13 Regression] d: internal compiler error: in add_stack_var, at cfgexpand.cc:476
2022-08-08 10:48 [Bug d/106555] New: [12/13 Regression] d: internal compiler error: in add_stack_var, at cfgexpand.cc:476 ibuclaw at gdcproject dot org
2022-08-08 18:28 ` [Bug d/106555] " cvs-commit at gcc dot gnu.org
2022-08-08 18:29 ` cvs-commit at gcc dot gnu.org
@ 2022-08-08 18:31 ` ibuclaw at gdcproject dot org
2 siblings, 0 replies; 4+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-08-08 18:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106555
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fix committed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-08 18:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 10:48 [Bug d/106555] New: [12/13 Regression] d: internal compiler error: in add_stack_var, at cfgexpand.cc:476 ibuclaw at gdcproject dot org
2022-08-08 18:28 ` [Bug d/106555] " cvs-commit at gcc dot gnu.org
2022-08-08 18:29 ` cvs-commit at gcc dot gnu.org
2022-08-08 18:31 ` ibuclaw at gdcproject dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).