Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Commit 02c3456

Browse files
committed
Use builtin trap() to halt execution, rather than abort()
1 parent f7ad1ef commit 02c3456

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

gcc/d/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2015-08-10 Iain Buclaw <ibuclaw@gdcproject.org>
2+
3+
* d-elem.cc(HaltExp::toElem): Use __builtin_trap to halt execution,
4+
rather than the library abort() call.
5+
16
2015-08-07 Iain Buclaw <ibuclaw@gdcproject.org>
27

38
* d-codegen.cc(build_closure): Update signature, update all callers.

gcc/d/d-elem.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,8 +1891,7 @@ FuncExp::toElem (IRState *)
18911891
elem *
18921892
HaltExp::toElem (IRState *)
18931893
{
1894-
// Needs improvement. Avoid library calls if possible..
1895-
return d_build_call_nary (builtin_decl_explicit (BUILT_IN_ABORT), 0);
1894+
return d_build_call_nary (builtin_decl_explicit (BUILT_IN_TRAP), 0);
18961895
}
18971896

18981897
elem *

0 commit comments

Comments
 (0)