diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2005-01-13 00:47:44 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2005-01-12 16:47:44 -0800 |
commit | e1e04267b417875628a8240e5409ab14d5da8195 (patch) | |
tree | 036a4131de49b9d3d93c7ccf0946fecc76c0b655 /gcc | |
parent | 357e6cb869e20105b987aa3abcb7b0592a32d2a0 (diff) | |
download | gcc-e1e04267b417875628a8240e5409ab14d5da8195.zip gcc-e1e04267b417875628a8240e5409ab14d5da8195.tar.gz gcc-e1e04267b417875628a8240e5409ab14d5da8195.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/darwin.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 61d4846..b612daf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index bfb962b..f9f4008 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 && |