https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
--- Comment #21 from Uroš Bizjak <ubizjak at gmail dot com> --- The above patch is needed to pass arguments to a naked function. Please note that arguments can be reliably passed only in registers, so regparm convention is necessary for x86_32. gcc.target/i386/naked-3.c and gcc.target/i386/naked-4.c testcases show function arguments and function result passing in action.