Commit 775dc670 by Richard Guenther Committed by Richard Biener

re PR middle-end/41713 (-O -flto -g: ICE in lto_output_tree_ref, at lto-streamer-out.c:732)

2009-10-16  Richard Guenther  <rguenther@suse.de>

	PR lto/41713
	* lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
	the same as VAR_DECL.

	* gfortran.dg/lto/20091016-1_0.f90: New testcase.

From-SVN: r152902
parent ac2b9bbb
2009-10-16 Richard Guenther <rguenther@suse.de>
PR lto/41713
* lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
the same as VAR_DECL.
2009-10-16 Richard Guenther <rguenther@suse.de>
* gimple.c (iterative_hash_gimple_type): For integer types
also hash their minimum and maximum values and the string flag.
For array types hash their domain and the string flag.
......@@ -690,6 +690,7 @@ lto_output_tree_ref (struct output_block *ob, tree expr)
break;
case VAR_DECL:
case DEBUG_EXPR_DECL:
gcc_assert (decl_function_context (expr) == NULL);
output_record_start (ob, LTO_global_decl_ref);
lto_output_var_decl_index (ob->decl_state, ob->main_stream, expr);
......
2009-10-16 Richard Guenther <rguenther@suse.de>
PR lto/41713
* gfortran.dg/lto/20091016-1_0.f90: New testcase.
2009-10-15 Jakub Jelinek <jakub@redhat.com>
PR debug/41717
......
! { dg-lto-do link }
! { dg-lto-options {{-flto -g -fPIC -shared} {-O -flto -g -fPIC -shared}} }
FUNCTION makenumberstring(x)
IMPLICIT NONE
REAL, INTENT(IN) :: x
CHARACTER(len=20) :: makenumberstring
INTEGER :: xx
xx = x**2 ! << ICE
makenumberstring = ''
END FUNCTION
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