public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100580] New: ICE with -fdump-passes
@ 2021-05-13 3:25 fxue at os dot amperecomputing.com
2021-05-13 8:00 ` [Bug c++/100580] [10/11/12 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f marxin at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: fxue at os dot amperecomputing.com @ 2021-05-13 3:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
Bug ID: 100580
Summary: ICE with -fdump-passes
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: fxue at os dot amperecomputing.com
Target Milestone: ---
Created attachment 50805
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50805&action=edit
Source file
Reproduce ICE using the command:
g++ -fpreprocessed TimeControl.ii -std=c++98 -fdump-passes
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/100580] [10/11/12 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
@ 2021-05-13 8:00 ` marxin at gcc dot gnu.org
2021-05-17 11:37 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-13 8:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-05-13
Summary|ICE with -fdump-passes |[10/11/12 Regression] ICE
| |with -fdump-passes since
| |r10-6837-g2473c81cb2d4627f
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
CC| |jakub at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:
$ cat pr100580.c
int pthread_key_create;
static __typeof(pthread_key_create) __gthrw___pthread_key_create
__attribute__((__weakref__("")));
started with r10-6837-g2473c81cb2d4627f.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/100580] [10/11/12 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
2021-05-13 8:00 ` [Bug c++/100580] [10/11/12 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f marxin at gcc dot gnu.org
@ 2021-05-17 11:37 ` rguenth at gcc dot gnu.org
2021-05-17 17:17 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-17 11:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |10.4
Version|unknown |11.1.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/100580] [10/11/12 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
2021-05-13 8:00 ` [Bug c++/100580] [10/11/12 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f marxin at gcc dot gnu.org
2021-05-17 11:37 ` rguenth at gcc dot gnu.org
@ 2021-05-17 17:17 ` jakub at gcc dot gnu.org
2021-05-18 8:10 ` cvs-commit at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-17 17:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 50826
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50826&action=edit
gcc12-pr100580.patch
Untested fix.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/100580] [10/11/12 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
` (2 preceding siblings ...)
2021-05-17 17:17 ` jakub at gcc dot gnu.org
@ 2021-05-18 8:10 ` cvs-commit at gcc dot gnu.org
2021-05-18 8:12 ` [Bug c++/100580] [10/11 " jakub at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-18 8:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:978b62e554ffb4b34844c72d259ce71fcbd87591
commit r12-865-g978b62e554ffb4b34844c72d259ce71fcbd87591
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue May 18 10:10:17 2021 +0200
function: Set dummy DECL_ASSEMBLER_NAME in push_dummy_function [PR100580]
Last year I've added cgraph_node::get_create calls for the dummy
functions used for -fdump-passes, so that it interacts well with pass
disabling/enabling which is cgraph uid based.
Unfortunately, as the following testcase shows, when assembler hash
is present, that wants to compute DECL_ASSEMBLER_NAME and the C++ FE
is unprepared to handle it on the dummy functions which don't have
DECL_NAME etc.
The following patch fixes it by setting up a dummy DECL_ASSEMBLER_NAME
on these, so that the FEs don't need to compute it.
2021-05-18 Jakub Jelinek <jakub@redhat.com>
PR c++/100580
* function.c (push_dummy_function): Set DECL_ARTIFICIAL and
DECL_ASSEMBLER_NAME on the fn_decl.
* g++.dg/other/pr100580.C: New test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/100580] [10/11 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
` (3 preceding siblings ...)
2021-05-18 8:10 ` cvs-commit at gcc dot gnu.org
@ 2021-05-18 8:12 ` jakub at gcc dot gnu.org
2021-05-31 14:08 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-18 8:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[10/11/12 Regression] ICE |[10/11 Regression] ICE with
|with -fdump-passes since |-fdump-passes since
|r10-6837-g2473c81cb2d4627f |r10-6837-g2473c81cb2d4627f
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/100580] [10/11 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
` (4 preceding siblings ...)
2021-05-18 8:12 ` [Bug c++/100580] [10/11 " jakub at gcc dot gnu.org
@ 2021-05-31 14:08 ` cvs-commit at gcc dot gnu.org
2021-05-31 14:56 ` [Bug c++/100580] [10 " jakub at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-31 14:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:c4d64d136e4e35fb2ee90771848944bb2ffeaf85
commit r11-8487-gc4d64d136e4e35fb2ee90771848944bb2ffeaf85
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue May 18 10:10:17 2021 +0200
function: Set dummy DECL_ASSEMBLER_NAME in push_dummy_function [PR100580]
Last year I've added cgraph_node::get_create calls for the dummy
functions used for -fdump-passes, so that it interacts well with pass
disabling/enabling which is cgraph uid based.
Unfortunately, as the following testcase shows, when assembler hash
is present, that wants to compute DECL_ASSEMBLER_NAME and the C++ FE
is unprepared to handle it on the dummy functions which don't have
DECL_NAME etc.
The following patch fixes it by setting up a dummy DECL_ASSEMBLER_NAME
on these, so that the FEs don't need to compute it.
2021-05-18 Jakub Jelinek <jakub@redhat.com>
PR c++/100580
* function.c (push_dummy_function): Set DECL_ARTIFICIAL and
DECL_ASSEMBLER_NAME on the fn_decl.
* g++.dg/other/pr100580.C: New test.
(cherry picked from commit 978b62e554ffb4b34844c72d259ce71fcbd87591)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/100580] [10 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
` (5 preceding siblings ...)
2021-05-31 14:08 ` cvs-commit at gcc dot gnu.org
@ 2021-05-31 14:56 ` jakub at gcc dot gnu.org
2022-05-10 8:18 ` cvs-commit at gcc dot gnu.org
2022-05-10 10:02 ` jakub at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-31 14:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[10/11 Regression] ICE with |[10 Regression] ICE with
|-fdump-passes since |-fdump-passes since
|r10-6837-g2473c81cb2d4627f |r10-6837-g2473c81cb2d4627f
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed also for GCC 11.2.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/100580] [10 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
` (6 preceding siblings ...)
2021-05-31 14:56 ` [Bug c++/100580] [10 " jakub at gcc dot gnu.org
@ 2022-05-10 8:18 ` cvs-commit at gcc dot gnu.org
2022-05-10 10:02 ` jakub at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-10 8:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:b5a972b300f26d2af4f1622c560f6ffda25852ce
commit r10-10613-gb5a972b300f26d2af4f1622c560f6ffda25852ce
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue May 18 10:10:17 2021 +0200
function: Set dummy DECL_ASSEMBLER_NAME in push_dummy_function [PR100580]
Last year I've added cgraph_node::get_create calls for the dummy
functions used for -fdump-passes, so that it interacts well with pass
disabling/enabling which is cgraph uid based.
Unfortunately, as the following testcase shows, when assembler hash
is present, that wants to compute DECL_ASSEMBLER_NAME and the C++ FE
is unprepared to handle it on the dummy functions which don't have
DECL_NAME etc.
The following patch fixes it by setting up a dummy DECL_ASSEMBLER_NAME
on these, so that the FEs don't need to compute it.
2021-05-18 Jakub Jelinek <jakub@redhat.com>
PR c++/100580
* function.c (push_dummy_function): Set DECL_ARTIFICIAL and
DECL_ASSEMBLER_NAME on the fn_decl.
* g++.dg/other/pr100580.C: New test.
(cherry picked from commit 978b62e554ffb4b34844c72d259ce71fcbd87591)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/100580] [10 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
` (7 preceding siblings ...)
2022-05-10 8:18 ` cvs-commit at gcc dot gnu.org
@ 2022-05-10 10:02 ` jakub at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-05-10 10:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100580
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for 10.4 too.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-05-10 10:02 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 3:25 [Bug c++/100580] New: ICE with -fdump-passes fxue at os dot amperecomputing.com
2021-05-13 8:00 ` [Bug c++/100580] [10/11/12 Regression] ICE with -fdump-passes since r10-6837-g2473c81cb2d4627f marxin at gcc dot gnu.org
2021-05-17 11:37 ` rguenth at gcc dot gnu.org
2021-05-17 17:17 ` jakub at gcc dot gnu.org
2021-05-18 8:10 ` cvs-commit at gcc dot gnu.org
2021-05-18 8:12 ` [Bug c++/100580] [10/11 " jakub at gcc dot gnu.org
2021-05-31 14:08 ` cvs-commit at gcc dot gnu.org
2021-05-31 14:56 ` [Bug c++/100580] [10 " jakub at gcc dot gnu.org
2022-05-10 8:18 ` cvs-commit at gcc dot gnu.org
2022-05-10 10:02 ` jakub at gcc dot gnu.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).