[LLVMbugs] [Bug 6056] clang ignores -fno-constant-cfstrings

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 19 12:42:07 PDT 2010


Jonathan Schleifer <js-llvm-bugzilla at webkeks.org> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #14 from Jonathan Schleifer <js-llvm-bugzilla at webkeks.org> 2010-10-19 14:42:06 CDT ---
It seems that compilation works now. However, it seems clang breaks it as soon
as umlauts etc. are in the string.

Consider an UTF-8 encoded file containing the string @"ä". The C string
generated by clang should be "ä", where a C string just copies the encoding
from the source file. Thus the C string should be { 0xC3, 0xA4, 0x00 } and the
length 2. However, clang seems to create garbage here now. This used to work in
the past.

I'm not sure if this is caused by the recent change, but I assume so. If it's
not, feel free to close and I will create a new bug report.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list