public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/59039] New: Undocumented __builtin_longjmp/__builtin_setjmp
@ 2013-11-07 12:51 hjl.tools at gmail dot com
  2013-11-07 14:49 ` [Bug other/59039] " rguenth at gcc dot gnu.org
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: hjl.tools at gmail dot com @ 2013-11-07 12:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59039

            Bug ID: 59039
           Summary: Undocumented __builtin_longjmp/__builtin_setjmp
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com

cilk_fiber-unix.cpp has

#pragma GCC push_options
#pragma GCC optimize ("-O0")
NORETURN cilk_fiber_sysdep::run()
{

It fails when compiled with any optimization.  This function has
__builtin_setjmp and __builtin_longjmp within the same function.
When __builtin_longjmp is put in a separate function, optimization
works.  But there is no documentation on how __builtin_longjmp
and __builtin_setjmp should be used, like the jump buffer size
and fields as well as any limitation.

If it is true that __builtin_setjmp and __builtin_longjmp can't be
used within the same function, GCC should issue an error, at least
a warning.


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2014-01-07  9:09 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-07 12:51 [Bug other/59039] New: Undocumented __builtin_longjmp/__builtin_setjmp hjl.tools at gmail dot com
2013-11-07 14:49 ` [Bug other/59039] " rguenth at gcc dot gnu.org
2013-11-07 14:52 ` rguenth at gcc dot gnu.org
2013-11-07 14:53 ` hjl.tools at gmail dot com
2013-11-07 14:59 ` [Bug c/59039] " rguenth at gcc dot gnu.org
2013-11-07 15:02 ` rguenth at gcc dot gnu.org
2013-11-07 15:03 ` hjl.tools at gmail dot com
2013-11-07 15:16 ` ebotcazou at gcc dot gnu.org
2013-11-07 15:32 ` hjl.tools at gmail dot com
2013-11-07 15:49 ` ebotcazou at gcc dot gnu.org
2013-11-07 16:27 ` hjl.tools at gmail dot com
2013-11-07 17:18 ` ebotcazou at gcc dot gnu.org
2013-11-07 22:54 ` ebotcazou at gcc dot gnu.org
2013-11-07 22:56 ` hjl.tools at gmail dot com
2013-11-08  8:47 ` rguenth at gcc dot gnu.org
2013-11-08 10:21 ` hjl.tools at gmail dot com
2013-11-08 10:53 ` ebotcazou at gcc dot gnu.org
2013-11-08 16:52 ` hjl.tools at gmail dot com
2013-11-08 19:15 ` schwab@linux-m68k.org
2013-11-08 19:52 ` bviyer at gcc dot gnu.org
2013-11-08 21:05 ` hjl.tools at gmail dot com
2013-11-09 12:33 ` ebotcazou at gcc dot gnu.org
2014-01-06 17:40 ` rth at gcc dot gnu.org
2014-01-07  9:09 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).