https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66047
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Sun May 17 19:41:23 2015 New Revision: 223272 URL: https://gcc.gnu.org/viewcvs?rev=223272&root=gcc&view=rev Log: PR target/66047 * i386.c (ix86_function_sseregparm): Only return -1 if local function with implied regparm is called from -mno-sse function. (init_cumulative_args): Output error if ix86_function_sseregparm return -1 and SSE register would be needed. (function_arg_advance_32): Likewise. (function_arg_32): Likewise. * i386.h (ix86_args): Add decl field. * gcc.target/i386/pr66047.c: New testcase. Added: branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/pr66047.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/i386/i386.c branches/gcc-5-branch/gcc/config/i386/i386.h branches/gcc-5-branch/gcc/testsuite/ChangeLog