Skip to content

Commit

Permalink
Added noredzone function attribute
Browse files Browse the repository at this point in the history
By disabling red-zone we make sure that there can be no negative offsets of sp
referenced anywhere around the code. This is something that must be satisfied
under any circumstances as hipe_bifs:enter_sdec defines the stack offsets as
unsigned integer!
  • Loading branch information
Yiannis Tsiouris authored and yiannist committed Mar 5, 2014
1 parent a9dc98c commit 75b3578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hipe/llvm/hipe_rtl2llvm.erl
Expand Up @@ -1387,7 +1387,7 @@ create_header(Name, Params, Code, ConstLoad, IsClosure) ->
Type = "{"++Typ++",i64"++"}",
hipe_llvm:mk_fun_def([], [], "cc 11", [], Type, N,
Args1++Args2,
[nounwind, list_to_atom("gc \"erlang_gc\"")],
[nounwind, noredzone, list_to_atom("gc \"erlang_gc\"")],
[], Final_Code).

fixed_registers() ->
Expand Down

0 comments on commit 75b3578

Please sign in to comment.