mips.c (mips_in_small_data_p): Reinstate size > 0 check.
gcc/ * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check. From-SVN: r131339
This commit is contained in:
parent
2fd7985e1b
commit
2a4430a6f9
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
|
||||
|
||||
* config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
|
||||
|
||||
2008-01-05 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/34618
|
||||
|
|
|
@ -6677,8 +6677,10 @@ mips_in_small_data_p (const_tree decl)
|
|||
return false;
|
||||
}
|
||||
|
||||
/* We have traditionally not treated zero-sized objects as small data,
|
||||
so this is now effectively part of the ABI. */
|
||||
size = int_size_in_bytes (TREE_TYPE (decl));
|
||||
return size <= mips_small_data_threshold;
|
||||
return size > 0 && size <= mips_small_data_threshold;
|
||||
}
|
||||
|
||||
/* Implement TARGET_USE_ANCHORS_FOR_SYMBOL_P. We don't want to use
|
||||
|
|
Loading…
Add table
Reference in a new issue