diff options
author | amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-07-20 15:13:56 +0000 |
---|---|---|
committer | amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-07-20 15:13:56 +0000 |
commit | 61d052e56590076d0c603e1e7c00d271afa76e07 (patch) | |
tree | e7bbf7746a189d7185c82f3faebc0285206c34f5 /gcc/gimple-ssa-store-merging.c | |
parent | 2ead314279468a3bea1e54017c3ab9c269914c2c (diff) | |
download | gcc-61d052e56590076d0c603e1e7c00d271afa76e07.tar.gz |
gimple-ssa-store-merging.c: fix sort_by_bitpos
* gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250394 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-ssa-store-merging.c')
-rw-r--r-- | gcc/gimple-ssa-store-merging.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c index 5e9227314b8..ea7dc846c43 100644 --- a/gcc/gimple-ssa-store-merging.c +++ b/gcc/gimple-ssa-store-merging.c @@ -516,12 +516,12 @@ sort_by_bitpos (const void *x, const void *y) store_immediate_info *const *tmp = (store_immediate_info * const *) x; store_immediate_info *const *tmp2 = (store_immediate_info * const *) y; - if ((*tmp)->bitpos <= (*tmp2)->bitpos) + if ((*tmp)->bitpos < (*tmp2)->bitpos) return -1; else if ((*tmp)->bitpos > (*tmp2)->bitpos) return 1; - - gcc_unreachable (); + else + return 0; } /* Sorting function for store_immediate_info objects. |