aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2015-11-03 22:43:22 +0000
committerTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2015-11-03 22:43:22 +0000
commit0ca95b99f46a6da9ac6a2ceef85b94c7fa35debb (patch)
treeb81ee8bc604da5cf8868fb1af4f43e486e730fa5
parent79ab088f762f483d9f3fe5d010a6afdfd849cca7 (diff)
remove usage of ROUND_TYPE_SIZE from encoding.c
gcc got rid of this target macro in 2003, so it seems safe to assume the alternate path works fine on all targets. libobjc/ChangeLog: 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> PR libobjc/24775 * encoding.c (objc_layout_finish_structure): Remove usage of ROUND_TYPE_SIZE. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@229727 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libobjc/ChangeLog6
-rw-r--r--libobjc/encoding.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog
index 8aa2a217844..3405ba71bef 100644
--- a/libobjc/ChangeLog
+++ b/libobjc/ChangeLog
@@ -1,3 +1,9 @@
+2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
+ PR libobjc/24775
+ * encoding.c (objc_layout_finish_structure): Remove usage of
+ ROUND_TYPE_SIZE.
+
2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
PR libobjc/24775
diff --git a/libobjc/encoding.c b/libobjc/encoding.c
index abb61454097..7de768f4509 100644
--- a/libobjc/encoding.c
+++ b/libobjc/encoding.c
@@ -1245,14 +1245,8 @@ void objc_layout_finish_structure (struct objc_struct_layout *layout,
layout->record_align = MAX (1, layout->record_align);
#endif
-#ifdef ROUND_TYPE_SIZE
- layout->record_size = ROUND_TYPE_SIZE (layout->original_type,
- layout->record_size,
- layout->record_align);
-#else
/* Round the size up to be a multiple of the required alignment */
layout->record_size = ROUND (layout->record_size, layout->record_align);
-#endif
layout->type = NULL;
}