This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Attachment: fixpr26179.diff.txt
Description: ASCII English text


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]