OSDN Git Service

2005-01-12 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Jan 2005 00:47:44 +0000 (00:47 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Jan 2005 00:47:44 +0000 (00:47 +0000)
        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
gcc/config/darwin.c

index 61d4846..b612daf 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
 
        * function.c (assign_parm_setup_block): Relax condition on
index bfb962b..f9f4008 100644 (file)
@@ -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 &&