This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __builtin_longjmp & early gcc versions
- To: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Subject: Re: __builtin_longjmp & early gcc versions
- From: Andreas Jaeger <aj at suse dot de>
- Date: 02 Mar 2001 07:51:49 +0100
- Cc: gcc at gcc dot gnu dot org
- References: <20010302170314.A12816@earth.cs.mu.oz.au>
Fergus Henderson <fjh@cs.mu.oz.au> writes:
> Anyone know if there were problems with __builtin_setjmp() or
> __builtin_longjmp() in any gcc versions >= 2.7?
>
> When I added code that uses __builtin_setjmp() to the Mercury implementation
> (the back-end that compiles to C, not the one that hooks up directly with the
> GCC back-end), I tested it with gcc 2.7.2.3 on SuSE 6.3, and it worked fine.
> But I got a report from a user who said he was using gcc 2.7.2.3 on Debian,
> saying that with his version of gcc __builtin_setjmp and __builtin_longjmp
> were not defined. That seemed odd to me; is gcc 2.7.2.3 different in this
> respect on SuSE than on Debian??
Every distribution adds a few patches to each package - I do think
that SuSE applied some bugfixes to 2.7.2.3 - and Debian also. Please
check the sources for each distribution for details what was patched.
I can look up on monday the exact patches for SuSE if you like.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj