public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/93786] [8/9/10 Regression] gimplifier ICE with statement expression since r8-5526
[not found] <bug-93786-4@http.gcc.gnu.org/bugzilla/>
@ 2020-03-27 16:18 ` jakub at gcc dot gnu.org
2020-04-21 10:28 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-03-27 16:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93786
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 48133
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48133&action=edit
gcc10-pr93786.patch
Untested fix.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/93786] [8/9/10 Regression] gimplifier ICE with statement expression since r8-5526
[not found] <bug-93786-4@http.gcc.gnu.org/bugzilla/>
2020-03-27 16:18 ` [Bug middle-end/93786] [8/9/10 Regression] gimplifier ICE with statement expression since r8-5526 jakub at gcc dot gnu.org
@ 2020-04-21 10:28 ` jakub at gcc dot gnu.org
2021-05-14 9:52 ` [Bug middle-end/93786] [9/10/11/12 " jakub at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-04-21 10:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93786
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Tried now also:
--- gcc/gimplify.c.jj 2020-04-19 12:10:35.700627184 +0200
+++ gcc/gimplify.c 2020-04-21 12:24:41.444307978 +0200
@@ -886,7 +886,11 @@ mostly_copy_tree_r (tree *tp, int *walk_
/* Cope with the statement expression extension. */
else if (code == STATEMENT_LIST)
- ;
+ {
+ if (!TREE_SIDE_EFFECTS (t))
+ if (tree nt = expr_single (t))
+ *tp = nt;
+ }
/* Leave the bulk of the work to copy_tree_r itself. */
else
--- gcc/testsuite/g++.dg/other/pr94340.C.jj 2020-04-21 12:15:35.855765641
+0200
+++ gcc/testsuite/g++.dg/other/pr94340.C 2020-04-21 12:15:35.855765641
+0200
@@ -0,0 +1,16 @@
+// PR debug/94340
+// { dg-do compile }
+// { dg-options "-O -fcompare-debug" }
+
+struct D { int i; D (); ~D (); };
+D foo ();
+
+void
+bar (void)
+{
+ if (
+ ({
+ foo ();
+ }).i)
+ return;
+}
--- gcc/testsuite/g++.dg/other/pr93786.C.jj 2020-04-21 12:15:35.855765641
+0200
+++ gcc/testsuite/g++.dg/other/pr93786.C 2020-04-21 12:15:35.855765641
+0200
@@ -0,0 +1,11 @@
+// PR middle-end/93786
+// { dg-do compile }
+// { dg-options "-O2 -fcompare-debug" }
+
+struct S { virtual void bar (); };
+
+void
+foo (S *s)
+{
+ ({ s; })->bar ();
+}
and while it doesn't ICE, it fails -fcompare-debug on both tests.
So, I'm afraid I have no further ideas what to do here, everything I've tried
didn't work.
Alex, do you think you could have a look at this for GCC11?
Thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/93786] [9/10/11/12 Regression] gimplifier ICE with statement expression since r8-5526
[not found] <bug-93786-4@http.gcc.gnu.org/bugzilla/>
2020-03-27 16:18 ` [Bug middle-end/93786] [8/9/10 Regression] gimplifier ICE with statement expression since r8-5526 jakub at gcc dot gnu.org
2020-04-21 10:28 ` jakub at gcc dot gnu.org
@ 2021-05-14 9:52 ` jakub at gcc dot gnu.org
2021-06-01 8:16 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 9:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93786
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|8.5 |9.4
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/93786] [9/10/11/12 Regression] gimplifier ICE with statement expression since r8-5526
[not found] <bug-93786-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-05-14 9:52 ` [Bug middle-end/93786] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01 8:16 ` rguenth at gcc dot gnu.org
2022-05-27 9:42 ` [Bug middle-end/93786] [10/11/12/13 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93786
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/93786] [10/11/12/13 Regression] gimplifier ICE with statement expression since r8-5526
[not found] <bug-93786-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2021-06-01 8:16 ` rguenth at gcc dot gnu.org
@ 2022-05-27 9:42 ` rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 10:36 ` [Bug middle-end/93786] [11/12/13/14 " rguenth at gcc dot gnu.org
6 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93786
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/93786] [10/11/12/13 Regression] gimplifier ICE with statement expression since r8-5526
[not found] <bug-93786-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2022-05-27 9:42 ` [Bug middle-end/93786] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 10:36 ` [Bug middle-end/93786] [11/12/13/14 " rguenth at gcc dot gnu.org
6 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93786
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/93786] [11/12/13/14 Regression] gimplifier ICE with statement expression since r8-5526
[not found] <bug-93786-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2022-06-28 10:39 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:36 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93786
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-07-07 10:36 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-93786-4@http.gcc.gnu.org/bugzilla/>
2020-03-27 16:18 ` [Bug middle-end/93786] [8/9/10 Regression] gimplifier ICE with statement expression since r8-5526 jakub at gcc dot gnu.org
2020-04-21 10:28 ` jakub at gcc dot gnu.org
2021-05-14 9:52 ` [Bug middle-end/93786] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01 8:16 ` rguenth at gcc dot gnu.org
2022-05-27 9:42 ` [Bug middle-end/93786] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 10:36 ` [Bug middle-end/93786] [11/12/13/14 " rguenth 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).