summaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-13 00:47:44 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-13 00:47:44 +0000
commit853b103d50c2c42a2e650ebeeab041919e12e617 (patch)
tree036a4131de49b9d3d93c7ccf0946fecc76c0b655 /gcc/config/darwin.c
parent1adb4de739f6baf1a4748d8b0853daa63406885a (diff)
downloadgcc-853b103d50c2c42a2e650ebeeab041919e12e617.tar.gz
2005-01-12 Andrew Pinski <pinskia@physics.uc.edu>
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
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c2
1 files changed, 1 insertions, 1 deletions
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 &&