public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/104885] New: ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33
@ 2022-03-11 18:04 seurer at gcc dot gnu.org
2022-03-12 19:43 ` [Bug middle-end/104885] " roger at nextmovesoftware dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: seurer at gcc dot gnu.org @ 2022-03-11 18:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104885
Bug ID: 104885
Summary: ICE in compiling new test case g++.dg/other/pr84964.C
after r12-7607-ga717376e99fb33
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: seurer at gcc dot gnu.org
Target Milestone: ---
Tried g:a717376e99fb33ba3b06bd8122e884f4b63a60c9, r12-7607-ga717376e99fb33
make -k check-gcc RUNTESTFLAGS="dg.exp=g++.dg/other/pr84964.C"
FAIL: g++.dg/other/pr84964.C -std=c++98 (internal compiler error: Aborted
signal terminated program cc1plus)
FAIL: g++.dg/other/pr84964.C -std=c++98 (test for warnings, line 6)
FAIL: g++.dg/other/pr84964.C -std=c++98 1 blank line(s) in output
FAIL: g++.dg/other/pr84964.C -std=c++98 (test for excess errors)
FAIL: g++.dg/other/pr84964.C -std=c++14 (internal compiler error: Aborted
signal terminated program cc1plus)
FAIL: g++.dg/other/pr84964.C -std=c++14 (test for warnings, line 6)
FAIL: g++.dg/other/pr84964.C -std=c++14 1 blank line(s) in output
FAIL: g++.dg/other/pr84964.C -std=c++14 (test for excess errors)
FAIL: g++.dg/other/pr84964.C -std=c++17 (internal compiler error: Segmentation
fault signal terminated program cc1plus)
FAIL: g++.dg/other/pr84964.C -std=c++17 (test for warnings, line 6)
FAIL: g++.dg/other/pr84964.C -std=c++17 (test for excess errors)
FAIL: g++.dg/other/pr84964.C -std=c++20 (internal compiler error: Segmentation
fault signal terminated program cc1plus)
FAIL: g++.dg/other/pr84964.C -std=c++20 (test for warnings, line 6)
FAIL: g++.dg/other/pr84964.C -std=c++20 (test for excess errors)
commit a717376e99fb33ba3b06bd8122e884f4b63a60c9 (HEAD, refs/bisect/bad)
Author: Roger Sayle <roger@nextmovesoftware.com>
Date: Thu Mar 10 23:49:15 2022 +0000
PR c++/84964: Middle-end patch to expand_call for ICE after sorry.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/104885] ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33
2022-03-11 18:04 [Bug middle-end/104885] New: ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33 seurer at gcc dot gnu.org
@ 2022-03-12 19:43 ` roger at nextmovesoftware dot com
2022-03-26 18:11 ` cvs-commit at gcc dot gnu.org
2022-04-14 11:34 ` roger at nextmovesoftware dot com
2 siblings, 0 replies; 4+ messages in thread
From: roger at nextmovesoftware dot com @ 2022-03-12 19:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104885
Roger Sayle <roger at nextmovesoftware dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2022-03-12
CC| |roger at nextmovesoftware dot com
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |roger at nextmovesoftware dot com
--- Comment #1 from Roger Sayle <roger at nextmovesoftware dot com> ---
Patch proposed.
https://gcc.gnu.org/pipermail/gcc-patches/2022-March/591665.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/104885] ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33
2022-03-11 18:04 [Bug middle-end/104885] New: ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33 seurer at gcc dot gnu.org
2022-03-12 19:43 ` [Bug middle-end/104885] " roger at nextmovesoftware dot com
@ 2022-03-26 18:11 ` cvs-commit at gcc dot gnu.org
2022-04-14 11:34 ` roger at nextmovesoftware dot com
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-26 18:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104885
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Roger Sayle <sayle@gcc.gnu.org>:
https://gcc.gnu.org/g:41d1f11f5f693a2a06c65c9467a28dfeb02aed85
commit r12-7833-g41d1f11f5f693a2a06c65c9467a28dfeb02aed85
Author: Roger Sayle <roger@nextmovesoftware.com>
Date: Sat Mar 26 08:10:27 2022 -1000
PR middle-end/104885: Fix ICE with large stack frame on powerpc64.
My recent testcase for PR c++/84964.C stress tests the middle-end by
attempting to pass a UINT_MAX sized structure on the stack. Although
my fix to PR84964 avoids the ICE after sorry on x86_64 and similar
targets, a related issue still exists on powerpc64 (and similar
ACCUMULATE_OUTGOING_ARGS/ARGS_GROW_DOWNWARD targets) which don't
issue a "sorry, unimplemented" message, but instead ICE elsewhere.
After attempting several alternate fixes, the simplest solution is
to just defensively check in mark_stack_region_used that the upper
bound of the region lies within the allocated stack_usage_map
array, which is of size highest_outgoing_arg_in_use. When this isn't
the case, the code now follows the same path as for variable sized
regions, and uses stack_usage_watermark rather than a map.
2022-03-26 Roger Sayle <roger@nextmovesoftware.com>
gcc/ChangeLog
PR middle-end/104885
* calls.cc (mark_stack_region_used): Check that the region
is within the allocated size of stack_usage_map.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/104885] ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33
2022-03-11 18:04 [Bug middle-end/104885] New: ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33 seurer at gcc dot gnu.org
2022-03-12 19:43 ` [Bug middle-end/104885] " roger at nextmovesoftware dot com
2022-03-26 18:11 ` cvs-commit at gcc dot gnu.org
@ 2022-04-14 11:34 ` roger at nextmovesoftware dot com
2 siblings, 0 replies; 4+ messages in thread
From: roger at nextmovesoftware dot com @ 2022-04-14 11:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104885
Roger Sayle <roger at nextmovesoftware dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |12.0
Status|ASSIGNED |RESOLVED
--- Comment #3 from Roger Sayle <roger at nextmovesoftware dot com> ---
This should now be fixed on mainline.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-14 11:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-11 18:04 [Bug middle-end/104885] New: ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33 seurer at gcc dot gnu.org
2022-03-12 19:43 ` [Bug middle-end/104885] " roger at nextmovesoftware dot com
2022-03-26 18:11 ` cvs-commit at gcc dot gnu.org
2022-04-14 11:34 ` roger at nextmovesoftware dot com
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).