summaryrefslogtreecommitdiff
path: root/gcc/config/host-darwin.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-03 11:48:37 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-03 11:48:37 +0000
commit27d2baef250d495b3b82b289cb7ce209462d0157 (patch)
tree3982d7ef496e9978739764a7e3cbdbff3fe9ffa7 /gcc/config/host-darwin.c
parent2def4626263b89400488ee0b0c80aa37ccb11da1 (diff)
downloadgcc-27d2baef250d495b3b82b289cb7ce209462d0157.tar.gz
* config/darwin.c (machopic_define_symbol): Use gcc_assert or
gcc_unreachable as appropriate. (machopic_function_base_name, machopic_indirect_data_reference, machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise. * config/host-darwin.c (darwin_gt_pch_use_address): Likewise * config/rs6000/altivec.md (*mov<mode>_internal, build_vector_mask_for_load): Likewise. * config/rs6000/darwin.md (movdf_low_si, movdf_low_di, *call_nonlocal_darwin64, *call_value_nonlocal_darwin64, *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise. * config/rs6000/predicates.md (easy_fp_constant, logical_operand): Likewise. * config/rs6000/rs6000.c (spe_expand_predicate_builtin, compute_save_world_info, rs6000_emit_prologue, rs6000_output_mi_thunk): Reword comments to avoid 'abort'. * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort directly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99152 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/host-darwin.c')
-rw-r--r--gcc/config/host-darwin.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/config/host-darwin.c b/gcc/config/host-darwin.c
index 8bf32aacc62..f94120f10bb 100644
--- a/gcc/config/host-darwin.c
+++ b/gcc/config/host-darwin.c
@@ -49,9 +49,8 @@ darwin_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off)
void *mmap_result;
int ret;
- if ((size_t)pch_address_space % pagesize != 0
- || sizeof (pch_address_space) % pagesize != 0)
- abort ();
+ gcc_assert ((size_t)pch_address_space % pagesize == 0
+ && sizeof (pch_address_space) % pagesize == 0);
ret = (addr == pch_address_space && sz <= sizeof (pch_address_space));
if (! ret)
@@ -73,8 +72,7 @@ darwin_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off)
ret = mmap_result != (void *) MAP_FAILED;
/* Sanity check for broken MAP_FIXED. */
- if (ret && mmap_result != addr)
- abort ();
+ gcc_assert (!ret || mmap_result == addr);
}
return ret;