sizes aren't powers of two, choose a more suitable alignment
than (unsigned)(-1).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216350
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-10-16 DJ Delorie <dj@redhat.com>
+
+ * lto-object.c (lto_obj_begin_section): In the event that pointer
+ sizes aren't powers of two, choose a more suitable alignment
+ than (unsigned)(-1).
+
2014-10-14 DJ Delorie <dj@redhat.com>
* lto-lang.c (lto_build_c_type_nodes): Check intN types for
&& lo->sobj_w != NULL
&& lo->section == NULL);
- align = exact_log2 (POINTER_SIZE / BITS_PER_UNIT);
+ align = ceil_log2 (POINTER_SIZE_UNITS);
lo->section = simple_object_write_create_section (lo->sobj_w, name, align,
&errmsg, &err);
if (lo->section == NULL)