Skip to content

Commit 967a6f8

Browse files
committed
Elide mark and sever glue in -minimal mode.
1 parent 3e51300 commit 967a6f8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/boot/me/trans.ml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,8 +1339,15 @@ let trans_visitor
13391339
| _ ->
13401340
fix (get_free_glue t (type_has_state cx t));
13411341
end;
1342-
fix (get_sever_glue t);
1343-
fix (get_mark_glue t);
1342+
1343+
if cx.ctxt_sess.Session.sess_minimal
1344+
then Asm.WORD (word_ty_mach, Asm.IMM 0L)
1345+
else fix (get_sever_glue t);
1346+
1347+
if cx.ctxt_sess.Session.sess_minimal
1348+
then Asm.WORD (word_ty_mach, Asm.IMM 0L)
1349+
else fix (get_mark_glue t);
1350+
13441351
(* Include any obj-dtor, if this is an obj and has one. *)
13451352
begin
13461353
match idopt with

0 commit comments

Comments
 (0)