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

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

Issue 7134018: Don't wrap system headers with extern "C" (Closed) Base URL: http://git.chromium.org/native_client/nacl-gcc.git@master
Patch Set: Ready for commit Created 9 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
(...skipping 19 matching lines...) Expand all
30 #ifdef IN_TARGET_LIBS 30 #ifdef IN_TARGET_LIBS
31 #undef BIGGEST_FIELD_ALIGNMENT 31 #undef BIGGEST_FIELD_ALIGNMENT
32 #define BIGGEST_FIELD_ALIGNMENT 128 32 #define BIGGEST_FIELD_ALIGNMENT 128
33 #endif 33 #endif
34 34
35 /* These definitions modify those in i386elf.h. */ 35 /* These definitions modify those in i386elf.h. */
36 36
37 #undef TARGET_VERSION 37 #undef TARGET_VERSION
38 #define TARGET_VERSION fprintf (stderr, " (NativeClient)"); 38 #define TARGET_VERSION fprintf (stderr, " (NativeClient)");
39 39
40 /* Don't enclose system header files in extern "C" {...}. */
41 #define NO_IMPLICIT_EXTERN_C
42
40 /* Provide a STARTFILE_SPEC. Here we add 43 /* Provide a STARTFILE_SPEC. Here we add
41 the GNU/Linux magical crtbegin.o file (see crtstuff.c) which provides part of 44 the GNU/Linux magical crtbegin.o file (see crtstuff.c) which provides part of
42 the support for getting C++ file-scope static object constructed before 45 the support for getting C++ file-scope static object constructed before
43 entering `main'. */ 46 entering `main'. */
44 47
45 #undef STARTFILE_SPEC 48 #undef STARTFILE_SPEC
46 #if defined HAVE_LD_PIE 49 #if defined HAVE_LD_PIE
47 #define STARTFILE_SPEC \ 50 #define STARTFILE_SPEC \
48 "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \ 51 "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
49 crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" 52 crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 #undef TARGET_USE_BT 292 #undef TARGET_USE_BT
290 #define TARGET_USE_BT (ix86_tune_features[X86_TUNE_USE_BT] && !TARGET_ NACL) 293 #define TARGET_USE_BT (ix86_tune_features[X86_TUNE_USE_BT] && !TARGET_ NACL)
291 294
292 #undef DBX_REGISTER_NUMBER 295 #undef DBX_REGISTER_NUMBER
293 #define DBX_REGISTER_NUMBER(n) \ 296 #define DBX_REGISTER_NUMBER(n) \
294 (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n]) 297 (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
295 298
296 #define DWARF2_ADDR_SIZE \ 299 #define DWARF2_ADDR_SIZE \
297 (TARGET_NACL ? (TARGET_64BIT ? 8 : 4) : \ 300 (TARGET_NACL ? (TARGET_64BIT ? 8 : 4) : \
298 (POINTER_SIZE / BITS_PER_UNIT)) 301 (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