This is the mail archive of the gcc-bugs@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]

[Bug target/50818] va_list is filled incorrectly in functions with ms_abi attribute on amd64


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;

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