summaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-16 21:06:34 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-16 21:06:34 +0000
commitc219a63831221ac116b1b982b24c9aa73afe1883 (patch)
treea84744c4d5448dd9734ea86e2bf565d9bb8370ed /gcc/lto
parent0b3de590767dc25102f1537f778c2cec6ab29339 (diff)
downloadgcc-c219a63831221ac116b1b982b24c9aa73afe1883.tar.gz
* 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). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216350 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog6
-rw-r--r--gcc/lto/lto-object.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 7ae4d8a54a3..5b80db8eefb 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,9 @@
+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
diff --git a/gcc/lto/lto-object.c b/gcc/lto/lto-object.c
index 323f7b2a74e..8e26079d309 100644
--- a/gcc/lto/lto-object.c
+++ b/gcc/lto/lto-object.c
@@ -338,7 +338,7 @@ lto_obj_begin_section (const char *name)
&& 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)