diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ChangeLog | 8 | ||||
| -rw-r--r-- | lib/eu-config.h | 9 |
2 files changed, 13 insertions, 4 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 4911cc19..720c98df 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,11 @@ +2015-05-31 Mark Wielaard <[email protected]> + + * eu-config.h (ALLOW_UNALIGNED): Define when ! CHECK_UNDEFINED. + +2015-04-23 Max Filippov <[email protected]> + + * eu-config.h: Use SYMBOL_VERSIONING as guard. + 2014-01-17 Lei Zhang <[email protected]> * crc32_file.c: Include config.h. diff --git a/lib/eu-config.h b/lib/eu-config.h index d89f3a8a..88cac670 100644 --- a/lib/eu-config.h +++ b/lib/eu-config.h @@ -73,7 +73,8 @@ /* Define ALLOW_UNALIGNED if the architecture allows operations on unaligned memory locations. */ -#if defined __i386__ || defined __x86_64__ +#define SANITIZE_UNDEFINED 1 +#if (defined __i386__ || defined __x86_64__) && ! CHECK_UNDEFINED # define ALLOW_UNALIGNED 1 #else # define ALLOW_UNALIGNED 0 @@ -174,7 +175,7 @@ hakmem_popcount (unsigned int x) #endif /* HAVE_BUILTIN_POPCOUNT */ -#ifdef SHARED +#ifdef SYMBOL_VERSIONING # define OLD_VERSION(name, version) \ asm (".globl _compat." #version "." #name "\n" \ "_compat." #version "." #name " = " #name "\n" \ @@ -192,8 +193,8 @@ hakmem_popcount (unsigned int x) # define OLD_VERSION(name, version) /* Nothing for static linking. */ # define NEW_VERSION(name, version) /* Nothing for static linking. */ # define COMPAT_VERSION_NEWPROTO(name, version, prefix) \ - error "should use #ifdef SHARED" -# define COMPAT_VERSION(name, version, prefix) error "should use #ifdef SHARED" + error "should use #ifdef SYMBOL_VERSIONING" +# define COMPAT_VERSION(name, version, prefix) error "should use #ifdef SYMBOL_VERSIONING" #endif |
