* [PATCH, alpha]: Fix PR92022, ICE in alpha_handle_trap_shadows
@ 2019-10-10 16:16 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2019-10-10 16:16 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 477 bytes --]
We have to handle (skip) DEBUG_INSN in alpha_handle_trap_shadows.
2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
PR target/92022
* config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
testsuite/ChangeLog:
2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
PR target/92022
* g++.dg/pr92022.C: New test.
Bootstrapped and regression tested on alpha-linux-gnu.
Committed to mainline, will be backported to release branches.
Uros.
[-- Attachment #2: a.diff.txt --]
[-- Type: text/plain, Size: 809 bytes --]
Index: config/alpha/alpha.c
===================================================================
--- config/alpha/alpha.c (revision 276808)
+++ config/alpha/alpha.c (working copy)
@@ -8708,6 +8708,9 @@ alpha_handle_trap_shadows (void)
case CODE_LABEL:
goto close_shadow;
+ case DEBUG_INSN:
+ break;
+
default:
gcc_unreachable ();
}
Index: testsuite/g++.dg/pr92022.C
===================================================================
--- testsuite/g++.dg/pr92022.C (nonexistent)
+++ testsuite/g++.dg/pr92022.C (working copy)
@@ -0,0 +1,13 @@
+// { dg-do compile { target alpha*-*-* } }
+// { dg-options "-O1 -g -fno-var-tracking -mcpu=ev4 -mieee" }
+
+struct a {
+ a(long);
+};
+long b;
+void c() {
+ a d(1);
+ double e = b;
+ for (; b;)
+ d = e;
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-10 16:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 16:16 [PATCH, alpha]: Fix PR92022, ICE in alpha_handle_trap_shadows Uros Bizjak
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).