Skip to content

Commit

Permalink
fix compilation with clang
Browse files Browse the repository at this point in the history
since clang has it's own integrated assembler, it does not support
.subsection
http://llvm.org/bugs/show_bug.cgi?id=8717

Thanks to Edwin Török for the patch!
  • Loading branch information
kaffeemonster committed Apr 30, 2011
1 parent b9bd5be commit 8148d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adler32_x86.c
Expand Up @@ -222,7 +222,7 @@ local uLong adler32_SSSE3(adler, buf, len)
"sub %3, %4\n\t" /* len -= k */
"cmp $16, %3\n\t"
"jb 8f\n\t" /* if(k < 16) goto OUT */
#ifdef __ELF__
#if defined(__ELF__) && !defined(__clang__)
".subsection 2\n\t"
#else
"jmp 7f\n\t"
Expand All @@ -242,7 +242,7 @@ local uLong adler32_SSSE3(adler, buf, len)
"pslld $4, %%xmm0\n\t" /* x <<= 4 */
"paddd %%xmm1, %%xmm0\n\t" /* x += y */
"ret\n\t"
#ifdef __ELF__
#if defined(__ELF__) && !defined(__clang__)
".previous\n\t"
#else
"7:\n\t"
Expand Down

0 comments on commit 8148d99

Please sign in to comment.