PR debug/65771
* dwarf2out.c (loc_list_from_tree): Return NULL
for DEBUG_EXPR_DECL.
* gcc.dg/debug/pr65771.c: New test.
From-SVN: r222166
+2015-04-17 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/65771
+ * dwarf2out.c (loc_list_from_tree): Return NULL
+ for DEBUG_EXPR_DECL.
+
2015-04-17 Christian Bruel <christian.bruel@st.com>
* ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
case TARGET_MEM_REF:
case SSA_NAME:
+ case DEBUG_EXPR_DECL:
return NULL;
case COMPOUND_EXPR:
+2015-04-17 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/65771
+ * gcc.dg/debug/pr65771.c: New test.
+
2015-04-16 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/mpx/alloca-1-lbv.c (mpx_test): Replace
--- /dev/null
+/* PR debug/65771 */
+/* { dg-do link } */
+/* { dg-require-effective-target tls } */
+
+struct S { int s; int t; };
+__thread struct S a[10];
+int b;
+
+int
+main ()
+{
+ int c = a[b].t;
+ (void) c;
+ return 0;
+}