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
This commit is contained in:
parent
357e6cb869
commit
e1e04267b4
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Reference in a new issue