[Bug 48697] New: New msvcrt inlines fail to compile on armv7hl due to non-AAPCS variadic function calls

WineHQ Bugzilla wine-bugs at winehq.org
Mon Mar 2 22:54:55 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=48697

            Bug ID: 48697
           Summary: New msvcrt inlines fail to compile on armv7hl due to
                    non-AAPCS variadic function calls
           Product: Wine
           Version: 5.3
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: msvcrt
          Assignee: wine-bugs at winehq.org
          Reporter: mike at cchtml.com
      Distribution: ---

Two of the new msvcrt inlines added in 5.3 need to be fixed to compile on
armv7hl.

- ee02f93cc90d4ffeff6aab1ad63e40024fe01276
- 6bc15730457b780c47374d3e922287cafd36b233

One possible solution is to use WINAPIV on the function instead of __cdecl.

Compiler output from ARM build:

In file included from ../../include/msvcrt/stdio.h:11,
                 from ../../include/wine/debug.h:25,
                 from ../d3dx9_36/d3dx9_private.h:27,
                 from ../d3dx9_36/animation.c:22:
../../include/msvcrt/corecrt_wstdio.h: In function '_snwprintf_s':
../../include/msvcrt/corecrt_wstdio.h:119:1: error: variadic functions must use
the base AAPCS variant
  119 | {
      | ^
In file included from ../../include/wine/debug.h:25,
                 from ../d3dx9_36/d3dx9_private.h:27,
                 from ../d3dx9_36/animation.c:22:
../../include/msvcrt/stdio.h: In function '_snprintf_s':
../../include/msvcrt/stdio.h:178:1: error: variadic functions must use the base
AAPCS variant
  178 | {
      | ^

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list