+2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
+ the target doesn't belong to the current function.
+
2015-06-02 Marek Polacek <polacek@redhat.com>
PR middle-end/66345
return gimplify_modify_expr_complex_part (expr_p, pre_p, want_value);
/* Try to alleviate the effects of the gimplification creating artificial
- temporaries (see for example is_gimple_reg_rhs) on the debug info. */
+ temporaries (see for example is_gimple_reg_rhs) on the debug info, but
+ make sure not to create DECL_DEBUG_EXPR links across functions. */
if (!gimplify_ctxp->into_ssa
&& TREE_CODE (*from_p) == VAR_DECL
&& DECL_IGNORED_P (*from_p)
&& DECL_P (*to_p)
- && !DECL_IGNORED_P (*to_p))
+ && !DECL_IGNORED_P (*to_p)
+ && decl_function_context (*to_p) == current_function_decl)
{
if (!DECL_NAME (*from_p) && DECL_NAME (*to_p))
DECL_NAME (*from_p)
+2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc.dg/vect/vec-scal-opt.c: Adjust regexp.
+
2015-06-02 Uros Bizjak <ubizjak@gmail.com>
* gcc.dg/vect/vect-outer-simd-1.c: Remove cleanup-tree-dump directive.
return vidx(short, r1, 0);
}
-/* { dg-final { scan-tree-dump-times ">> k.\[0-9_\]*" 1 "veclower21" } } */
+/* { dg-final { scan-tree-dump-times ">> _\[0-9\]*" 1 "veclower21" } } */