From 853b103d50c2c42a2e650ebeeab041919e12e617 Mon Sep 17 00:00:00 2001 From: pinskia Date: Thu, 13 Jan 2005 00:47:44 +0000 Subject: [PATCH] 2005-01-12 Andrew Pinski PR target/19334 * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead of TYPE_SIZE where we mean the number of bytes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93243 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/darwin.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 61d48463dad..b612dafd8ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-01-12 Andrew Pinski + + PR target/19334 + * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead + of TYPE_SIZE where we mean the number of bytes. + 2005-01-12 Aldy Hernandez * function.c (assign_parm_setup_block): Relax condition on diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index bfb962b1b71..f9f400837d2 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1037,7 +1037,7 @@ machopic_select_section (tree exp, int reloc, else if ((TREE_CODE (exp) == INTEGER_CST || TREE_CODE (exp) == REAL_CST) && flag_merge_constants) { - tree size = TYPE_SIZE (TREE_TYPE (exp)); + tree size = TYPE_SIZE_UNIT (TREE_TYPE (exp)); if (TREE_CODE (size) == INTEGER_CST && TREE_INT_CST_LOW (size) == 4 && -- 2.11.0