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
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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.
   main.c (0.3 KiB)
   main.s (0.8 KiB)
This task depends upon

Closed by  Dan McGee (toofishes)
Friday, 23 September 2011, 22:20 GMT
Reason for closing:  Upstream
Comment by Jelle van der Waa (jelly) - Sunday, 17 July 2011, 08:58 GMT
A simple test works here, compiled your example with gcc and it works.
Comment by Rémy Oudompheng (remyoudompheng) - Sunday, 17 July 2011, 09:10 GMT
Please report the bug upstream.
Comment by Evangelos Foutras (foutrelis) - Sunday, 17 July 2011, 21:08 GMT
The upstream report for this bug is at http://llvm.org/bugs/show_bug.cgi?id=9614.

As far as I can see, it's the btowc call that hangs.

Loading...