I'm having some trouble using bugpoint with newer version of gcc (bugpoint
debug output below).
I looked into the "conflicting type for malloc" problem and it doesn't seem
easy to solve due to the unknown size of size_t (see LowerAllocations.cpp).
The "void main()" problem is probably a result of this test being converted
from Fortran. I'll have to dig into that some more.
The missing ";" looks like a serious problem. The CBE is just generating
bogus code:
llvm_cbe_file_20_test_2e_f_2c__20_line_20_151_2c__20_bb66:
llvm_cbe_r1380 = *(&llvm_cbe_SUM);
*(&llvm_cbe__24_SUM_S94) = llvm_cbe_r1380;
llvm_cbe_r1381 = *(&llvm_cbe__24_SUM_S94);
return llvm_cbe_r1381
<EOF>
That is, there's no semicolon and no closing brace.
Is anyone else seeing these kinds of problems?
-Dave
Bugpoint debug output:
Generating reference output from raw program: <cbe>
About to run: /ptmp/dag/universal_build/llvm-project/Debug/bin/llc -o
bugpoint-test-program.bc.cbe.c -march=c -f bugpoint-test-program.bc
<cbe>
About to run: /ptmp/dag/universal_build/llvm-project/Debug/bin/llc -o
bugpoint-test-program.bc.cbe.c -march=c -f bugpoint-test-program.bc
<cray>
About to run: /usr/bin/gcc bugpoint-test-program.bc.cbe.c -c -o
bugpoint-test-program.bc.cbe.c.cray.o
Error running tool:
/usr/bin/gcc bugpoint-test-program.bc.cbe.c -c -o
bugpoint-test-program.bc.cbe.c.cray.o
bugpoint-test-program.bc.cbe.c:235: warning: conflicting types for built-in
function 'malloc'
bugpoint-test-program.bc.cbe.c: In function 'main':
bugpoint-test-program.bc.cbe.c:407: warning: return type of 'main' is not
'int'
bugpoint-test-program.bc.cbe.c:7267:24: warning: no newline at end of file
bugpoint-test-program.bc.cbe.c: In function 'vlswork_':
bugpoint-test-program.bc.cbe.c:7267: error: expected ';' at end of input
bugpoint-test-program.bc.cbe.c:7267: error: expected declaration or statement
at end of input