Command line: $ gcc -O1 -fipa-pta testcase.c ----- testcase.c ----- int foo () { __builtin_return (foo); } ---------------------- Tested revisions: r160122 - crash r159696 - OK Compiler output: $ gcc -O1 -fipa-pta testcase.c testcase.c: In function 'foo': testcase.c:4:1: internal compiler error: gimple check: expected gimple_return(error_mark), have gimple_call() in gimple_return_retval, at gimple.h:4311 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
The testcase was reduced from gcc.dg/torture/stackalign/builtin-return-1.c, which is valid. It can be further reduced to: void foo () { __builtin_return (0); } In general, it seems any use of __builtin_return() with -fipa-pta ICEs.
Mine.
Fixed.
Subject: Bug 44377 Author: rguenth Date: Wed Jun 2 12:27:24 2010 New Revision: 160152 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160152 Log: 2010-06-02 Richard Guenther <rguenther@suse.de> PR tree-optimization/44377 * tree-ssa-structalias.c (find_func_aliases): Fix typo. Modified: trunk/gcc/ChangeLog trunk/gcc/tree-ssa-structalias.c