Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rs6000, add argument to function find_instance
GCC maintainers: The rs6000 function find_instance assumes that it is called for built- ins with only two arguments. There is no checking for the actual number of aruguments used in the built-in. This patch adds an additional parameter to the function call containing the number of aruguments in the built-in. The function will now do the needed checks for all of the arguments. This fix is needed for the next patch in the series that fixes the vec_replace_unaligned built-in.c test. Please let me know if this patch is acceptable for mainline. Thanks. Carl -------------------------------------------- rs6000, add argument to function find_instance The function find_instance assumes it is called to check a built-in with only two arguments. Ths patch extends the function by adding a parameter specifying the number of buit-in arguments to check. gcc/ChangeLog: * config/rs6000/rs6000-c.cc (find_instance): Add new parameter that specifies the number of built-in arguments to check. (altivec_resolve_overloaded_builtin): Update calls to find_instance to pass the number of built-in argument to be checked.
- Loading branch information