diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2013-11-06 21:52:29 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2013-11-06 13:52:29 -0800 |
commit | e276866fd756cad24eb1a50c0abfceb8bf043e98 (patch) | |
tree | 473b36272f9837b3cd05b7e589d9873a2af88043 /libsanitizer | |
parent | f5c36cfc4b20a82994c2682c9457120c99b42911 (diff) | |
download | gcc-e276866fd756cad24eb1a50c0abfceb8bf043e98.tar.gz |
Check __x86_64__ for FPU state
PR sanitizer/59018
* sanitizer_common/sanitizer_platform_limits_posix.cc
(struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
defined.
From-SVN: r204483
Diffstat (limited to 'libsanitizer')
-rw-r--r-- | libsanitizer/ChangeLog | 7 | ||||
-rw-r--r-- | libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 03b45e8fadd..3d790fe75d7 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,6 +1,13 @@ 2013-11-05 H.J. Lu <hongjiu.lu@intel.com> PR sanitizer/59018 + * sanitizer_common/sanitizer_platform_limits_posix.cc + (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is + defined. + +2013-11-05 H.J. Lu <hongjiu.lu@intel.com> + + PR sanitizer/59018 * sanitizer_common/sanitizer_platform_limits_linux.cc (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is defined. diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc index 971a19314d8..b771583d064 100644 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -191,7 +191,7 @@ namespace __sanitizer { (defined(__i386) || defined (__x86_64)) // NOLINT unsigned struct_user_regs_struct_sz = sizeof(struct user_regs_struct); unsigned struct_user_fpregs_struct_sz = sizeof(struct user_fpregs_struct); -#if __WORDSIZE == 64 +#ifdef __x86_64 unsigned struct_user_fpxregs_struct_sz = 0; #else unsigned struct_user_fpxregs_struct_sz = sizeof(struct user_fpxregs_struct); |