public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: tbsaunde+gcc@tbsaunde.org
To: gcc-patches@gcc.gnu.org
Subject: [PATCH 2/5] remove usage of ROUND_TYPE_SIZE from encoding.c
Date: Fri, 30 Oct 2015 11:48:00 -0000	[thread overview]
Message-ID: <1446205692-22412-3-git-send-email-tbsaunde+gcc@tbsaunde.org> (raw)
In-Reply-To: <1446205692-22412-1-git-send-email-tbsaunde+gcc@tbsaunde.org>

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.

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

  parent reply	other threads:[~2015-10-30 11:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-30 11:48 [PATCH 0/5] remove tm.h " tbsaunde+gcc
2015-10-30 11:48 ` [PATCH 4/5] remove usage of BIGGEST_FIELD_ALIGNMENT in encoding.c tbsaunde+gcc
2015-10-31  6:56   ` Andrew Pinski
2015-11-03  3:11     ` Trevor Saunders
2015-10-30 11:48 ` [PATCH 3/5] stop using ROUND_TYPE_ALIGN in libobjc/ tbsaunde+gcc
2015-10-31  5:20   ` Andrew Pinski
2015-10-30 11:48 ` [PATCH 1/5] 2015-01-25 Paul Thomas <pault@gcc.gnu.org> tbsaunde+gcc
2015-10-30 12:13   ` Bernd Schmidt
2015-10-30 12:28     ` Trevor Saunders
2015-10-30 11:48 ` tbsaunde+gcc [this message]
2015-10-31  5:18   ` [PATCH 2/5] remove usage of ROUND_TYPE_SIZE from encoding.c Andrew Pinski
2015-10-30 11:59 ` [PATCH 5/5] remove usage of ADJUST_FIELD_ALIGN in encoding.c tbsaunde+gcc
2015-10-30 12:10   ` Bernd Schmidt
2015-10-30 12:17     ` Richard Biener
2015-10-30 12:28       ` Bernd Schmidt
2015-10-30 12:51         ` Richard Biener
2015-10-30 13:14           ` Bernd Schmidt
2015-10-31  7:33             ` Andrew Pinski
2015-11-03  2:51               ` Trevor Saunders
2015-10-30 13:11       ` Trevor Saunders
2015-10-30 15:47 ` [PATCH 0/5] remove tm.h from encoding.c Mike Stump

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1446205692-22412-3-git-send-email-tbsaunde+gcc@tbsaunde.org \
    --to=tbsaunde+gcc@tbsaunde.org \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).