Workaround for -fprofile-arcs/computed goto failure.
authorJim Wilson <wilson@cygnus.com>
Mon, 9 Mar 1998 17:11:32 +0000 (17:11 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 9 Mar 1998 17:11:32 +0000 (09:11 -0800)
* profile.c (branch_prob): If see computed goto, call fatal instead of
abort.

From-SVN: r18453

gcc/ChangeLog
gcc/profile.c

index 92c0bc37c022f8d20619d70a60f6d9ecb7b1b67c..516037c703dd2dc649c1ab98d3e83c48affc987e 100644 (file)
@@ -1,5 +1,8 @@
 Mon Mar  9 12:02:23 1998  Jim Wilson  <wilson@cygnus.com>
 
+       * profile.c (branch_prob): If see computed goto, call fatal instead of
+       abort.
+
        * config/mips/sni-svr4.h (CPP_PREDEFINE): Add -DSNI and -Dsinix.
        
        * configure.in (alpha-dec-osf): Add default case for osf* to switch.
index dda75c909ba1663b48fa207efb0e000ca860cb63..5d319f470a3fd0704f00ff81744c47401d6fea4d 100644 (file)
@@ -759,9 +759,10 @@ branch_prob (f, dump_file)
              {
                rtx label_ref;
 
-               /* Must be an IF_THEN_ELSE branch.  */
+               /* Must be an IF_THEN_ELSE branch.  If it isn't, assume it
+                  is a computed goto, which aren't supported yet.  */
                if (GET_CODE (tem) != IF_THEN_ELSE)
-                 abort ();
+                 fatal ("-fprofile-arcs does not support computed gotos");
                if (XEXP (tem, 1) != pc_rtx)
                  label_ref = XEXP (tem, 1);
                else