History

64-bit tests now pass (well, nearly).

tcctest1-3 fail, but this appears to be due to bugs in GCC rather than TCC (from manual inspection of the output).

James Lyon committed 13 years ago

Commit 5c35ba61 parent 8a81f9e8 files · +295 −142Browse files

Showing the changes to include/stdarg.h (1 of 8 files). Show all

Unified · Split

include/stdarg.h+3−3
@@ -19,9 +19,9 @@ void __va_end(va_list ap); · 18 unmodified lines
1919
2020 #else /* _WIN64 */
2121 typedef char *va_list;
22−#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+7)&~7)
23−#define va_arg(ap,type) (ap += (sizeof(type)+7)&~7, *(type *)(ap - ((sizeof(type)+7)&~7)))
24−#define va_copy(dest, src) (dest) = (src)
22+#define va_start(ap,last) __builtin_va_start(ap,last)
23+#define va_arg(ap,type) (ap += 8, sizeof(type)<=8 ? *(type*)ap : **(type**)ap)
24+#define va_copy(dest, src) ((dest) = (src))
2525 #define va_end(ap)
2626 #endif
2727

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