From 5a579c3b65d5571b3d10d2b7e22d4c1915cc6b1c Mon Sep 17 00:00:00 2001 From: Leif Ekblad Date: Mon, 28 Jan 2013 20:42:55 +0000 Subject: config.gcc (i[34567]86-*-rdos*, [...]): New targets. * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets. * config/i386/i386.h (TARGET_RDOS): New macro. (DEFAULT_LARGE_SECTION_THRESHOLD): New macro. * config/i386/i386.c (ix86_option_override_internal): For 64bit TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1. * config/i386/i386.opt (mlarge-data-threshold): Initialize to DEFAULT_LARGE_SECTION_THRESHOLD. * config/i386/i386.md (R14_REG, R15_REG): New constants. * config/i386/rdos.h: New file. * config/i386/rdos64.h: New file. From-SVN: r195516 --- gcc/config/i386/i386.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/config/i386/i386.h') diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index af293b4..a69862c 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -518,6 +518,9 @@ extern tree x86_mfence; #define MACHOPIC_INDIRECT 0 #define MACHOPIC_PURE 0 +/* For the RDOS */ +#define TARGET_RDOS 0 + /* For the Windows 64-bit ABI. */ #define TARGET_64BIT_MS_ABI (TARGET_64BIT && ix86_cfun_abi () == MS_ABI) @@ -2081,6 +2084,10 @@ do { \ asm (SECTION_OP "\n\t" \ "call " CRT_MKSTR(__USER_LABEL_PREFIX__) #FUNC "\n" \ TEXT_SECTION_ASM_OP); + +/* Default threshold for putting data in large sections + with x86-64 medium memory model */ +#define DEFAULT_LARGE_SECTION_THRESHOLD 65536 /* Which processor to tune code generation for. */ -- cgit v1.1