From: rsandifo Date: Sat, 5 Jan 2008 16:47:50 +0000 (+0000) Subject: gcc/ X-Git-Tag: upstream/4.9.2~44309 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f98e2aafbf103c9b6b5a4d3ece7de648d7a97c6;p=platform%2Fupstream%2Flinaro-gcc.git gcc/ * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131339 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49d0a96..570f269 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-01-05 Richard Sandiford + + * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check. + 2008-01-05 Jakub Jelinek PR tree-optimization/34618 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index b81029e..1aa907a 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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