Created
April 14, 2013 08:35
-
-
Save mnogu/5381938 to your computer and use it in GitHub Desktop.
sigscheme's workaround for an llvm-gcc 4.2 optimization bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- sigscheme/src/list.c.org 2013-04-14 17:30:50.000000000 +0900 | |
+++ sigscheme/src/list.c 2013-04-14 17:31:00.000000000 +0900 | |
@@ -258,7 +258,7 @@ | |
SCM_EXPORT scm_int_t | |
scm_finite_length(ScmObj lst) | |
{ | |
- scm_int_t len; | |
+ volatile scm_int_t len; | |
for (len = 0; CONSP(lst); lst = CDR(lst)) | |
len++; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment