search for: ms_abi

Displaying 14 results from an estimated 14 matches for "ms_abi".

2016 Jan 08
2
Is it a va_arg bug in clang?
...x86, I find it has been tracked in Bug 20847 (https://llvm.org/bugs/show_bug.cgi?id=20847) (http://reviews.llvm.org/D1622#inline-9345). Do we still plan to fix it? You know, I meet exactly same va_arg mistake with llvm3.7 when I enable the Uefi firmware (http://www.uefi.org/) build with clang. The ms_abi is the Uefi firmware binary module standard interface. I really hope this bug fix can been checked in as soon as possible. If we cannot fix it in short time, could we offer a temporary fix patch based on llvm3.7? Steven Shi Intel\SSG\STO\UEFI Firmware Tel: +86 021-61166522 iNet: 821-6522 From:...
2016 Jan 09
2
[cfe-dev] Is it a va_arg bug in clang?
...x86, I find it has been tracked in Bug 20847 (https://llvm.org/bugs/show_bug.cgi?id=20847) (http://reviews.llvm.org/D1622#inline-9345). Do we still plan to fix it? You know, I meet exactly same va_arg mistake with llvm3.7 when I enable the Uefi firmware (http://www.uefi.org/) build with clang. The ms_abi is the Uefi firmware binary module standard interface. I really hope this bug fix can been checked in as soon as possible. If we cannot fix it in short time, could we offer a temporary fix patch based on llvm3.7? This is already fixed in clang trunk. Your code is rejected as follows: <stdin&gt...
2019 May 14
4
Handling of the x18 register in Wine on AArch64
...y two years, without running into any issues with it (with the limited amount of code I run in wine; I don't think any of the command line executables I run in wine use callbacks though). 3) Enhance the compiler to automatically back up x18 on entry to functions marked with __attribute__((ms_abi)) and restore it on return. This would have the same effect as 2) above (but more elegantly), but also with the same limitations wrt callbacks. (Using this with Wine requires changing where x18 is initialized, because when starting a process, x18 can get clobbered after signal_init_thread is c...
2016 Jan 10
2
[cfe-dev] Is it a va_arg bug in clang?
...x86, I find it has been tracked in Bug 20847 (https://llvm.org/bugs/show_bug.cgi?id=20847) (http://reviews.llvm.org/D1622#inline-9345). Do we still plan to fix it? You know, I meet exactly same va_arg mistake with llvm3.7 when I enable the Uefi firmware (http://www.uefi.org/) build with clang. The ms_abi is the Uefi firmware binary module standard interface. I really hope this bug fix can been checked in as soon as possible. If we cannot fix it in short time, could we offer a temporary fix patch based on llvm3.7? This is already fixed in clang trunk. Your code is rejected as follows: <stdin&gt...
2019 Apr 26
10
Automatically backing up and restoring x18 around function calls on AArch64?
Hi, When using Wine to run Windows ARM64 executables on Linux, there's one major ABI incompatibility between the two; Windows treats the x18 register as the reserved platform register, while it is free to be clobbered anywhere in code on Linux. The Wine code sets up this register before passing control over to the Windows executable code, but whenever the Windows code calls a function
2020 Aug 30
5
BUG: complete misunterstanding of the MS-ABI
...Data types beyond 64 bit MUST BE returned by the callee via the hidden first argument allocated by the caller, NOT in XMM0! Demo/proof: from this source --- llvm-bug.c --- #ifndef __clang__ typedef struct { unsigned __int64 low; unsigned __int64 high; } __uint128_t; #else __attribute__((ms_abi)) #endif __uint128_t __udivmodti4(__uint128_t dividend, __uint128_t divisor, __uint128_t *remainder) { if (remainder != 0) *remainder = divisor; return dividend; } --- EOF --- clang -c -O1 generates the following INCOMPATIBLE and WRONG code: __udivmodti4 proc public movaps...
2016 May 13
2
How to debug if LTO generate wrong code?
...bitfields -Wno-address -Wno-shift-negative-value -Wno-parentheses-equality -Wno-unknown-pragmas -Wno-tautological-constant-out-of-range-compare -Wno-incompatible-library-redeclaration -target x86_64-pc-linux-gnu -fno-asynchronous-unwind-tables -m64 -Wno-enum-conversion "-DEFIAPI=__attribute__((ms_abi))" -mno-red-zone -mcmodel=large -g -Os -flto *_CLANGLTO38_X64_DLINK_FLAGS = -flto -nostdlib -Wl,-n -Wl,-q -Wl,--gc-sections -Wl,-z,common-page-size=0x40 -Wl,--entry,$(IMAGE_ENTRY_POINT) -Wl,-u,$(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map -Wl,-melf_x86_64 -Wl,--oformat=elf6...
2020 Oct 08
4
__attribute__((apple_abi)): targeting Apple/ARM64 ABI from Linux (and others)
...uot;apple_abi" function attribute (https://github.com/aguinet/llvm-project/commit/c4905ded3afb3182435df30e527955031cb0d098), to be able to compile functions for the Apple ARM64 ABI when targeting other ARM64 OSes (e.g. Linux). This can be seen as the Apple version of the already existing "ms_abi" attribute. In this mail, I will describe why we would want to do such a thing, the current implementation and some remaining questions I have about this (like "isn't this a terrible idea"). Motivation ========== The motivation comes a bit from far away, I'll try to make i...
2013 May 28
3
R-3.0.1 - "transient" make check failure in splines-EX.r
Hello. I seem to be having the same problem that Paul had in the thread titled "[Rd] R 2.15.2 make check failure on 32-bit --with-blas="-lgoto2"" from October of last year <https://stat.ethz.ch/pipermail/r-devel/2012-October/065103.html> Unfortunately, that thread ended without an answer to his last question. Briefly, I am trying to compile an Rblas for Windows NT 32bit
2018 Sep 13
0
Wine release 3.0.3
...e: Add stub for CorIsLatestSvc to hint user at broken .NET installation. ntoskrnl.exe: Add stub for IoUnregisterPlugPlayNotification. Marcos Gutierrez (1): include: Fixed casts in some HANDLE_MSG_WM_* macros. Martin Storsjo (1): arm64: Use __builtin_ms_va_list and __attribute__((ms_abi)) on arm64. Matej Špindler (1): kernel32: Check for LOCALE_NOUSEROVERRIDE for neutral locales. Michael Müller (9): include: Add activation.idl with IActivationFactory interface. include/roapi.h: Add further typedefs. combase: Implement RoGetActivationFactory. combase...
2018 Nov 29
0
Wine release 3.0.4
...nt->vt is 16 bit (Coverity). Michael Müller (2): virtdisk: Add GetStorageDependencyInformation stub. wininet: Resize buffer when call to InternetCanonicalizeUrlW fails in InternetCrackUrlW. Michael Stefaniuc (1): Revert "arm64: Use __builtin_ms_va_list and __attribute__((ms_abi)) on arm64." Nikolay Sivov (5): comctl32/header: Fix item text color. comctl32: Fix background and text color for DrawStatusText(). dwrite: Avoid possible out-of-bounds cluster metrics access. gdiplus: Partially implement arrow caps. gdiplus: Implement unfilled m...
2016 May 16
2
How to debug if LTO generate wrong code?
...no-parentheses-equality -Wno-unknown- > pragmas > > -Wno-tautological-constant-out-of-range-compare > > -Wno-incompatible-library-redeclaration -target x86_64-pc-linux-gnu > > -fno-asynchronous-unwind-tables -m64 -Wno-enum-conversion > > "-DEFIAPI=__attribute__((ms_abi))" -mno-red-zone -mcmodel=large -g -Os > -flto > > > > *_CLANGLTO38_X64_DLINK_FLAGS = -flto -nostdlib -Wl,-n -Wl,-q > > -Wl,--gc-sections -Wl,-z,common-page-size=0x40 > > -Wl,--entry,$(IMAGE_ENTRY_POINT) -Wl,-u,$(IMAGE_ENTRY_POINT) > > -Wl,-Map,$(DEST_DI...
2018 May 11
0
Wine release 3.8
...2: Handle writing an iconresource entry in SHGetSetFolderCustomSettings. winmm: Return error in waveInMessage if either dwParam1 or dwParam2 is null. atmlib: Add stub dll. atmlib: Add stub for ATMFinish. Martin Storsjo (2): arm64: Use __builtin_ms_va_list and __attribute__((ms_abi)) on arm64. configure: Detect MinGW-w64 ARM64 toolchains. Matteo Bruni (3): wined3d: Use staging resources to blit from CPU resources in the fixed-function blitter. wined3d: Implement P8 blits in the GLSL blitter. wined3d: Rename gen_planar_yuv_read() to gen_packed_yuv_read...
2019 Jun 10
0
Wine release 4.10
...adsldp: Build with msvcrt. adsldpc: Build with msvcrt. advpack: Build with msvcrt. amsi: Build with msvcrt. apphelp: Build with msvcrt. atl: Build with msvcrt. atlthunk: Build with msvcrt. makefiles: Build fonts in quiet mode. makefiles: Default to ms_abi for 64-bit msvcrt builds. atmlib: Build with msvcrt. authz: Build with msvcrt. avifil32: Build with msvcrt. avifile: Build with msvcrt. avrt: Build with msvcrt. bluetoothapis: Build with msvcrt. browseui: Build with msvcrt. bthprops.cpl: Build with ms...