Rebase synchro ref to GitHub
- Use edx for CALLs instead of ecx, as the latter does not require any push to stack
- Make Linux AT&T asm code consistent with the MASM codeblock

(cherry picked from commit 3f9ec83ce07e7ce078662c41b177d2247da77758)
Use scaled indexing mode n=4 for addressing opStack, this way we can use the 8 bit offset value in %%bl to address an OPSTACK_SIZE of 1024 which was the old value.

(cherry picked from commit 61d6e6eb68741fec254081fe765c550826ce04f7)
Fix VM call for release version, bug introduced by myself in r1994

(cherry picked from commit a42239e1e50b6d019702bb5119fb1b49cacfd9fc)
I don't seem to get these constraints right. This should fix it

(cherry picked from commit b8ef880d85b00dc9cf6ec1a4a0711b7b0912a80f)
- Do assignment of value 0xDEADBEEF after the 4-byte alignment
- Add all GPR to clobber list as GCC function callAsmCall seems to change register r11 without saving it to stack first, which may result in SIGSEGV in VM_CallCompiled()

(cherry picked from commit e08299faf41b875ab6a4ddb615178b0a7535436e)
- Implement opStack protection: Use register %ebx for scaled indexed addressing mode to access opStack, make opStack push/pop operate on %bl portion only
- Add a third pass to VM compilation for computation of jump address offsets, removing the need to dereference into vm->instructionPointers[] for every call/jump
- Make use of 0F opcode prefix relative jumps
- Call Com_Memcpy for OP_BLOCK_COPY
- Fix several missing range checks for vm->dataBase memory access

(cherry picked from commit 4b1418c4add20ba3d888455dc21017f7564f9b57)
Add instruction number checks to jumps and calls to SPARC VM, patch by David Miller

(cherry picked from commit bd8d60f55c705192f4535db1a9a52cdb6137d8f3)
Fix compilation on mingw64

(cherry picked from commit eedccac818081df96a8f6c912b762f0580d01204)
Fix is*() functions for windows where long value is 4 bytes

(cherry picked from commit 3e229af71009130d111aebc97bf2777de4fad89b)
- Add x86_64 support to vm_x86.c
- Fix warning on mingw64

(cherry picked from commit c174143dc2f60be307488b5b2cb22c480d55fd7a)
- Use EmitCallDoSyscall() to call the jump violations function which guarantees 16-byte stack alignment
- Add x64 code for MSVC _asm() blocks, not tested yet.

(cherry picked from commit 71b8fe477d963b5a3b5d0c9f53f9510615f13fed)
Fix newlines in Com_Error, patch by Zack Middleton (#5023)

(cherry picked from commit 698a9c51ecf08a162f808943accb780e93e535ba)
Properly fill in occurances of "foobar" in GPL file headers, patch by Zack Middleton (#5024)

(cherry picked from commit 0c4313369535b0086127c2d6d194d50eebc494e1)
Fix wrong usage info message for cmd dumpuser, patch by Zack Middleton (#5024)

(cherry picked from commit e676b41c8fe68897f4f68805b739df0c7a5608b5)
OpenBSD compile fixes, patch provided by Jonathan Gray (#4994)

(cherry picked from commit bd2b704c910b4d7214138e16c75494f07f21767a)
Makefile fix for mips architecture (#4995):
Fixes the \n in the $ARCH variable for IRIX/mips

Patch by Patrick Baggett

(cherry picked from commit 960dca2cd446b33e702900bbe3280d88ee84b503)
(#5016) - Calls to trap_CM_PointContents don't update their origins based on moving entities (water). Patch by Ensiform

(cherry picked from commit eec06674fa89adf110c473d5878adfec104527eb)
Fix last merge for SmokinGuns
Fix return values for several syscall functions, patch by Zack Middleton (#5018)

(cherry picked from commit f5deb4a88b32d4a181c1e6874d21f9545ca0248a)