search for: 1001968

Displaying 1 result from an estimated 1 matches for "1001968".

Did you mean: 1001768
2009 Jan 13
2
[LLVMdev] llvm-gcc doesnt honor volatile quantifier of the array type?
Hi, I encountered a problem about volatile quantifier when using llvm-gcc, here is the example: #define N 10 int sum(volatile int a[N]) { int sum = 0; unsigned i = 0; for (i = 0; i < N; ++i) sum += a[i]; return sum; } If I compile it as C code, then llvm-gcc will dump: define i32 @sum(i32* nocapture %a) nounwind { bb1.thread: %0 = volatile load i32* %a, align 4