2013-08-06  Martin Jambor  <mjambor@suse.cz>

	PR fortran/57987
	* cgraphunit.c (cgraph_finalize_function): Assert that nested function
	is not re-finalized.  Rename second parameter to no_collect.

fortran/
	* trans-decl.c (gfc_generate_function_code): Never call
	cgraph_finalize_function on nested functions.

testsuite/
	* gfortran.dg/pr57987.f90: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201526 138bc75d-0d04-0410-961f-82ee72b054a4
	* go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
	compute_reloc_for_constant.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201535 138bc75d-0d04-0410-961f-82ee72b054a4
	* cgraph.c (cgraph_get_body): New function based on lto.c
	implementation.
	* cgraph.h (cgraph_get_body): Declare.
	* cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and LTO paths.
	* cgraphunit.c (expand_function): Get body prior expanding.
	* ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
	* lto-cgraph.c (lto_output_node): Do not stream bodies we don't really need.
	* passes.c (do_per_function_toporder): Get body.
	* tree-inline.c (expand_call_inline): Get body prior inlining it.
	* tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.

	* lto.c (lto_materialize_function): Do not read body anymore.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201537 138bc75d-0d04-0410-961f-82ee72b054a4
2013-08-06  Martin Jambor  <mjambor@suse.cz>
	    Bernd Edlinger <bernd.edlinger@hotmail.de>

testsuite/
	* gcc.dg/torture/pr58041.c (foo): Accept z by reference.
	(a): Fix constructor.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201538 138bc75d-0d04-0410-961f-82ee72b054a4
2013-08-06  Martin Jambor  <mjambor@suse.cz>

testsuite/
	PR tree-optimization/57539
	* gcc.dg/ipa/pr57539.c: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201540 138bc75d-0d04-0410-961f-82ee72b054a4