| OLD | NEW |
| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 #ifdef __native_client__ | 189 #ifdef __native_client__ |
| 190 #define HOST_LACKS_INODE_NUMBERS 1 | 190 #define HOST_LACKS_INODE_NUMBERS 1 |
| 191 #endif | 191 #endif |
| 192 | 192 |
| 193 #undef TARGET_OS_CPP_BUILTINS | 193 #undef TARGET_OS_CPP_BUILTINS |
| 194 #define TARGET_OS_CPP_BUILTINS() \ | 194 #define TARGET_OS_CPP_BUILTINS() \ |
| 195 do \ | 195 do \ |
| 196 { \ | 196 { \ |
| 197 LINUX_TARGET_OS_CPP_BUILTINS(); \ | 197 LINUX_TARGET_OS_CPP_BUILTINS(); \ |
| 198 builtin_define ("__native_client__=1"); \ | 198 builtin_define ("__native_client__=1"); \ |
| 199 builtin_define ("__LITTLE_ENDIAN__"); \ |
| 199 } \ | 200 } \ |
| 200 while (0) | 201 while (0) |
| 201 | 202 |
| 202 /* NaCl uses are using ILP32 model even on x86-84. */ | 203 /* NaCl uses are using ILP32 model even on x86-84. */ |
| 203 #undef LONG_TYPE_SIZE | 204 #undef LONG_TYPE_SIZE |
| 204 #define LONG_TYPE_SIZE 32 | 205 #define LONG_TYPE_SIZE 32 |
| 205 #define POINTER_SIZE 32 | 206 #define POINTER_SIZE 32 |
| 206 #define POINTERS_EXTEND_UNSIGNED 1 | 207 #define POINTERS_EXTEND_UNSIGNED 1 |
| 207 #undef LONG_DOUBLE_TYPE_SIZE | 208 #undef LONG_DOUBLE_TYPE_SIZE |
| 208 #define LONG_DOUBLE_TYPE_SIZE 64 | 209 #define LONG_DOUBLE_TYPE_SIZE 64 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 (POINTER_SIZE / BITS_PER_UNIT)) | 271 (POINTER_SIZE / BITS_PER_UNIT)) |
| 271 | 272 |
| 272 /* -Os is broken and we aren't putting the work into fixing it. | 273 /* -Os is broken and we aren't putting the work into fixing it. |
| 273 See http://code.google.com/p/nativeclient/issues/detail?id=2284 */ | 274 See http://code.google.com/p/nativeclient/issues/detail?id=2284 */ |
| 274 #undef SUBTARGET_OVERRIDE_OPTIONS | 275 #undef SUBTARGET_OVERRIDE_OPTIONS |
| 275 #define SUBTARGET_OVERRIDE_OPTIONS \ | 276 #define SUBTARGET_OVERRIDE_OPTIONS \ |
| 276 do { \ | 277 do { \ |
| 277 if (TARGET_NACL && optimize_size) \ | 278 if (TARGET_NACL && optimize_size) \ |
| 278 error ("-Os is not supported by the Native Client compiler"); \ | 279 error ("-Os is not supported by the Native Client compiler"); \ |
| 279 } while (0) | 280 } while (0) |
| OLD | NEW |