re PR target/19334 (darwin backend places some CONST_DECLs in the wrong section)
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 13 Jan 2005 00:47:44 +0000 (00:47 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 13 Jan 2005 00:47:44 +0000 (16:47 -0800)
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.

From-SVN: r93243

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 &&