From 06ae7eb13ef42784eb537c2769169ec70aa1968b Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Wed, 6 Jul 2005 23:56:39 +0000 Subject: [PATCH] pa.c (legitimize_pic_address): Use gcc_assert instead of abort. * pa.c (legitimize_pic_address): Use gcc_assert instead of abort. (legitimize_tls_address): Use gcc_unreachable instead of abort. From-SVN: r101674 --- gcc/ChangeLog | 5 +++++ gcc/config/pa/pa.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5159ab9dd65..35c3d21c9645 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-07-06 John David Anglin + + * pa.c (legitimize_pic_address): Use gcc_assert instead of abort. + (legitimize_tls_address): Use gcc_unreachable instead of abort. + 2005-07-06 Kaz Kojima * function.c (expand_function_end): Revert part of 2005-06-27 diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 7eb195690551..60eb3ba0581a 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -598,8 +598,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg) { rtx pic_ref = orig; - if (PA_SYMBOL_REF_TLS_P (orig)) - abort(); + gcc_assert (!PA_SYMBOL_REF_TLS_P (orig)); /* Labels need special handling. */ if (pic_label_operand (orig, mode)) @@ -745,7 +744,7 @@ legitimize_tls_address (rtx addr) break; default: - abort(); + gcc_unreachable (); } return ret;