This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/50818] va_list is filled incorrectly in functions with ms_abi attribute on amd64
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Jul 2015 19:04:39 +0000
- Subject: [Bug target/50818] va_list is filled incorrectly in functions with ms_abi attribute on amd64
- Auto-submitted: auto-generated
- References: <bug-50818-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50818
UroÅ Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-07-23
Ever confirmed|0 |1
Severity|normal |enhancement
--- Comment #3 from UroÅ Bizjak <ubizjak at gmail dot com> ---
I was looking into this PR a bit. I'm afraid that this PR is unsolvable with
existing infrastructure, I didn't find a way to access current function
attributes from ix86_build_builtin_va_list. After this is possible, it is just
a matter of changing following line in ix86_build_builtin_va_list:
return (ix86_abi == MS_ABI) ? ms_va_list : sysv_va_list;
to
return (ix86_function_abi (fndecl) == MS_ABI) ? ms_va_list :
sysv_va_list;