http://llvm.org/bugs/show_bug.cgi?id=2871
Summary: bugpoint erroneously assumes exit code 1 is bad by
default
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: bugpoint
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [email protected]
Try bugpoint'ing spiff some time. It happens to trigger this code in
ExecutionDriver.cpp:
// If we're checking the program exit code, assume anything nonzero is bad.
if (CheckProgramExitCode && ProgramExitedNonzero) {
Output.eraseFromDisk();
if (RemoveBitcode)
sys::Path(BitcodeFile).eraseFromDisk();
return true;
}
which is really horrible because ProgramExitedNonzero is true even when running
the native version, but bugpoint doesn't check for that. CheckProgramExitCode
is on by default, but you can pass in -check-exit-code=false which makes it
work.
I think with the advent of -append-exit-code, this check can just be removed,
or at least changed somehow. I'm not really sure up front what to do about it.
Thoughts?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs