[Committed] Fix PR tree-opt/26179, ICE in create_component_ref_by_pieces

Andrew Pinski pinskia@physics.uc.edu
Thu Feb 9 14:30:00 GMT 2006


The problem here is that create_component_ref_by_pieces in
tree-ssa-pre.c forgot to handle RETURN_DECL so we get an
ICE.  Since RETURN_DECL is just like any other decl,
I committed the following patch as obvious that makes
create_component_ref_by_pieces handles RETURN_DECL in
the same maner as the rest of the decls.

Committed as obvious after a bootstrap/test.

Thanks,
Andrew Pinski

ChangeLog:


	* tree-ssa-pre.c (create_component_ref_by_pieces): 
	Handle RETURN_DECL like VAR_DECL.

	* g++.dg/opt/pr26179.C: New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fixpr26179.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060209/e8f357b5/attachment.txt>


More information about the Gcc-patches mailing list