History

libtcc1.c: Fix __asm__() in __tcc_fpinit and __tcc_cvt_ftol

Ramsay Jones committed 13 years ago

Commit 235a6501 parent 9382d6f1 file · +3 −3Browse files

Unified · Split

lib/libtcc1.c+3−3
@@ -482,7 +482,7 @@ long long __ashldi3(long long a, int b) · 481 unmodified lines
482482 void __tcc_fpinit(void)
483483 {
484484 unsigned c = 0x137F;
485− __asm__ __volatile__ ("fldcw %0" : "=m" (c));
485+ __asm__ __volatile__ ("fldcw %0" : : "m" (c));
486486 }
487487 #endif
488488 long long __tcc_cvt_ftol(long double x)
@@ -491,9 +491,9 @@ long long __tcc_cvt_ftol(long double x) · 2 unmodified lines
491491 long long ret;
492492 __asm__ __volatile__ ("fnstcw %0" : "=m" (c0));
493493 c1 = c0 | 0x0C00;
494− __asm__ __volatile__ ("fldcw %0" : "=m" (c1));
494+ __asm__ __volatile__ ("fldcw %0" : : "m" (c1));
495495 __asm__ __volatile__ ("fistpll %0" : "=m" (ret));
496− __asm__ __volatile__ ("fldcw %0" : "=m" (c0));
496+ __asm__ __volatile__ ("fldcw %0" : : "m" (c0));
497497 return ret;
498498 }
499499 #endif /* !__x86_64__ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t