rs6000: Skip overload instances with NULL fntype [PR104967]
authorKewen Lin <linkw@linux.ibm.com>
Thu, 24 Mar 2022 01:46:06 +0000 (20:46 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 24 Mar 2022 01:47:14 +0000 (20:47 -0500)
commit497bde3ab92b2c292f78672db341bbb7cc1bcf1f
tree2377220e3757db4a665e7f37dc42a61fa9728cbe
parentd1ca63a1b7d5986913b14567a4950b055a5a3f07
rs6000: Skip overload instances with NULL fntype [PR104967]

For some overload built-in function instance, if it requires
a data type which isn't defined on the target, its fntype
would be initialized as NULL.  This patch is to consider
this possibility in function find_instance, as shown in
PR104967.

PR target/104967

gcc/ChangeLog:

* config/rs6000/rs6000-c.cc (find_instance): Skip instances with null
function types.
gcc/config/rs6000/rs6000-c.cc