diff options
Diffstat (limited to 'asmcomp/emitaux.ml')
-rw-r--r-- | asmcomp/emitaux.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/asmcomp/emitaux.ml b/asmcomp/emitaux.ml index c3f8888515..3ad467cbff 100644 --- a/asmcomp/emitaux.ml +++ b/asmcomp/emitaux.ml @@ -220,7 +220,8 @@ let reset_debug_info () = display .loc for every instruction. *) let emit_debug_info dbg = if is_cfi_enabled () && - !Clflags.debug && not (Debuginfo.is_none dbg) then begin + (!Clflags.debug || Config.with_frame_pointers) + && not (Debuginfo.is_none dbg) then begin let line = dbg.Debuginfo.dinfo_line in assert (line <> 0); (* clang errors out on zero line numbers *) let file_name = dbg.Debuginfo.dinfo_file in |