[LLVMbugs] [Bug 14263] New: cc1as asserts "Expected to find -main-file-name" on silly input
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 5 11:44:29 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14263
Bug #: 14263
Summary: cc1as asserts "Expected to find -main-file-name" on
silly input
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I found this while bisecting something else:
hummer:delta thakis$ cat foo.S
.byte (~$0 << 3) | 4
hummer:delta thakis$
/Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/clang
-c foo.S
Assertion failed: (HadError && "Parse statement returned an error, but none
emitted!"), function Run, file
/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm/lib/MC/MCParser/AsmParser.cpp,
line 558.
0 clang 0x000000010169af45 PrintStackTrace(void*) + 37
1 clang 0x000000010169b304 SignalHandler(int) + 500
2 libSystem.B.dylib 0x00007fff886681ba _sigtramp + 26
3 libSystem.B.dylib 000000000000000000 _sigtramp + 2006548064
4 clang 0x000000010004e9d6 abort + 22
5 clang 0x000000010004e9b1 __assert_rtn + 81
6 clang 0x000000010117dc95 (anonymous
namespace)::AsmParser::Run(bool, bool) + 437
7 clang 0x000000010005653a cc1as_main(char const**, char const**,
char const*, void*) + 8490
8 clang 0x0000000100057a41 main + 2273
9 clang 0x0000000100051764 start + 52
10 clang 0x0000000000000009 start + 4294633689
hummer:delta thakis$
/Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/clang
--version
clang version 3.2 (trunk 165787)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
Happens with r167287 too, so this seems to have existed for a while. The
assertion was added in Chad's r156117
--
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