https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88877
--- Comment #1 from Kamlesh Kumar <kamleshbhalui at gmail dot com> --- Following patch fixes the problem but would like to know the experts thought on the below patch . static machine_mode -rs6000_promote_function_mode (const_tree type ATTRIBUTE_UNUSED, +rs6000_promote_function_mode (const_tree type , machine_mode mode, - int *punsignedp ATTRIBUTE_UNUSED, + int *punsignedp , const_tree, int) { + if(type) PROMOTE_MODE (mode, *punsignedp, type); - return mode; } Here, argument 'type' being null signifies that it's a libcalls. So we will not promote the mode in this case,is that ok ?