Skip to content

Instantly share code, notes, and snippets.

@mnogu
Created April 14, 2013 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnogu/5381938 to your computer and use it in GitHub Desktop.
Save mnogu/5381938 to your computer and use it in GitHub Desktop.
sigscheme's workaround for an llvm-gcc 4.2 optimization bug
--- 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