[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-dev] compcert support



Can someone explain the code below? Why would we want to omit the L only when someone wants to target CompCert? It's from Constant.cpp.

John




static string
GenerateRandomCharConstant(void)
{
	string ch;
	if (CGOptions::ccomp())
		ch = string("0x") + RandomHexDigits(2);
	else
		ch = string("0x") + RandomHexDigits(2) + "L";
	return ch;
}