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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/config/i386/nacl.h
diff --git a/gcc/gcc/config/i386/nacl.h b/gcc/gcc/config/i386/nacl.h
index c22ad1ce72224b0a3481cb87b10ac5fe9ee08386..2a8bb97c45aeaa4486e988ac3badccf3dc6a9881 100644
--- a/gcc/gcc/config/i386/nacl.h
+++ b/gcc/gcc/config/i386/nacl.h
@@ -21,6 +21,8 @@ along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#define TARGET_NACL (flag_control_integrity)
+
/* These definitions modify those in i386elf.h. */
#undef TARGET_VERSION
@@ -269,14 +271,14 @@ Boston, MA 02111-1307, USA. */
1, 1, 1, 1, 1, 1, 1, 1 }
/* Leave is forbidden in NaCl mode */
#undef TARGET_USE_LEAVE
-#define TARGET_USE_LEAVE (ix86_tune_features[X86_TUNE_USE_LEAVE] && !flag_control_integrity)
+#define TARGET_USE_LEAVE (ix86_tune_features[X86_TUNE_USE_LEAVE] && !TARGET_NACL)
#undef TARGET_USE_BT
-#define TARGET_USE_BT (ix86_tune_features[X86_TUNE_USE_BT] && !flag_control_integrity)
+#define TARGET_USE_BT (ix86_tune_features[X86_TUNE_USE_BT] && !TARGET_NACL)
#undef DBX_REGISTER_NUMBER
#define DBX_REGISTER_NUMBER(n) \
(TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
#define DWARF2_ADDR_SIZE \
- (flag_control_integrity ? (TARGET_64BIT ? 8 : 4) : \
- (POINTER_SIZE / BITS_PER_UNIT))
+ (TARGET_NACL ? (TARGET_64BIT ? 8 : 4) : \
+ (POINTER_SIZE / BITS_PER_UNIT))
« 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