OSDN Git Service

* pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2005 23:56:39 +0000 (23:56 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2005 23:56:39 +0000 (23:56 +0000)
(legitimize_tls_address): Use gcc_unreachable instead of abort.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101674 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/pa/pa.c

index d5159ab..35c3d21 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
+
+       * 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  <kkojima@gcc.gnu.org>
 
        * function.c (expand_function_end): Revert part of 2005-06-27
index 7eb1956..60eb3ba 100644 (file)
@@ -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;