LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 4899 - clang: __builtin_longjmp not supported
Summary: clang: __builtin_longjmp not supported
Status: RESOLVED FIXED
Alias: None
Product: new-bugs
Classification: Unclassified
Component: new bugs (show other bugs)
Version: 2.6
Hardware: PC Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: 6916
  Show dependency tree
 
Reported: 2009-09-05 02:10 PDT by Török Edwin
Modified: 2012-10-17 14:58 PDT (History)
4 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Török Edwin 2009-09-05 02:10:11 PDT
valgrind 3.4.1 doesn't compile:

m_signals.c:1435:7: error: cannot compile this builtin function yet
      __builtin_longjmp(tst->sched_jmpbuf, True);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Török Edwin 2009-09-05 02:11:28 PDT
m_scheduler/scheduler.c:824:4: error: cannot compile this builtin function yet
   SCHEDSETJMP(tid, jumped, VG_(client_syscall)(tid));
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_scheduler/scheduler.c:519:18: note: instantiated from:
      (jumped) = __builtin_setjmp(_qq_tst->sched_jmpbuf);               \
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 2 Török Edwin 2010-04-24 03:06:04 PDT
This is still an issue for clang 2.7
Comment 3 Jim Grosbach 2010-05-26 15:23:42 PDT
Enabling the code in CGBuiltin.cpp to handle these works on ARM/Darwin. No other targets lower the intrinsics that I know of, though.
Comment 4 Chris Lattner 2012-10-17 14:58:09 PDT
This is theoretically fixed in r165989.  Please verify.