Define DR_LEN_8 only if __x86_64__ is defined
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 1 Jun 2012 20:06:37 +0000 (13:06 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 1 Jun 2012 20:06:37 +0000 (13:06 -0700)
ChangeLog
sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h

index a005bd7..e5f68f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #14117]
+       * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
+       Define only if __x86_64__ is defined.
+
 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #14048]
index 84a9017..de10277 100644 (file)
@@ -54,7 +54,9 @@
 #define DR_LEN_1 (0x0)       /* Settings for data length to trap on */
 #define DR_LEN_2 (0x4)
 #define DR_LEN_4 (0xC)
-#define DR_LEN_8 (0x8)
+#ifdef __x86_64__
+# define DR_LEN_8 (0x8)
+#endif
 
 /* The low byte to the control register determine which registers are
    enabled.  There are 4 fields of two bits.  One bit is "local", meaning