re PR debug/83034 (ice in mem_loc_descriptor, at dwarf2out.c :15669)
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Nov 2017 09:43:28 +0000 (10:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 22 Nov 2017 09:43:28 +0000 (10:43 +0100)
PR debug/83034
* dwarf2out.c (mem_loc_descriptor): Handle VEC_SERIES.

* gcc.dg/pr83034.c: New test.

From-SVN: r255049

gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83034.c [new file with mode: 0644]

index f4b05f0eb2fa661cf3d7a07baf9706be709acf6f..d4b184e12626a94748adb256ca02e1be4f272b67 100644 (file)
@@ -1,5 +1,8 @@
 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
 
+       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.
index 89e119c3dcad352925e34c5880e16af4c59cdca7..8207dd5efc5f5fc1a6d8eac13070bdc5df45a9ce 100644 (file)
@@ -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:
index e3ea2f52ceb333eda30ea9e10218c9e09d937129..b08855f9566911409b533926f160dda323295541 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-22  Jakub Jelinek  <jakub@redhat.com>
+
+       PR debug/83034
+       * gcc.dg/pr83034.c: New test.
+
 2017-11-22  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/83089
diff --git a/gcc/testsuite/gcc.dg/pr83034.c b/gcc/testsuite/gcc.dg/pr83034.c
new file mode 100644 (file)
index 0000000..875a3fe
--- /dev/null
@@ -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);
+}