From 0a770b5907cdb70709356fbbfe5c570010b0b936 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 22 Nov 2017 10:43:28 +0100 Subject: [PATCH] re PR debug/83034 (ice in mem_loc_descriptor, at dwarf2out.c :15669) PR debug/83034 * dwarf2out.c (mem_loc_descriptor): Handle VEC_SERIES. * gcc.dg/pr83034.c: New test. From-SVN: r255049 --- gcc/ChangeLog | 3 +++ gcc/dwarf2out.c | 1 + gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr83034.c | 12 ++++++++++++ 4 files changed, 21 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr83034.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f4b05f0eb2f..d4b184e1262 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2017-11-22 Jakub Jelinek + PR debug/83034 + * dwarf2out.c (mem_loc_descriptor): Handle VEC_SERIES. + PR rtl-optimization/82044 PR tree-optimization/82042 * dse.c (record_store): Check for overflow. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 89e119c3dca..8207dd5efc5 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -15605,6 +15605,7 @@ mem_loc_descriptor (rtx rtl, machine_mode mode, case VEC_SELECT: case VEC_CONCAT: case VEC_DUPLICATE: + case VEC_SERIES: case UNSPEC: case HIGH: case FMA: diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e3ea2f52ceb..b08855f9566 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-11-22 Jakub Jelinek + + PR debug/83034 + * gcc.dg/pr83034.c: New test. + 2017-11-22 Richard Biener PR tree-optimization/83089 diff --git a/gcc/testsuite/gcc.dg/pr83034.c b/gcc/testsuite/gcc.dg/pr83034.c new file mode 100644 index 00000000000..875a3fe52ca --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr83034.c @@ -0,0 +1,12 @@ +/* PR debug/83034 */ +/* { dg-do compile } */ +/* { dg-options "-funroll-loops -Ofast -g" } */ + +__attribute__((__simd__)) float expf (float); + +void +foo (float *a, int x) +{ + for (; x; x++) + a[x] = expf (x); +} -- 2.30.2