This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/5] remove usage of ROUND_TYPE_SIZE from encoding.c
- From: Andrew Pinski <pinskia at gmail dot com>
- To: tbsaunde+gcc at tbsaunde dot org
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 31 Oct 2015 13:17:31 +0800
- Subject: Re: [PATCH 2/5] remove usage of ROUND_TYPE_SIZE from encoding.c
- Authentication-results: sourceware.org; auth=none
- References: <1446205692-22412-1-git-send-email-tbsaunde+gcc at tbsaunde dot org> <1446205692-22412-3-git-send-email-tbsaunde+gcc at tbsaunde dot org>
On Fri, Oct 30, 2015 at 7:48 PM, <tbsaunde+gcc@tbsaunde.org> wrote:
> From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
>
> gcc got rid of this target macro in 2003, so it seems safe to assume the
> alternate path works fine on all targets.
This is ok.
>
> libobjc/ChangeLog:
>
> 2015-10-30 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
>
> PR libobjc/24775
> * encoding.c (objc_layout_finish_structure): Remove usage of
> ROUND_TYPE_SIZE.
> ---
> libobjc/encoding.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/libobjc/encoding.c b/libobjc/encoding.c
> index abb6145..7de768f 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;
> }
> --
> 2.6.2
>