Commit dd935a56 by Richard Biener Committed by Richard Biener

re PR debug/91968 (DW_AT_low_pc missing for DW_TAG_label with LTO)

2019-10-04  Richard Biener  <rguenther@suse.de>

	PR lto/91968
	* tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
	BLOCK_VARS.

From-SVN: r276571
parent 67044452
2019-10-04 Richard Biener <rguenther@suse.de> 2019-10-04 Richard Biener <rguenther@suse.de>
PR lto/91968
* tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
BLOCK_VARS.
2019-10-04 Richard Biener <rguenther@suse.de>
PR tree-optimization/91982 PR tree-optimization/91982
* tree-vect-loop.c (vectorizable_live_operation): Also guard * tree-vect-loop.c (vectorizable_live_operation): Also guard
against EXTRACT_LAST_REDUCTION. against EXTRACT_LAST_REDUCTION.
......
...@@ -5963,8 +5963,9 @@ find_decls_types_r (tree *tp, int *ws, void *data) ...@@ -5963,8 +5963,9 @@ find_decls_types_r (tree *tp, int *ws, void *data)
{ {
for (tree *tem = &BLOCK_VARS (t); *tem; ) for (tree *tem = &BLOCK_VARS (t); *tem; )
{ {
if (TREE_CODE (*tem) != VAR_DECL if (TREE_CODE (*tem) != LABEL_DECL
|| !auto_var_in_fn_p (*tem, DECL_CONTEXT (*tem))) && (TREE_CODE (*tem) != VAR_DECL
|| !auto_var_in_fn_p (*tem, DECL_CONTEXT (*tem))))
{ {
gcc_assert (TREE_CODE (*tem) != RESULT_DECL gcc_assert (TREE_CODE (*tem) != RESULT_DECL
&& TREE_CODE (*tem) != PARM_DECL); && TREE_CODE (*tem) != PARM_DECL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment