[Bug target/83334] __builtin_ms_va_copy used in function with sysv_abi is broken

2017-12-12 Thread zenith432 at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83334 --- Comment #5 from zenith432 at users dot sourceforge.net --- I looked at the source a bit, and I see what's going on. __builtin_ms_va_copy and __builtin_sysv_va_copy are treated both the same as __builtin_va_copy, which is implemented in gcc/bui

[Bug target/83334] __builtin_ms_va_copy used in function with sysv_abi is broken

2017-12-11 Thread zenith432 at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83334 --- Comment #4 from zenith432 at users dot sourceforge.net --- It's not PR 50818 Here's the source code for sample1 = #include #define MS_ABI __attribute__((ms_abi)) int funcc(int c, __builtin_ms_va_list ap) { int i, s; for

[Bug target/83334] __builtin_ms_va_copy used in function with sysv_abi is broken

2017-12-11 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83334 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #3 from

[Bug target/83334] __builtin_ms_va_copy used in function with sysv_abi is broken

2017-12-11 Thread zenith432 at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83334 --- Comment #2 from zenith432 at users dot sourceforge.net --- You're misquoting my summary. It does not say sysv ABI varargs function. It says sys ABI function. Check the samples. A __builtin_ms_va_list is constructed (__builtin_ms_va_started

[Bug target/83334] __builtin_ms_va_copy used in function with sysv_abi is broken

2017-12-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83334 Richard Biener changed: What|Removed |Added Target||x86_64-*-* i?86-*-* --- Comment #1 from