Fix bug with clang + directory_files_internal + GC.
commita98a91ac4697c50b3ebb188c279b08b7799e6e3d
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Aug 2014 22:58:09 +0000 (2 15:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Aug 2014 22:58:09 +0000 (2 15:58 -0700)
treeabdec80c705b4bfe6bc3153030b0b3f919d62e69
parent7f0ff25b7a056570e2435a88b9bb736501aaa12b
Fix bug with clang + directory_files_internal + GC.

* src/dired.c (directory_files_internal): Use a volatile variable
to prevent the compiler from optimizing away all copies of a local.
I wonder how many other GC-related bugs like this lurk elsewhere?

Fixes: debbugs:16986
src/ChangeLog
src/dired.c