From: John David Anglin Date: Wed, 6 Jul 2005 23:56:39 +0000 (+0000) Subject: pa.c (legitimize_pic_address): Use gcc_assert instead of abort. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06ae7eb13ef42784eb537c2769169ec70aa1968b;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5159ab9dd6..35c3d21c964 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 7eb19569055..60eb3ba0581 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;