src/x86/win64.S: Support compiling on non-WIN64 platforms
authorJosh Triplett <josh@joshtriplett.org>
Sun, 26 Jul 2015 23:18:57 +0000 (16:18 -0700)
committerJosh Triplett <josh@joshtriplett.org>
Sun, 26 Jul 2015 23:18:57 +0000 (16:18 -0700)
commitc8e82d9fbffd3eeaef0266a1aac64d7bd13ee9c3
treed972abd8565e452449eb2aebfc8c0cddd98b9ffa
parent17ffc3655a531c116e9eb9cc933e50bb1e5c47f8
src/x86/win64.S: Support compiling on non-WIN64 platforms

Non-WIN64 versions of the GNU assembler don't support the .seh_*
directives for structured exception handling, so wrap them in a macro
that compiles to nothing.

Handle the registers used for the non-Windows x86-64 calling convention
when on a non-Windows platform.  Distinguish between cases that should
refer to the native argument registers (defined as arg0, arg1, arg2, and
arg3) and cases that should always refer to the Windows argument
registers.
src/x86/win64.S