FS#25140 - [clang] wrong optimization
Attached to Project:
Arch Linux
Opened by Strephil (strephil) - Saturday, 16 July 2011, 12:16 GMT
Last edited by Dan McGee (toofishes) - Friday, 23 September 2011, 22:20 GMT
Opened by Strephil (strephil) - Saturday, 16 July 2011, 12:16 GMT
Last edited by Dan McGee (toofishes) - Friday, 23 September 2011, 22:20 GMT
|
Details
Description:
Clang does not compile properly on x86. a.out never terminates. Additional info: pacman -Q clang llvm clang 2.9-6 llvm 2.9-6 Steps to reproduce: $ clang -O2 main.c $ ./a.out or $ clang -S -O2 main.c clang produces infinite loop indeed. |
This task depends upon
As far as I can see, it's the btowc call that hangs.