Displaying 1 result from an estimated 1 matches for "r183249".
Did you mean:
1183249
2013 Jun 04
2
[LLVMdev] bug or expected behaviour?
I've been chasing down a bug for a few days in some RTOS code I'm building with clang. In the end it comes down to this code:
void external(void);
void test(char *x)
{
x--;
if (!x)
{
external();
}
}
When compiled for ARM with TOT clang (r183249) at -O1 or greater, no calls to 'external()' appear in the output code at all. I have an example project I can send out if anyone's interested, but it's just the above source file and this makefile:
.PHONY: all optimized unoptimized clean
all: optimized unoptimized
grep exter...