From: Jan Hubicka Date: Fri, 23 May 2003 20:25:21 +0000 (+0200) Subject: * i386.c (ix86_reorg): Calls are also jumps. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25f57a0e2385bb86dcd786c3e38d4acc42b9aecf;p=gcc.git * i386.c (ix86_reorg): Calls are also jumps. From-SVN: r67133 --- 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 + + * i386.c (ix86_reorg): Calls are also jumps. + 2003-05-23 J"orn Rennecke * 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. */