Commit e1e04267 by Andrew Pinski Committed by Andrew Pinski

re PR target/19334 (darwin backend places some CONST_DECLs in the wrong section)

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
parent 357e6cb8
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
......
......@@ -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 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment