[Bug target/50818] va_list is filled incorrectly in functions with ms_abi attribute on amd64

2016-04-16 Thread steven.shi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50818 Steven Shi changed: What|Removed |Added CC||steven.shi at intel dot com --- Comment #5

[Bug target/50818] va_list is filled incorrectly in functions with ms_abi attribute on amd64

2016-04-16 Thread steven.shi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50818 --- Comment #6 from Steven Shi --- BTW, latest LLVM/Clang 3.8 release has fixed this va_list ms_abi issue, please see below email thread. Does GCC really cannot fix it as LLVM/Clang? This issue really impact Uefi firmware building with GCC. http

[Bug target/50818] va_list is filled incorrectly in functions with ms_abi attribute on amd64

2016-08-23 Thread steven.shi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50818 --- Comment #9 from Steven Shi --- GCC6.10 lto fails to support below MS ABI buildin of va list, but GCC5 works. This is a regression bug for GCC6. I suspect current GCC trunk also has this regression bug. __builtin_ms_va_list ap; __builtin_m

[Bug c/77341] New: GCC6 va_list MS ABI buildin regression bug

2016-08-23 Thread steven.shi at intel dot com
Assignee: unassigned at gcc dot gnu.org Reporter: steven.shi at intel dot com Target Milestone: --- GCC6.10 lto fails to support below MS ABI buildin of va list, but GCC5 works. This is a regression bug for GCC6. I suspect current GCC trunk also has this regression bug

[Bug lto/70955] [6/7 Regression] Wrong code generation for __builtin_ms_va_list with -flto

2016-08-23 Thread steven.shi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70955 --- Comment #16 from Steven Shi --- How to checkout the 6.3 code from GCC trunk? I hope to verify this fix on Uefi firmware GCC LTO build.

[Bug lto/70955] [6/7 Regression] Wrong code generation for __builtin_ms_va_list with -flto

2016-08-23 Thread steven.shi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70955 --- Comment #19 from Steven Shi --- (In reply to vries from comment #18) > Created attachment 39484 [details] > Tentative patch using attributes ms_abi/sysv_abi > > not build or regression tested yet, but at least makes test-case pass. Vries, I

[Bug lto/70955] [6/7 Regression] Wrong code generation for __builtin_ms_va_list with -flto

2016-08-23 Thread steven.shi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70955 --- Comment #21 from Steven Shi --- Vries, Sorry, my bad. I didn't apply your patch completely. Yes, your patch works. And with your patch, my UEFU firmware gcc lto build pass and boot successfully. Hope we could check in a formal fix ASAP, becau