[LLVMbugs] [Bug 6099] New: msp430 backend ice: long long is not intmax_t?
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Jan 20 21:00:04 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6099
Summary: msp430 backend ice: long long is not intmax_t?
Product: new-bugs
Version: trunk
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: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu
regehr at john-home:~/volatile/bugs/tmp260$ clang -ccc-host-triple msp430-elf
small.c
small.c:3:10: warning: integer constant is too large for its type
si == -9223372036854775807LL - 1 ? : -si;
^
clang: SemaExpr.cpp:1734: virtual
clang::ASTOwningResult<&clang::ActionBase::DeleteExpr>
clang::Sema::ActOnNumericConstant(const clang::Token&): Assertion
`Context.getTypeSize(Ty) == ResultVal.getBitWidth() && "long long is not
intmax_t?"' failed.
0 clang 0x0910d708
Stack dump:
0. Program arguments: /home/regehr/z/tmp/llvm-gcc-r94064-install/bin/clang
-cc1 -triple msp430-elf- -S -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -resource-dir
/home/regehr/z/tmp/llvm-gcc-r94064-install/lib/clang/1.1 -fmessage-length 80
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-jps8gO.s
-x c small.c
1. small.c:3:10: current parser token '9223372036854775807LL'
2. small.c:2:1: parsing function body 'foo'
3. small.c:2:1: in compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
regehr at john-home:~/volatile/bugs/tmp260$ cat small.c
static void foo (long long si)
{
si == -9223372036854775807LL - 1 ? : -si;
}
regehr at john-home:~/volatile/bugs/tmp260$ clang -v
clang version 1.1 (trunk 94064)
Target: i386-pc-linux-gnu
Thread model: posix
--
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