Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Side by Side Diff: gcc/gcc/config/i386/nacl.h

Issue 2846020: [gcc] Introduce TARGET_NACL; (Closed) Base URL: ssh://git@chromiumos-git/nacl-toolchain.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Target definitions for GCC for NativeClient using ELF 1 /* Target definitions for GCC for NativeClient using ELF
2 Copyright (C) 1988, 1991, 1995, 2000, 2001, 2002 2 Copyright (C) 1988, 1991, 1995, 2000, 2001, 2002
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5 Derived from sysv4.h written by Ron Guilmette (rfg@netcom.com). 5 Derived from sysv4.h written by Ron Guilmette (rfg@netcom.com).
6 6
7 This file is part of GCC. 7 This file is part of GCC.
8 8
9 GCC is free software; you can redistribute it and/or modify 9 GCC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by 10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option) 11 the Free Software Foundation; either version 2, or (at your option)
12 any later version. 12 any later version.
13 13
14 GCC is distributed in the hope that it will be useful, 14 GCC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details. 17 GNU General Public License for more details.
18 18
19 You should have received a copy of the GNU General Public License 19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING. If not, write to 20 along with GCC; see the file COPYING. If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330, 21 the Free Software Foundation, 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */ 22 Boston, MA 02111-1307, USA. */
23 23
24 #define TARGET_NACL (flag_control_integrity)
25
24 /* These definitions modify those in i386elf.h. */ 26 /* These definitions modify those in i386elf.h. */
25 27
26 #undef TARGET_VERSION 28 #undef TARGET_VERSION
27 #define TARGET_VERSION fprintf (stderr, " (NativeClient)"); 29 #define TARGET_VERSION fprintf (stderr, " (NativeClient)");
28 30
29 /* Provide a STARTFILE_SPEC. Here we add 31 /* Provide a STARTFILE_SPEC. Here we add
30 the GNU/Linux magical crtbegin.o file (see crtstuff.c) which provides part of 32 the GNU/Linux magical crtbegin.o file (see crtstuff.c) which provides part of
31 the support for getting C++ file-scope static object constructed before 33 the support for getting C++ file-scope static object constructed before
32 entering `main'. */ 34 entering `main'. */
33 35
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 /*xmm0,xmm1,xmm2,xmm3,xmm4,xmm5,xmm6,xmm7*/ \ 264 /*xmm0,xmm1,xmm2,xmm3,xmm4,xmm5,xmm6,xmm7*/ \
263 1, 1, 1, 1, 1, 1, 1, 1, \ 265 1, 1, 1, 1, 1, 1, 1, 1, \
264 /* mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7*/ \ 266 /* mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7*/ \
265 1, 1, 1, 1, 1, 1, 1, 1, \ 267 1, 1, 1, 1, 1, 1, 1, 1, \
266 /* r8, r9, r10, r11, r12, r13, r14, r15*/ \ 268 /* r8, r9, r10, r11, r12, r13, r14, r15*/ \
267 1, 1, 1, 1, 2, 2, 2, 1, \ 269 1, 1, 1, 1, 2, 2, 2, 1, \
268 /*xmm8,xmm9,xmm10,xmm11,xmm12,xmm13,xmm14,xmm15*/ \ 270 /*xmm8,xmm9,xmm10,xmm11,xmm12,xmm13,xmm14,xmm15*/ \
269 1, 1, 1, 1, 1, 1, 1, 1 } 271 1, 1, 1, 1, 1, 1, 1, 1 }
270 /* Leave is forbidden in NaCl mode */ 272 /* Leave is forbidden in NaCl mode */
271 #undef TARGET_USE_LEAVE 273 #undef TARGET_USE_LEAVE
272 #define TARGET_USE_LEAVE» (ix86_tune_features[X86_TUNE_USE_LEAVE] && !flag _control_integrity) 274 #define TARGET_USE_LEAVE» (ix86_tune_features[X86_TUNE_USE_LEAVE] && !TARG ET_NACL)
273 #undef TARGET_USE_BT 275 #undef TARGET_USE_BT
274 #define TARGET_USE_BT» » (ix86_tune_features[X86_TUNE_USE_BT] && !flag_co ntrol_integrity) 276 #define TARGET_USE_BT» » (ix86_tune_features[X86_TUNE_USE_BT] && !TARGET_ NACL)
275 277
276 #undef DBX_REGISTER_NUMBER 278 #undef DBX_REGISTER_NUMBER
277 #define DBX_REGISTER_NUMBER(n) \ 279 #define DBX_REGISTER_NUMBER(n) \
278 (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n]) 280 (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
279 281
280 #define DWARF2_ADDR_SIZE \ 282 #define DWARF2_ADDR_SIZE \
281 (flag_control_integrity ? (TARGET_64BIT ? 8 : 4) : \ 283 (TARGET_NACL ? (TARGET_64BIT ? 8 : 4) : \
282 (POINTER_SIZE / BITS_PER_UNIT)) 284 (POINTER_SIZE / BITS_PER_UNIT))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698