diff options
| author | Fabrice Le Fessant <Fabrice.Le_fessant@inria.fr> | 2013-06-03 04:34:19 +0000 |
|---|---|---|
| committer | Fabrice Le Fessant <Fabrice.Le_fessant@inria.fr> | 2013-06-03 04:34:19 +0000 |
| commit | 12722845d4cd648fe9446208e6296a819ced774e (patch) | |
| tree | 84c09beb4985c22f8f654f5bf3e0c376b5aa3bc3 /asmcomp/emitaux.ml | |
| parent | 52b6c69951c0fb97549f406d36ed2f6157cc80a5 (diff) | |
| download | ocaml-with-frame-pointers.tar.gz | |
Add -with-frame-pointers to ./configurewith-frame-pointers
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/with-frame-pointers@13729 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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 |
