diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b09cb306226..371f73d4e5f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz> + + * i386.c (ix86_reorg): Calls are also jumps. + 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com> * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 8aa4d77c174..73f8e84c4dd 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -15565,8 +15565,9 @@ ix86_reorg () if (!insert) { prev = prev_active_insn (ret); - if (prev && GET_CODE (prev) == JUMP_INSN - && any_condjump_p (prev)) + if (prev + && ((GET_CODE (prev) == JUMP_INSN && any_condjump_p (prev)) + || GET_CODE (prev) == CALL_INSN)) insert = 1; /* Empty functions get branch misspredict even when the jump destination is not visible to us. */ |