diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-10-08 00:14:08 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-10-08 00:14:08 +0000 |
commit | 7602d070dca35a848aff1d72cf0724f02df72f62 (patch) | |
tree | a2764ad033962e9e3dd2918f9b16a52c40277624 /locale/programs/ld-collate.c | |
parent | f17f137aaf563daf1ce5532763455b09f5db9b8f (diff) | |
download | glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.gz glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.xz glibc-7602d070dca35a848aff1d72cf0724f02df72f62.zip |
Clean up locale file alignment handling.
Diffstat (limited to 'locale/programs/ld-collate.c')
-rw-r--r-- | locale/programs/ld-collate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c index 31e2d05859..d88a6de56e 100644 --- a/locale/programs/ld-collate.c +++ b/locale/programs/ld-collate.c @@ -44,6 +44,7 @@ static inline void __attribute ((always_inline)) obstack_int32_grow (struct obstack *obstack, int32_t data) { + assert (LOCFILE_ALIGNED_P (obstack_object_size (obstack))); data = maybe_swap_uint32 (data); if (sizeof (int32_t) == sizeof (int)) obstack_int_grow (obstack, data); @@ -55,6 +56,7 @@ static inline void __attribute ((always_inline)) obstack_int32_grow_fast (struct obstack *obstack, int32_t data) { + assert (LOCFILE_ALIGNED_P (obstack_object_size (obstack))); data = maybe_swap_uint32 (data); if (sizeof (int32_t) == sizeof (int)) obstack_int_grow_fast (obstack, data); |