Backport mainline r173371 to ARM/embedded-4_6-branch. Committed.
2011-09-28 Terry Guo <terry....@arm.com> Backport r173371 from mainline 2011-05-04 Andreas Krebbel <andreas.kreb...@de.ibm.com> * calls.c (emit_library_call_value_1): Invoke promote_function_mode hook on libcall arguments. * explow.c (promote_function_mode, promote_mode): Handle TYPE argument being NULL. * targhooks.c (default_promote_function_mode): Lisewise. * config/s390/s390.c (s390_promote_function_mode): Likewise. * config/sparc/sparc.c (sparc_promote_function_mode): Likewise. * doc/tm.texi: Document that TYPE argument might be NULL.