This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] replace abort() calls in pa.c


This is something I forgot when I committed Randolph's TLS patch yesterday.
Checked with full bootstrap and check on hppa-unknown-linux-gnu.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

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.

Index: config/pa/pa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa.c,v
retrieving revision 1.299
diff -u -3 -p -r1.299 pa.c
--- config/pa/pa.c	6 Jul 2005 02:18:19 -0000	1.299
+++ config/pa/pa.c	6 Jul 2005 02:32:43 -0000
@@ -598,8 +598,7 @@ legitimize_pic_address (rtx orig, enum m
 {
   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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]