summaryrefslogtreecommitdiffstats
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-09 17:11:32 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-09 17:11:32 +0000
commit98690ee6bb5b47b577318108dfa51e4192ced5f5 (patch)
tree4cf3f0da74dcd232b5d96d9b6d0fcae55c01b464 /gcc/profile.c
parent98534de8aa76dfbe94faf915b34d9fab9a6672d2 (diff)
downloadppe42-gcc-98690ee6bb5b47b577318108dfa51e4192ced5f5.tar.gz
ppe42-gcc-98690ee6bb5b47b577318108dfa51e4192ced5f5.zip
Workaround for -fprofile-arcs/computed goto failure.
* profile.c (branch_prob): If see computed goto, call fatal instead of abort. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18453 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index dda75c909ba..5d319f470a3 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -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
OpenPOWER on IntegriCloud