Commit 0bad812c authored by sebastian.buchwald1's avatar sebastian.buchwald1
Browse files

AMD64: Support -mno-red-zone for gcc compatibility.

parent fe15b6f0
......@@ -29,7 +29,8 @@
* Note: "X64 ABI" refers to the Windows ABI for x86_64 (the SysV ABI
* calls itself "AMD64 ABI").
*/
bool amd64_use_x64_abi = false;
bool amd64_use_x64_abi = false;
bool amd64_use_red_zone = true;
static const unsigned ignore_regs[] = {
REG_RSP,
......
......@@ -832,7 +832,8 @@ void be_init_arch_amd64(void)
FIRM_DBG_REGISTER(dbg, "firm.be.amd64.cg");
static const lc_opt_table_entry_t options[] = {
LC_OPT_ENT_BOOL("x64abi", "Use x64 ABI (otherwise system V)", &amd64_use_x64_abi),
LC_OPT_ENT_BOOL("x64abi", "Use x64 ABI (otherwise system V)", &amd64_use_x64_abi),
LC_OPT_ENT_BOOL("no-red-zone", "gcc compatibility", &amd64_use_red_zone),
LC_OPT_LAST
};
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
......
......@@ -17,6 +17,7 @@ extern pmap *amd64_constants; /**< A map of entities that store const tarvals */
extern ir_mode *amd64_mode_xmm;
extern bool amd64_use_red_zone;
extern bool amd64_use_x64_abi;
#define AMD64_REGISTER_SIZE 8
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment