[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/88: Fix the assembler for unexpected source propertie
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/88: Fix the assembler for unexpected source properties |
Date: |
Fri, 23 Jan 2015 15:25:17 +0000 |
wingo pushed a commit to branch master
in repository guile.
commit e00c0a48240190b655cc482e6bc395a5de206040
Author: Andy Wingo <address@hidden>
Date: Fri Jan 23 16:07:00 2015 +0100
Fix the assembler for unexpected source properties
* module/system/vm/assembler.scm (link-debug): Fix for source properties
that don't have line and column, as are currently being produced by
the new lalr.
---
module/system/vm/assembler.scm | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/module/system/vm/assembler.scm b/module/system/vm/assembler.scm
index 19f8120..6bc2bcf 100644
--- a/module/system/vm/assembler.scm
+++ b/module/system/vm/assembler.scm
@@ -2144,11 +2144,13 @@ procedure with label @var{rw-init}. @var{rw-init} may
be false. If
(lp sources
;; Guile line and column numbers are 0-indexed, but
;; they are 1-indexed for DWARF.
- (cons (list pc
- (if (string? file) (intern-file file) 0)
- (if line (1+ line))
- (if col (1+ col)))
- out))))
+ (if (and line col)
+ (cons (list pc
+ (if (string? file) (intern-file file) 0)
+ (1+ line)
+ (1+ col))
+ out)
+ out))))
(()
;; Compilation unit header for .debug_line. We write in
;; DWARF 2 format because more tools understand it than DWARF
- [Guile-commits] branch master updated (4247d8e -> 4bde3f0), Andy Wingo, 2015/01/23
- [Guile-commits] 01/88: Fix the assembler for unexpected source properties,
Andy Wingo <=
- [Guile-commits] 02/88: Mark two coverage tests as XFAIL, Andy Wingo, 2015/01/23
- [Guile-commits] 03/88: %compute-applicable-methods in Scheme, Andy Wingo, 2015/01/23
- [Guile-commits] 07/88: More useless goops.c code removal, Andy Wingo, 2015/01/23
- [Guile-commits] 05/88: Rewrite %method-more-specific? to be in Scheme, Andy Wingo, 2015/01/23
- [Guile-commits] 06/88: Remove unused macros in goops.c, Andy Wingo, 2015/01/23
- [Guile-commits] 04/88: Deprecate C interfaces scm_compute_applicable_methods, scm_find_method, Andy Wingo, 2015/01/23
- [Guile-commits] 09/88: %init-goops-builtins is an extension, not a global, Andy Wingo, 2015/01/23
- [Guile-commits] 10/88: Preparation for more GOOPS refactorings, Andy Wingo, 2015/01/23
- [Guile-commits] 08/88: compute-cpl implementation only in Scheme, Andy Wingo, 2015/01/23
- [Guile-commits] 14/88: Deprecate scm_basic_make_class, Andy Wingo, 2015/01/23