This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch for pr43869


The bug is improper passing of arguments from a ms_abi to a sysv function, because SSE_REGPARMS is equal to X86_64_REGPARMS or X86_64_MS_REGPARMS, depending on the abi of the current function.

The testcase is part of the patch, I didn't add a testcase for the ms_abi -> sysv varargs case, but it is potentially affected as well, it would just be harder to trigger.

I guess a changelog entry would be:

pr43869:
* i386.c: Make sure that the correct regparm is passed.
* testsuite/gcc.c-target/pr43869.c: Add test.

Attachment: pr.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]