https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122925
--- Comment #11 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #7) > Most likely caused by r16-170-ga670ebde3995 . It's actually caused by the added call to TARGET_PROMOTE_PROTOTYPES in calls.cc by the commit https://gcc.gnu.org/cgit/gcc/commit/?id=78db4753c9646a372512e6a951fced12f74de0bc > Also most likely a similar patch as r16-2069-g2a6ac385076a0d needs to be > done to the sh backend. SH already implements TARGET_PROMOTE_FUNCTION_MODE. It's a little intertwined with SH's TARGET_PROMOTE_PROTOTYPES, but simply removing the SH override for TARGET_PROMOTE_PROTOTYPES seems to fix the problem, as suggested by HJ's attachment 63340. I'd like to add some test cases for this.
