Displaying 3 results from an estimated 3 matches for "__fltused".
2010 Sep 18
0
[LLVMdev] Where to emit an undefined fltused symbol if floating point is used?
...lit and running
it on Windows I've discovered a major problem with COFF emission. Any
test that uses floating point instructions currently fails with the
integrated assembler with:
runtime error R6002
- floating point support not loaded
A quick look with nm shows that MSVC emits an undefined __fltused
symbol if _any_ floating point instructions are used. I think this is
required for the kernel to save the floating point registers, and thus
the Microsoft C runtime complains if you use floating point without
__fltused.
The attached code duplicates this failure when compiled with (on Windows):
% c...
2003 Jun 16
2
using win32 static libs
...;)
}
----------------------------------------------------------------------
the compiler runs fine but the linker complains:
----------------------------------------------------------------------
OggVorbisTest error LNK2005: __ldused already defined in a previous module
OggVorbisTest error LNK2005: __fltused already defined in a previous module
OggVorbisTest error LNK2005: _exit already defined in msvcrt.lib(MSVCR71.dll)
OggVorbisTest error LNK2005: __exit already defined in msvcrt.lib(MSVCR71.dll)
OggVorbisTest error LNK2005: __cexit already defined in msvcrt.lib(MSVCR71.dll)
OggVorbisTest error LNK20...
2009 Jan 07
3
[LLVMdev] LLVM optmization
...}
; 24 :
; 25 : return varx ;
; 26 : }
ret 0
_TESTE ENDP
_TEXT ENDS
PUBLIC ??_C at _0CG@LBAPCNHJ@?6?$CI2?$CJleu?5?$CFld?5threadid?5?$DN?5?5?$CFld?5seqt@ ; `string'
PUBLIC __real at 3ff0000000000000
PUBLIC _thread_call
EXTRN _printf:PROC
EXTRN __imp__GetCurrentThreadId at 0:PROC
EXTRN __fltused:DWORD
; COMDAT ??_C at _0CG@LBAPCNHJ@?6?$CI2?$CJleu?5?$CFld?5threadid?5?$DN?5?5?$CFld?5seqt@
CONST SEGMENT
??_C at _0CG@LBAPCNHJ@?6?$CI2?$CJleu?5?$CFld?5threadid?5?$DN?5?5?$CFld?5seqt@ DB 0aH
DB '(2)leu %ld threadid = %ld seqt=%ld ', 00H ; `string'
CONST ENDS
; COMDAT __real at 3ff000...