diff options
author | Jim Wilson <wilson@cygnus.com> | 1998-03-09 17:11:32 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1998-03-09 09:11:32 -0800 |
commit | 11a932c0ffa433aff94e71235ea125df88ed052a (patch) | |
tree | 4cf3f0da74dcd232b5d96d9b6d0fcae55c01b464 /gcc | |
parent | eeb54a491270aef5410c5bcf9d7fe0b52afa281e (diff) | |
download | gcc-11a932c0ffa433aff94e71235ea125df88ed052a.zip gcc-11a932c0ffa433aff94e71235ea125df88ed052a.tar.gz gcc-11a932c0ffa433aff94e71235ea125df88ed052a.tar.bz2 |
Workaround for -fprofile-arcs/computed goto failure.
* profile.c (branch_prob): If see computed goto, call fatal instead of
abort.
From-SVN: r18453
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/profile.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 92c0bc3..516037c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/profile.c b/gcc/profile.c index dda75c9..5d319f4 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 |