Commit 4ee6515e by Trevor Saunders Committed by Trevor Saunders

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.

From-SVN: r229727
parent d10e1bb5
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> 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
PR libobjc/24775 PR libobjc/24775
......
...@@ -1245,14 +1245,8 @@ void objc_layout_finish_structure (struct objc_struct_layout *layout, ...@@ -1245,14 +1245,8 @@ void objc_layout_finish_structure (struct objc_struct_layout *layout,
layout->record_align = MAX (1, layout->record_align); layout->record_align = MAX (1, layout->record_align);
#endif #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 */ /* Round the size up to be a multiple of the required alignment */
layout->record_size = ROUND (layout->record_size, layout->record_align); layout->record_size = ROUND (layout->record_size, layout->record_align);
#endif
layout->type = NULL; layout->type = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment