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: __builtin_longjmp & early gcc versions


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


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