This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Simple returns are broken in gcc 3.X


On Tue, Jul 31, 2001 at 01:36:41PM -0400, John David Anglin wrote:
> It looks like the "optimize" test needs to be removed from
> thread_prologue_and_epilogue_insns so that emit_return_into_block
> is always called.  Is that OK?  I presume that this is there
> because we didn't have a proper CFG when not optimizing.

Hmm.  No, I suspect having a single return point -- and in particular no
conditional returns -- is going to make debuggers happier with features
like "xbreak".

Grepping through sources, vax is the only target that does not define
either HAVE_epilogue or TARGET_ASM_FUNCTION_EPILOGUE.

I suggest that you add

(define_expand "epilogue"
  [(return)]
  ""
  "")


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]