This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Only define JMP_BUF_SIZE in backends that also define DONT_USE_BUILTIN_SETJMP
- From: DJ Delorie <dj at redhat dot com>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, dave dot anglin at bell dot net, ebotcazou at libertysurf dot fr
- Date: Sun, 24 Jun 2012 18:31:55 -0400
- Subject: Re: [patch] Only define JMP_BUF_SIZE in backends that also define DONT_USE_BUILTIN_SETJMP
- References: <CABu31nP=10OdiCX=dOKb1DWu=ksBYQ2TPb-eSCVgUsbqWSu=Tg@mail.gmail.com>
> The rl78 apparently doesn't know what it wants to do:
>
> /* NOTE: defined but zero means dwarf2 debugging, but sjlj EH. */
> #define DWARF2_UNWIND_INFO 0
> /*#define DONT_USE_BUILTIN_SETJMP 1*/
> #undef DONT_USE_BUILTIN_SETJMP
> #define JMP_BUF_SIZE (8*3+8)
>
> But I'll leave that to an rl78 maintainer.
RL78 has a return address size different than pointer size, so the
default GCC code won't work for EH. For similar reasons, GCC's
internal setjmp won't work either.