diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2019-10-10 18:11:10 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2019-10-10 18:11:10 +0200 |
commit | e5da0a1d01bc0d1d3a36593f4b4fc118bd404691 (patch) | |
tree | ff38ab7422bb17b064ca1d09430fb051ad9134cc | |
parent | 7e536bfd0600341f83d85312cf9c909205ec4d18 (diff) | |
download | gcc-e5da0a1d01bc0d1d3a36593f4b4fc118bd404691.tar.gz |
re PR target/92022 (ICE in alpha_handle_trap_shadows, at config/alpha/alpha.c:8847)
PR target/92022
* config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
testsuite/ChangeLog:
PR target/92022
* g++.dg/pr92022.C: New test.
From-SVN: r276839
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/pr92022.C | 13 |
4 files changed, 26 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f78c4c8c773..ce7b389304f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-10-10 Uroš Bizjak <ubizjak@gmail.com> + + PR target/92022 + * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN. + 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org> PR target/88630 diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index f01305b3c1a..a7d5454b574 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -8708,6 +8708,9 @@ alpha_handle_trap_shadows (void) case CODE_LABEL: goto close_shadow; + case DEBUG_INSN: + break; + default: gcc_unreachable (); } diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0a4961b327d..3b1e63bd3ae 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-10-10 Uroš Bizjak <ubizjak@gmail.com> + + PR target/92022 + * g++.dg/pr92022.C: New test. + 2019-10-10 Jakub Jelinek <jakub@redhat.com> * c-c++-common/gomp/declare-variant-1.c: New test. diff --git a/gcc/testsuite/g++.dg/pr92022.C b/gcc/testsuite/g++.dg/pr92022.C new file mode 100644 index 00000000000..066d984ffc5 --- /dev/null +++ b/gcc/testsuite/g++.dg/pr92022.C @@ -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; +} |