[Bug target/56043] ICE in rs6000_builtin_vectorized_libmass for vsx-mass-1.c
meissner at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 7 20:27:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56043
--- Comment #1 from Michael Meissner <meissner at gcc dot gnu.org> 2013-02-07 20:27:19 UTC ---
Created attachment 29390
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29390
Patch to fix the problem
There are two problems here.
The first problem is the segmentation fault if the builtin function does not
have an implicit function. The patch adds code to return NULL_TREE in this
case, rather than cause a segmentation violation due to a NULL pointer.
However, in the case of powerpc-none-eabi, the vsx-mass-1.c test would still
fail, since some of the builtin functions are not treated as builtin (such as
atan2, which is what caused the fault). Since the MASS library is only
available for powerpc Linux, I have restricted the test to only run on
powerpc*-*-linux*.
More information about the Gcc-bugs
mailing list