summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/wchar-const.c
Commit message (Collapse)AuthorAgeFilesLines
* Set dso_local on string literals.Rafael Espindola2018-03-201-1/+1
| | | | llvm-svn: 328040
* Delete support for AuroraUX.Rafael Espindola2014-08-141-2/+2
| | | | | | auroraux.org is not resolving. llvm-svn: 215644
* MS ABI: Eliminate Duplicate StringsDavid Majnemer2014-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | COFF doesn't have mergeable sections so LLVM/clang's normal tactics for string deduplication will not have any effect. To remedy this we place each string inside it's own section and mark the section as IMAGE_COMDAT_SELECT_ANY. However, we can only do this if the string has an external name that we can generate from it's contents. To be compatible with MSVC, we must use their scheme. Otherwise identical strings in translation units from clang may not be deduplicated with translation units in MSVC. This fixes PR18248. N.B. We will not attempt to do anything with a string literal which is not of type 'char' or 'wchar_t' because their compiler does not support unicode string literals as of this date. Further, we avoid doing this if either -fwritable-strings or -fsanitize=address are present. This reverts commit r204596. llvm-svn: 204675
* Revert r204562,204566,204586,204587 as they broke ASan on WindowsTimur Iskhodzhanov2014-03-241-1/+1
| | | | llvm-svn: 204596
* MS ABI: Eliminate Duplicate StringsDavid Majnemer2014-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | COFF doesn't have mergeable sections so LLVM/clang's normal tactics for string deduplication will not have any effect. To remedy this we place each string inside it's own section and mark the section as IMAGE_COMDAT_SELECT_ANY. However, we can only do this if the string has an external name that we can generate from it's contents. To be compatible with MSVC, we must use their scheme. Otherwise identical strings in translation units from clang may not be deduplicated with translation units in MSVC. This fixes PR18248. N.B. We will not attempt to do anything with a string literal which is not of type 'char' or 'wchar_t' because their compiler does not support unicode string literals as of this date. llvm-svn: 204562
* Fix FileCheck --check-prefix lines.Tim Northover2013-08-121-2/+2
| | | | | | | | | | Various tests had sprung up over the years which had --check-prefix=ABC on the RUN line, but "CHECK-ABC:" later on. This happened to work before, but was strictly incorrect. FileCheck is getting stricter soon though. Patch by Ron Ofir. llvm-svn: 188174
* Fix the representation of wide strings in the AST and IR so that it uses the ↵Eli Friedman2011-11-011-2/+2
| | | | | | | | | | native representation of integers for the elements. This fixes a bunch of nastiness involving treating wide strings as a series of bytes. Patch by Seth Cantrell. llvm-svn: 143417
* Handle different sized wchar_t for windows.Eric Christopher2011-07-261-2/+4
| | | | llvm-svn: 136192
* Migrate wchar-const.c with fixes and FileCheck from llvm/test/FrontendC.Eric Christopher2011-07-261-0/+22
llvm-svn: 136114
OpenPOWER on IntegriCloud