[LLVMbugs] [Bug 4770] New: msp430 backend: Assertion `MO.getOffset() == 0 && " No offsets allowed!"' failed.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Aug 24 20:45:03 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4770
Summary: msp430 backend: Assertion `MO.getOffset() == 0 && "No
offsets allowed!"' failed.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Seen on Ubuntu Hardy.
regehr at john-home:~/z/tinyos-2.x/apps/Blink/build/telosb/tmp1$ clang
-ccc-host-triple msp430-generic-generic -ccc-clang-archs msp430 -x c -S -w -O2
small.c
clang-cc: MSP430AsmPrinter.cpp:170:
void<unnamed>::MSP430AsmPrinter::printOperand(const llvm::MachineInstr*, int,
const char*): Assertion `MO.getOffset() == 0 && "No offsets allowed!"' failed.
0 clang-cc 0x0933f738
Stack dump:
0. Program arguments:
/home/regehr/z/tmp/llvm-gcc-r79920-install/bin/../libexec/clang-cc -triple
msp430-generic-generic -S -disable-free -main-file-name small.c
--relocation-model static --disable-fp-elim --unwind-tables=0 --fmath-errno=1
-O2 -w -fdiagnostics-show-option -o small.s -x c small.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'MSP430 Assembly Printer' on function '@bux'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
regehr at john-home:~/z/tinyos-2.x/apps/Blink/build/telosb/tmp1$ clang -v
clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 79920)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at john-home:~/z/tinyos-2.x/apps/Blink/build/telosb/tmp1$ cat small.c
struct s
{
int t0;
};
struct s arr[3];
void bar (char);
void bux (int dt)
{
bar (1);
}
void baz (int num, int t0)
{
struct s *timer = &arr[num];
timer->t0 = t0;
}
void bar (char num)
{
baz (num, 0);
}
--
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.
More information about the llvm-bugs
mailing list