1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Checking testcase for reload problem

llvm-svn: 1752
This commit is contained in:
Chris Lattner 2002-02-13 20:35:17 +00:00
parent 18b2ebd247
commit 3c0623935f

View File

@ -0,0 +1,16 @@
/* This triggered a problem in reload, fixed by disabling most of the
* steps of compilation in GCC. Before this change, the code went through
* the entire backend of GCC, even though it was unneccesary for LLVM output
* now it is skipped entirely, and since reload doesn't run, it can't cause
* a problem.
*/
extern int tolower(int);
const char *rangematch(const char *pattern, int test, int c) {
if ((c <= test) | (tolower(c) <= tolower((unsigned char)test)))
return 0;
return pattern;
}