From bugzilla-daemon at llvm.org Sun May 1 07:36:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 May 2011 07:36:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 9822] New: MC produces Undefined symbol while gnu as produces nothing Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9822 Summary: MC produces Undefined symbol while gnu as produces nothing Product: libraries Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu witten webcamd-0.1.26# clang -c linux.clang.s -o l.o && nm l.o 00000090 T linux_exit U linux_exit_mod 00000020 T linux_init U linux_init_mod 00000010 t linux_module_exit_start 00000000 d linux_module_exit_start_p 00000000 t linux_module_init_start 00000000 d linux_module_init_start_p U thread_init witten webcamd-0.1.26# as linux.clang.s -o l.o && nm l.o 00000080 T linux_exit 00000020 T linux_init 00000010 t linux_module_exit_start 00000000 d linux_module_exit_start_p 00000000 t linux_module_init_start 00000000 d linux_module_init_start_p U thread_init note the linux_{exit|init}_mod undefined symbol produced by MC. -- 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. From bugzilla-daemon at llvm.org Sun May 1 15:27:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 May 2011 15:27:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 9823] New: Assertion `SegStart >= Intf.last() && "Couldn't avoid interference"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9823 Summary: Assertion `SegStart >= Intf.last() && "Couldn't avoid interference"' failed. Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu regehr at home:~/volatile/bugs/tmp024$ clang -c -O -w small.c clang: RegAllocGreedy.cpp:799: void::RAGreedy::splitAroundRegion(llvm::LiveInterval&, ::RAGreedy::GlobalSplitCandidate&, llvm::SmallVectorImpl&): Assertion `SegStart >= Intf.last() && "Couldn't avoid interference"' failed. 0 clang 0x09643c58 Stack dump: 0. Program arguments: /mnt/z/z/compiler-install/llvm-gcc-r130662-install/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51 -momit-leaf-frame-pointer -resource-dir /mnt/z/z/compiler-install/llvm-gcc-r130662-install/bin/../lib/clang/3.0 -O2 -w -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o small.o -x c small.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'small.c'. 4. Running pass 'Greedy Register Allocator' on function '@func_64' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) regehr at home:~/volatile/bugs/tmp024$ clang -v clang version 3.0 (trunk 130662) Target: i386-pc-linux-gnu Thread model: posix regehr at home:~/volatile/bugs/tmp024$ cat small.c int safe_4 (int si1, int si2) { return si2 && (1 / si1) ? si1 : si2; } int safe_6 (char si1, char si2) { return si2 == 0 || si1 && si2 == 1 ? si1 : 1; } int safe_26 (int si1, int si2) { return si2 ? si1 : (si1 / si2); } int safe_55 (int ui1, int ui2) { return ui1; } int g_3; int g_301; int g_382; int func_64 (int p_65, int p_67) { int l_79; int l_357; for (l_357 = 0; l_357 <= 0; l_357 = 1) if (p_67) break; for (l_79 = 0; l_79 <= 0; l_79 += 1) if (safe_6 (safe_26 (safe_55 (g_301 >= 1, 0), safe_4 (g_3, p_65)), l_357) || g_301) for (; g_382; g_382 -= 1); return 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. From bugzilla-daemon at llvm.org Sun May 1 16:48:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 May 2011 16:48:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 9748] [x86-32 ELF PIC, GreedyRA] UNREACHABLE executed at X86MCInstLower.cpp:140! In-Reply-To: References: Message-ID: <20110501214848.B98A12A6C13C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9748 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |dimitry at andric.com Resolution|FIXED | --- Comment #9 from Dimitry Andric 2011-05-01 16:48:46 CDT --- I have still encountered this while self-hosting r130606 on FreeBSD i386. A reduced testcase (from LoopUnswitch.cpp) is attached. Use: clang -cc1 -triple i386-unknown-freebsd9.0 -S -mdisable-fp-elim -O2 pr9748-2.cpp to trigger "Unknown target flag on GV operand". -- 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. From bugzilla-daemon at llvm.org Sun May 1 17:00:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 May 2011 17:00:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 9748] [x86-32 ELF PIC, GreedyRA] UNREACHABLE executed at X86MCInstLower.cpp:140! In-Reply-To: References: Message-ID: <20110501220016.C4AAA2A6C13B@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9748 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #11 from Dimitry Andric 2011-05-01 17:00:15 CDT --- Argh, sorry for the pollution, I should refresh PRs before submitting stuff. :) I just tried it again with r130666, and now it works. -- 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. From bugzilla-daemon at llvm.org Sun May 1 20:59:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 May 2011 20:59:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 9824] New: add -Wunused-but-set-variable Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9824 Summary: add -Wunused-but-set-variable Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu GCC 4.6 has a nice warning part of -Wall which warns on variables that are used by being set, but never read or have their address taken. We should add -Wunused-but-set-variable to clang. Here's a few examples of how the warning behaves in GCC: void test1() { int i = 0; // -Wunused-but-set-variable warning i = 1; } void test2() { int i = 0; // no warning i = 1; &i; // -Wunused-value warning } void test3() { int i = 1; // -Wunused-variable warning, not -Wunused-but-set-variable. } void use(int); void test4() { int i = 0; // no warning use1(i); } which seems eminently sane to me. -- 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. From bugzilla-daemon at llvm.org Mon May 2 00:30:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 00:30:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 9823] Assertion `SegStart >= Intf.last() && "Couldn't avoid interference"' failed. In-Reply-To: References: Message-ID: <20110502053040.6E9B52A6C139@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9823 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Jakob Stoklund Olesen 2011-05-02 00:30:40 CDT --- Fixed in r130687. -- 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. From bugzilla-daemon at llvm.org Mon May 2 09:09:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 09:09:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 9825] New: Need both -fno-omit-frame-pointer and -mno-omit-leaf-frame-pointer to get a fp on linux on a leaf function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9825 Summary: Need both -fno-omit-frame-pointer and -mno-omit-leaf-frame-pointer to get a fp on linux on a leaf function Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu $ cat test.c int f() { return 42; } $ gcc -S /home/espindola/llvm/test.c -Os -fno-omit-frame-pointer -o - | grep rbp pushq %rbp movq %rsp, %rbp $ ./bin/clang -S /home/espindola/llvm/test.c -Os -fno-omit-frame-pointer -o - | grep rbp $ ./bin/clang -S /home/espindola/llvm/test.c -Os -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -o - | grep rbp pushq %rbp movq %rsp, %rbp popq %rbp -- 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. From bugzilla-daemon at llvm.org Mon May 2 09:16:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 09:16:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 9826] New: [MC] Should use symbolic register names in the .cfi_* directives Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9826 Summary: [MC] Should use symbolic register names in the .cfi_* directives Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu Instead of printing: f: .cfi_startproc .cfi_offset 6, -16 .cfi_endproc We could print f: .cfi_startproc .cfi_offset %rbp, -16 .cfi_endproc Both produce bit identical results, but the second one is more readable. In the interest of efficiency, the MCStreamer should probably stay the same: It is given a register dwarf num. This means we need a dwarf num -> name mapping. We can probably tblgen one. -- 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. From bugzilla-daemon at llvm.org Mon May 2 10:15:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 10:15:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 9827] New: some mess in the options passed to Clang during the invocation through llvmc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9827 Summary: some mess in the options passed to Clang during the invocation through llvmc Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: codacat at ya.ru CC: llvmbugs at cs.uiuc.edu I am running ArchLinux with following clang and llvm versions: $ clang -v clang version 2.9 (tags/RELEASE_29/final) Target: x86_64-unknown-linux-gnu Thread model: posix $ llvmc --version Low Level Virtual Machine (http://llvm.org/): llvm version 2.9 Optimized build. Built Apr 11 2011 (14:36:05). Host: x86_64-unknown-linux-gnu Host CPU: amdfam10 Registered Targets: (none) When i try to compile simple hello-world program with command line, i get an error report: $ llvmc -clang hello.c clang -x c hello.c -emit-llvm-bc -o /tmp/llvm_09ut0R/hello.bc clang: warning: argument unused during compilation: '-e mit-llvm-bc' llc -O2 /tmp/llvm_09ut0R/hello.bc -o /tmp/llvm_09ut0R/hello.s llc: /tmp/llvm_09ut0R/hello.bc:1:1: error: expected top-level entity ELF> ... So it seems, that wrong option is passed to the clang front-end, and it translates source to the ELF object file instead of LLVM bitcode. When i translate hello.c to the bitcode manually with: $ clang -c -emit-llvm hello.c -o hello.bc And then use llvmc with the bitcode: $ llvmc -v -clang hello.bc -o hello llc -O2 hello.bc -o /tmp/llvm_ZEvkLH/hello.s as /tmp/llvm_ZEvkLH/hello.s -o /tmp/llvm_ZEvkLH/hello.o llvm-ld -native -disable-internalize /tmp/llvm_ZEvkLH/hello.o -o hello everything works fine. -- 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. From bugzilla-daemon at llvm.org Mon May 2 10:40:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 10:40:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 9828] New: False positive for null function pointer call following assert() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9828 Summary: False positive for null function pointer call following assert() Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: hyrum at hyrumwright.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6521) --> (http://llvm.org/bugs/attachment.cgi?id=6521) Test case. I'm using the analyzer on the following test case: [[[ #include typedef int (*foo_editor_cb_complete_t)(void *baton); int foo_editor_complete(foo_editor_cb_complete_t func) { assert(func != NULL); return func(NULL); } ]]] The results are: [[[ cca-bug1.c:9:10: warning: Called function pointer is null (null dereference) return func(NULL); ^ 1 warning generated. scan-build: 1 bugs found. ]]] I believe the above to be a false positive. The assert() on line 8 should eliminate any concerns that the called function pointer is NULL. However, the analyzer?misses this fact and generates the bug all the same. I'm using the checker-256 release on Mac OS X. -- 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. From bugzilla-daemon at llvm.org Mon May 2 10:47:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 10:47:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 9806] strncpy and strncat checkers assert when bounds argument is undefined. In-Reply-To: References: Message-ID: <20110502154706.C98282A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9806 Lenny Maiorani changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Lenny Maiorani 2011-05-02 10:47:05 CDT --- Patch submitted in r130422 fixed the assert. -- 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. From bugzilla-daemon at llvm.org Mon May 2 11:10:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 11:10:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 9829] New: undefined reference to __mingw_vprintf when linking to libLLVMCore.a Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9829 Summary: undefined reference to __mingw_vprintf when linking to libLLVMCore.a Product: libraries Version: 2.9 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: dash4893h4932 at abv.bg CC: llvmbugs at cs.uiuc.edu hello, on winxp-sp2-x86 installing the following official packages in /llvm/: llvm-gcc4.2-2.9-x86-mingw32.tar.bz2 llvm-2.9-mingw32-i386.tar.bz2 binutils-2.20-1-mingw32-bin.tar.gz compiling example at: http://gnuu.org/2009/09/18/writing-your-own-toy-compiler/all/1/ constructing and adjusting cmd line: perl llvm-config --libs core jit native --cxxflags --ldflags llvm-g++ *.cpp -o a.exe -I/llvm/include -DNDEBUG -D__NO_CTYPE_INLINE -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2 -fomit-frame-pointer -fno-exceptions -Woverloaded-virtual -Wcast-qual -L/llvm/lib -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMX86Info -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMSupport -lLLVMSystemZCodeGen -lLLVMSystemZInfo -lpsapi -limagehlp -lm results in: Warning: .drectve `-aligncomm:___CTOR_LIST__,2 ' unrecognized Warning: .drectve `-aligncomm:___DTOR_LIST__,2' unrecognized /llvm/lib/libLLVMCore.a(PassManager.o)(.text+0x13):PassManager.cpp: undefined reference to `__mingw_vprintf' /llvm/lib/libLLVMSupport.a(Signals.o)(.text+0x1b):Signals.cpp: undefined reference to `__mingw_vfprintf' /llvm/lib/libLLVMSupport.a(Path.o)(.text+0x1b):Path.cpp: undefined reference to `__mingw_vsprintf' collect2: ld returned 1 exit status --- collect2 suggest that the mingw versions of these functions were linked. 'grep' does not return any files containing these symbols in llvm/lib. the closest possible location is /llvm/lib/libmingwex.a, which contains symbols like __mingw_vsnprintf, __mingw_snprintf. a solution is to define the symbols manually e.g. blank functions in a object file. D.K. P.S.1: i've sent an email yesterday to the list directly, but using the BZ system might be better...i was also able to recompiled the support / core libraries from the 2.9 source with mingw-gcc-4.4.1, but got a lot of SJLJ errors instead of the '__mingw_*' when linking. -- 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. From bugzilla-daemon at llvm.org Mon May 2 11:15:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 11:15:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 9830] New: Clang doesn't like ZeroMemory, causes crash in Wine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9830 Summary: Clang doesn't like ZeroMemory, causes crash in Wine Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu See: http://bugs.winehq.org/show_bug.cgi?id=26754 likely a regression, though haven't retested with an older Clang yet. Compiling Wine with clang from trunk (clang version 3.0 (trunk 130453)), and running wine's builtin 'regedit' program causes a crash. The crash can be avoided by not using ZeroMemory, or compiling the particular file with gcc instead of clang. Occurs with/without integrated assembler. clang -E -I. -I. -I../../include -I../../include -D__WINESRC__ -D_COMCTL32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -std=gnu89 -g -O0 -o imagelist.i imagelist.c preprocessed .i file attached (for Clang and gcc).attached -- 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. From bugzilla-daemon at llvm.org Mon May 2 12:59:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 12:59:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 9828] False positive for null function pointer call following assert() In-Reply-To: References: Message-ID: <20110502175951.C59342A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9828 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |INVALID --- Comment #1 from Ted Kremenek 2011-05-02 12:59:51 CDT --- Looks like 'assert' is not defined, and the compiler is treating it as an undeclared function. This is the warning I see from clang (the compiler): ca-bug1.c:8:3: warning: implicit declaration of function 'assert' is invalid in C99 [-Wimplicit-function-declaration] assert(func != NULL); ^ This means your assert() isn't actually doing what you think it is. Try: #include On the Mac, that causes 'assert' to be defined correctly and the false path goes away. -- 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. From bugzilla-daemon at llvm.org Mon May 2 13:52:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 13:52:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 9579] A bug in InstructionSimplify.cpp In-Reply-To: References: Message-ID: <20110502185232.1A2022A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9579 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Duncan Sands 2011-05-02 13:52:31 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110502/120304.html -- 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. From bugzilla-daemon at llvm.org Mon May 2 19:19:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 May 2011 19:19:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 9831] New: Assertion `(*I)->hasAtLeastOneValue() && "Split interval has no value"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9831 Summary: Assertion `(*I)->hasAtLeastOneValue() && "Split interval has no value"' failed. Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu regehr at home:~/volatile/bugs/tmp026$ clang -O3 -w small.c clang: SplitKit.cpp:993: void llvm::SplitEditor::finish(llvm::SmallVectorImpl*): Assertion `(*I)->hasAtLeastOneValue() && "Split interval has no value"' failed. 0 clang 0x09646098 Stack dump: 0. Program arguments: /mnt/z/z/compiler-install/llvm-gcc-r130740-install/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51 -momit-leaf-frame-pointer -resource-dir /mnt/z/z/compiler-install/llvm-gcc-r130740-install/bin/../lib/clang/3.0 -O3 -w -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-CZbR9X.o -x c small.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'small.c'. 4. Running pass 'Greedy Register Allocator' on function '@func_47' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) regehr at home:~/volatile/bugs/tmp026$ clang -v clang version 3.0 (trunk 130740) Target: i386-pc-linux-gnu Thread model: posix regehr at home:~/volatile/bugs/tmp026$ cat small.c int safe_6 (char si1, int si2) { return si2 == 0 || si1 && si2 == 1 ? 0 : (si1 / 0); } int safe_43 (int ui1, int ui2) { return ui1; } int safe_52 (short ui1, int ui2) { return ui1; } struct S0 { int f3:0 ? 0 : 24; int f4:1; int f5; int f6:1}; int g_77; int g_207[0][0][1] = { }; struct S0 *g_220; int g_229; struct S0 **g_274; int func_47 (int *p_48, int p_51) { for (0; 1; 0) { int *l_238 = 1; struct S0 l_240[1] = { }; struct S0 l_244 = { 0 }; struct S0 l_252 = { 0 }; if (*l_238) { *g_220 = l_240[0]; l_244 = l_240[0]; for (g_229 = 0; g_229 <= 2; g_229 += 1) l_244.f3 &= g_207[0][g_77][p_51] = safe_6 (l_244.f6, p_51) != 1; } if (l_244.f3) { l_252.f4 = safe_43 (l_244.f6, 1); for (0; l_252.f5 <= 0; l_252.f5 = safe_52 (l_252.f5, 1)) { } } *g_274 = &l_240[1]; } } -- 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. From bugzilla-daemon at llvm.org Tue May 3 00:14:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 May 2011 00:14:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 9829] undefined reference to __mingw_vprintf when linking to libLLVMCore.a In-Reply-To: References: Message-ID: <20110503051434.768E82A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9829 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |asl at math.spbu.ru Resolution| |WONTFIX --- Comment #3 from Anton Korobeynikov 2011-05-03 00:14:33 CDT --- mingw libraries depends heavily on the version of gcc used for compilation and the version of mingw runtime. If you're seeing the problems like this, please consider recompiling stuff from the sources. In any case, this is the best thing when you're going to do some development with LLVM. -- 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. From bugzilla-daemon at llvm.org Tue May 3 02:08:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 May 2011 02:08:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 9832] New: [MC] Thumb/Thumb-2 are not handled properly in ARM ELF Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9832 Summary: [MC] Thumb/Thumb-2 are not handled properly in ARM ELF Product: new-bugs Version: trunk Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: koansin.tan at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6525) --> (http://llvm.org/bugs/attachment.cgi?id=6525) a quick patch to make clang generate thumb code in ARM ELF. We are trying to use clang as a drop-in replacement for the gcc come with Android NDK. I found that MC/ELF doesn't not handle Thumb functions properly, e.g., bit 0 of the function name in the .symtab is not set to 1, and some thumb instructions are not generated correctly, e.g., tBLXr doesn't read it operand. -- 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. From bugzilla-daemon at llvm.org Tue May 3 12:00:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 May 2011 12:00:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 9833] New: broken lit substitutions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9833 Summary: broken lit substitutions Product: Test Suite Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: lit AssignedTo: unassignedbugs at nondot.org ReportedBy: bob.wilson at apple.com CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org If I build llvm+clang in a directory ending with "-clang", e.g., "objdir-clang", the lit tool substitutes the full path of clang for that "clang" suffix. This happens for every instance of "clang" is a command, not just for the program name. For example, I see include paths like: -I /Volumes/LocalHD/bwilson/llvm/objdir-/Volumes/LocalHD/bwilson/llvm/objdir-clang/Debug+Asserts/bin/clang/include even though the site.exp file shows: -I /Volumes/LocalHD/bwilson/llvm/objdir-clang/include I think the problem is here: # Extract the tool name from the pattern. This relies on the tool # name being surrounded by \b word match operators. If the # pattern starts with "| ", include it in the string to be # substituted. substitution = re.sub(r"^(\\)?((\| )?)\W+b([0-9A-Za-z-_]+)\\b\W*$", r"\2" + llvm_tools_dir + "/" + r"\4", pattern) but my Python skills are not great and that's a big ugly regexp. -- 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. From bugzilla-daemon at llvm.org Tue May 3 13:19:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 May 2011 13:19:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 9834] New: clang accepts 'friend' at ill-formed positions in the decl-specifier-seq Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9834 Summary: clang accepts 'friend' at ill-formed positions in the decl-specifier-seq Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang accepts this: struct S { class T friend; unsigned friend char; }; Both of these are illegal by [class.friend]p3, which requires the 'friend' decl-specifier to be the first in the decl-specifier-seq for non-function declarations. -- 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. From bugzilla-daemon at llvm.org Tue May 3 15:42:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 May 2011 15:42:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 9831] Assertion `(*I)->hasAtLeastOneValue() && "Split interval has no value"' failed. In-Reply-To: References: Message-ID: <20110503204242.832212A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9831 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Jakob Stoklund Olesen 2011-05-03 15:42:41 CDT --- Fixed in r130787, thanks John! -- 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. From bugzilla-daemon at llvm.org Tue May 3 21:05:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 May 2011 21:05:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 9835] New: Clang cannot decay [] to * automatically Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9835 Summary: Clang cannot decay [] to * automatically Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nowar100 at gmail.com CC: llvmbugs at cs.uiuc.edu When I compile skia source code, it complains: src/src/core/SkBitmap.cpp:1047:57: error: restrict requires a pointer or reference ('uint8_t' (aka 'unsigned char') is invalid) static bool GetBitmapAlpha(const SkBitmap& src, uint8_t __restrict__ alpha[], ~~~~~~~~^~~~~~~~~~~~ We see that parameter alpha could be decay to a pointer. But Clang doesn't know. Is this a bug? P.S. I don't think I could upload the SkBitmap.cpp. It is from http://www.spec.org/. -- 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. From bugzilla-daemon at llvm.org Wed May 4 01:16:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 01:16:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 9836] New: Strange "read-only variable is not assignable" error with restrict Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9836 Summary: Strange "read-only variable is not assignable" error with restrict Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu Testcase: void a(int alpha[restrict]) { alpha = 0;} Output: :1:37: error: read-only variable is not assignable void a(int alpha[restrict]) { alpha = 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. From bugzilla-daemon at llvm.org Wed May 4 01:27:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 01:27:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 9835] Clang cannot decay [] to * automatically In-Reply-To: References: Message-ID: <20110504062702.3B4A62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9835 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-05-04 01:27:01 CDT --- Looks like a combination of a gcc bug and a bug in the source code; take the following::: typedef int x; void GetBitmapAlpha(int __restrict__ alpha[]); void GetBitmapAlpha(x __restrict__ alpha[]); gcc in C mode, and clang, reject both versions. gcc in C++ mode, for some strange reason, accepts the second version. -- 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. From bugzilla-daemon at llvm.org Wed May 4 04:14:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 04:14:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 9837] New: Inline assembler dies on WindowMaker source file (wrlib/x86_specific.c) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9837 Summary: Inline assembler dies on WindowMaker source file (wrlib/x86_specific.c) Product: new-bugs Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dimitry at andric.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6526) --> (http://llvm.org/bugs/attachment.cgi?id=6526) Problematic inline assembly from WindowMaker Clang's inline assembler, as of r130836, dies on this file, when compiling it for i386: http://hg.windowmaker.info/wmaker/file/7accebd7c65b/wrlib/x86_specific.c with the following error: ================================================== fatal error: error in backend: Ran out of registers during register allocation! Please check your inline asm statement for invalid constraints: INLINEASM [sideeffect], 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, %EBX, 1, %noreg, 0, %noreg, 44, %EBP, 1, %noreg, 0, %noreg, 44, %vreg40, 1, %noreg, 0, %noreg, 44, %vreg36, 1, %noreg, 0, %noreg, 44, %vreg34, 1, %noreg, 0, %noreg, 44, %vreg32, 1, %noreg, 0, %noreg, 44, %vreg29, 1, %noreg, 0, %noreg, 44, %vreg25, 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 44, , 1, %noreg, 0, %noreg, 14, %AX, 14, %CX, 14, %DX, 14, %SI, 14, %DI, 14, %EFLAGS, <>; GR32:%vreg40,%vreg36,%vreg34,%vreg32,%vreg29,%vreg25 ================================================== The problematic function is x86_mmx_TrueColor_32_to_16(), which I will add as a testcase (wmasm.c). -- 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. From bugzilla-daemon at llvm.org Wed May 4 05:29:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 05:29:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 9838] New: QUEST generated test brocken with scalrrepl + instcombine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9838 Summary: QUEST generated test brocken with scalrrepl + instcombine Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: quickslyver at free.fr CC: llvmbugs at cs.uiuc.edu using the original quest generated test: (http://code.google.com/p/quest-tester/) $ gcc quest-10.c -O0 && ./a.out #OK $ gcc quest-10.c -O3 && ./a.out #OK $ clang quest-10.c -O0 && ./a.out #OK $ clang quest-10.c -O1 && ./a.out #FAIL a.out: quest-10.c:744: double callee_o0f(unsigned long, union ot5, union ot7, struct ot9, union ot10 *, double *, union ot11, struct ot12 *, struct ot17, ...): Assertion `o69.o13.o8 == o82.o13.o8' failed. using the reduced version: (quest10-a.c) $ gcc quest-10a.c -O0 && ./a.out #OK $ gcc quest-10a.c -O3 && ./a.out #OK $ clang quest-10a.c -O0 && ./a.out #OK $ clang quest-10a.c -O1 && ./a.out #FAIL a.out: quest-10a.c:76: void callee_o0f(int, ...): Assertion `o69.o13.o8 == o82.o13.o8' failed. reducing optimizations: (scalarrepl + instcombine) #FAIL: $ clang quest-10a.c -O0 -o test.bc -c -emit-llvm && opt test.bc -scalarrepl -instcombine -o test2.bc && clang test2.bc && ./a.out a.out: quest-10a.c:76: void callee_o0f(int, ...): Assertion `o69.o13.o8 == o82.o13.o8' failed. (there is no abort with instcombine or scalarrepl only optimization) -- 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. From bugzilla-daemon at llvm.org Wed May 4 07:52:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 07:52:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 9839] New: missing negative options: -fno-pic and -fno-PIC Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9839 Summary: missing negative options: -fno-pic and -fno-PIC Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nobled at dreamwidth.org CC: llvmbugs at cs.uiuc.edu I tested gcc's behavior when these flags are combined with their opposites on an x86-32 Ubuntu install, and it actually seems to consider -fno-pic and -fno-PIC to have the same meaning: don't define __pic__ or __PIC__ at all. Not sure if that's a bug or intentional (I'd expected "-fpic -fno-PIC" to define them to 1), since the behavior isn't specifically documented, just the fact that "Most [options] have both positive and negative forms": http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html $ gcc --version gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5 $ gcc -fsyntax-only pic.c -fpic -fPIC -fno-PIC pic.c:3: error: #error __pic__ not defined $ gcc -fsyntax-only pic.c -fpic -fPIC -fno-pic pic.c:3: error: #error __pic__ not defined $ gcc -fsyntax-only pic.c -fpic -fno-PIC pic.c:3: error: #error __pic__ not defined $ gcc -fsyntax-only pic.c -fno-PIC -fpic pic.c:5: error: #error __pic__ equals 1 $ gcc -fsyntax-only pic.c -fno-pic -fPIC pic.c:5: error: #error __pic__ equals 2 $ cat pic.c #ifndef __pic__ #error __pic__ not defined #elif __pic__ == 1 #error __pic__ equals 1 #elif __pic__ == 2 #error __pic__ equals 2 #else #error WTF #endif -- 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. From bugzilla-daemon at llvm.org Wed May 4 07:59:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 07:59:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 9840] New: assert with Greedy Register Allocator in linux Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9840 Summary: assert with Greedy Register Allocator in linux Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pageexec at freemail.hu CC: llvmbugs at cs.uiuc.edu, pageexec at freemail.hu Blocks: 4068 while compiling linux-2.6.38.4 with clang r130836 i get this assert: CC arch/x86/lib/memcpy_32.o clang: /llvm/llvm/lib/CodeGen/InlineSpiller.cpp:988: virtual void::InlineSpiller::spill(llvm::LiveRangeEdit&): Assertion `edit.getParent().isSpillable() && "Attempting to spill already spilled value."' failed. 0 libLLVM-3.0svn.so 0xb2580d48 Stack dump: 0. Program arguments: /llvm/build.i386/image/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -main-file-name memcpy_32.c -mrelocation-model static -mregparm 3 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -no-implicit-float -target-cpu i686 -target-feature -sse -target-feature -sse -target-feature -mmx -target-feature -sse2 -target-feature -3dnow -target-linker-version 2.21 -momit-leaf-frame-pointer -nostdinc -resource-dir /llvm/build.i386/image/bin/../lib/clang/3.0 -dependency-file arch/x86/lib/.memcpy_32.o.d -MT arch/x86/lib/memcpy_32.o -sys-header-deps -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include -include include/generated/autoconf.h -D __KERNEL__ -D CONFIG_AS_CFI=1 -D CONFIG_AS_CFI_SIGNAL_FRAME=1 -D CONFIG_AS_CFI_SECTIONS=1 -D KBUILD_STR(s)=#s -D KBUILD_BASENAME=KBUILD_STR(memcpy_32) -D KBUILD_MODNAME=KBUILD_STR(memcpy_32) -I arch/x86/include -I include -Os -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -W -Wno-empty-body -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-value -Wno-format -Wno-unknown-warning-option -Werror-implicit-function-declaration -Wno-format-security -Wno-sign-compare -Wdeclaration-after-statement -Wno-pointer-sign -ferror-limit 19 -fmessage-length 277 -ffreestanding -pg -fwrapv -fgnu-runtime -fno-common -fdiagnostics-show-option -fcolor-diagnostics -o arch/x86/lib/memcpy_32.o -x c arch/x86/lib/memcpy_32.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'arch/x86/lib/memcpy_32.c'. 4. Running pass 'Greedy Register Allocator' on function '@memmove' clang: error: unable to execute command: Aborted the original source code: http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.38.y.git;a=blob_plain;f=arch/x86/lib/memcpy_32.c -- 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. From bugzilla-daemon at llvm.org Wed May 4 08:54:54 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 08:54:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 3696] [meta] The FreeBSD source tree does not fully compile with Clang In-Reply-To: References: Message-ID: <20110504135454.481352A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3696 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Dimitry Andric 2011-05-04 08:54:53 CDT --- Ok, as of r130700, all components of FreeBSD compile with clang, at least for i386 and x86_64. So I'm closing this PR :) -- 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. From bugzilla-daemon at llvm.org Wed May 4 11:49:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 11:49:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 9841] New: Infinite loop in GVN Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9841 Summary: Infinite loop in GVN Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: arushi987 at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6530) --> (http://llvm.org/bugs/attachment.cgi?id=6530) Reduced test case. -- 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. From bugzilla-daemon at llvm.org Wed May 4 12:58:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 12:58:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 9842] New: Missing implementation of llvm::sys::fs::canonicalize Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9842 Summary: Missing implementation of llvm::sys::fs::canonicalize Product: new-bugs Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: kyndigen at gmail.com CC: llvmbugs at cs.uiuc.edu I've grepped through the contents of the 2.9 release and a fresh checkout of trunk from SVN. I can find the prototype for fs::canonicalize(), but I can't find an implementation of it. If I try to use it, I get a link error. Testcase: ------------------------------------------ #include using namespace llvm; using namespace llvm::sys; int main() { SmallString<128> cpath; fs::canonicalize("/tmp", cpath); return 0; } ------------------------------------------- Results: /tmp/clang $ g++ `llvm-config --cxxflags --ldflags --libs all` canonicalize_bug.cpp /tmp/cchybXUa.o: In function `main': /tmp/clang/canonicalize_bug.cpp:8: undefined reference to `llvm::sys::fs::canonicalize(llvm::Twine const&, llvm::SmallVectorImpl&)' collect2: ld returned 1 exit status -- 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. From bugzilla-daemon at llvm.org Wed May 4 14:41:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 14:41:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 9843] New: PCH crash with conflicting identifiers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9843 Summary: PCH crash with conflicting identifiers Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: scshunt at csclub.uwaterloo.ca CC: llvmbugs at cs.uiuc.edu While attempting to hack around precompiled headers, I discovered that the following managed to elicit a pure virtual function call crash. Filing immediately; haven't performed any reduction yet. // Test this without pch. // RUN: %clang_cc1 -DPASS1 -DPASS2 -std=c++0x -fsyntax-only -verify %s // Test with pch. // RUN: %clang_cc1 -x c++-header -DPASS1 -std=c++0x -emit-pch -o %t %s // RUN: %clang_cc1 -DPASS2 -std=c++0x -include-pch %t -fsyntax-only -verify %s #ifdef PASS1 struct foo { foo(int) : foo() { } // expected-note{{it delegates to}} foo(); }; #undef PASS1 #endif #ifdef PASS2 foo::foo() : foo(1) { } // expected-error{{creates a delegation cycle}} \ // expected-note{{which delegates to}} #endif -- 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. From bugzilla-daemon at llvm.org Wed May 4 17:22:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 17:22:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 9844] New: LLVM miscompiles dlls/cabinet/fdi.c from Wine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9844 Summary: LLVM miscompiles dlls/cabinet/fdi.c from Wine Product: clang Version: trunk Platform: PC URL: http://bugs.winehq.org/show_bug.cgi?id=26755 OS/Version: Linux Status: NEW Keywords: miscompilation Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu, cdavis at mymail.mines.edu Created an attachment (id=6531) --> (http://llvm.org/bugs/attachment.cgi?id=6531) wine backtrace Causes a crash in wine, when running wineboot (which doesn't get a good backtrace), or when running the regression tests for dlls/cabinet. I'll attach preprocessed C files from gcc and Clang. clang version 3.0 (trunk 130866) -- 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. From bugzilla-daemon at llvm.org Wed May 4 19:03:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 19:03:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 9840] assert with Greedy Register Allocator in linux In-Reply-To: References: Message-ID: <20110505000358.6EC162A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9840 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Jakob Stoklund Olesen 2011-05-04 19:03:57 CDT --- Fixed in r130896 by disabling -join-physregs by default. -- 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. From bugzilla-daemon at llvm.org Wed May 4 20:59:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 May 2011 20:59:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 9845] New: clang crash with floating point exception Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9845 Summary: clang crash with floating point exception Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu [regehr at gamow tmp018]$ clang -c -w -O2 small.c 0 clang 0x00000000018e1acf 1 clang 0x00000000018e3d42 2 libpthread.so.0 0x00007ffff7bcf8f0 3 clang 0x00000000015dc881 4 clang 0x00000000015dde14 5 clang 0x00000000015de867 6 clang 0x00000000017042d4 llvm::LPPassManager::runOnFunction(llvm::Function&) + 1252 7 clang 0x000000000182e2cb llvm::FPPassManager::runOnFunction(llvm::Function&) + 587 8 clang 0x000000000182e3cb llvm::FPPassManager::runOnModule(llvm::Module&) + 75 9 clang 0x000000000182ddc7 llvm::MPPassManager::runOnModule(llvm::Module&) + 503 10 clang 0x000000000182df5b llvm::PassManagerImpl::run(llvm::Module&) + 187 11 clang 0x00000000007c7dde 12 clang 0x00000000007c8a0d clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 189 13 clang 0x00000000007c53fb clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 251 14 clang 0x00000000008f525d clang::ParseAST(clang::Sema&, bool) + 413 15 clang 0x00000000007c4744 clang::CodeGenAction::ExecuteAction() + 68 16 clang 0x00000000006b09f3 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371 17 clang 0x0000000000688124 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1268 18 clang 0x000000000067efdb cc1_main(char const**, char const**, char const*, void*) + 683 19 clang 0x0000000000686f77 main + 6295 20 libc.so.6 0x00007ffff6ea9c4d __libc_start_main + 253 21 clang 0x000000000067d4a9 Stack dump: 0. Program arguments: /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r130907-install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -coverage-file small.o -resource-dir /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r130907-install/bin/../lib/clang/3.0 -O2 -w -ferror-limit 19 -fmessage-length 81 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o small.o -x c small.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'small.c'. 4. Running pass 'Loop Pass Manager' on function '@func_37' 5. Running pass 'Loop Strength Reduction' on basic block '%for.body' clang: error: unable to execute command: Floating point exception clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) [regehr at gamow tmp018]$ clang -v clang version 3.0 (trunk 130907) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at gamow tmp018]$ cat small.c long safe_33 (int si1, long si2) { return 0 ? 0 : si1 - si2; } int safe_36 (long si1, int si2) { return si1 == -9223372036854775807LL - 1; } int safe_62 (int ui1, int ui2) { return ui1 + 1; } int g_43; int ** func_37 (p_38) { for (0; 1; p_38 = safe_62 (p_38, 1)) { int *l_42 = &g_43; if (safe_36 (safe_33 (p_38, *l_42), 0)) { } else for (0; g_43; 1) { } } } int main (void) { return 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. From bugzilla-daemon at llvm.org Thu May 5 01:08:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 01:08:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 9846] New: Assertion `B->end <= Start && "Cannot overlap two LiveRanges with differing ValID's" " (did you def the same reg twice in a MachineInstr?)"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9846 Summary: Assertion `B->end <= Start && "Cannot overlap two LiveRanges with differing ValID's" " (did you def the same reg twice in a MachineInstr?)"' failed. Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu [regehr at gamow tmp019]$ clang -c -w -O2 small.c clang: LiveInterval.cpp:267: llvm::LiveRange* llvm::LiveInterval::addRangeFrom(llvm::LiveRange, llvm::LiveRange*): Assertion `B->end <= Start && "Cannot overlap two LiveRanges with differing ValID's" " (did you def the same reg twice in a MachineInstr?)"' failed. 0 clang 0x00000000018e1acf 1 clang 0x00000000018e3d42 2 libpthread.so.0 0x00007ffff7bcf8f0 3 libc.so.6 0x00007ffff6ebea75 gsignal + 53 4 libc.so.6 0x00007ffff6ec25c0 abort + 384 5 libc.so.6 0x00007ffff6eb7941 __assert_fail + 241 6 clang 0x0000000001543b8d llvm::LiveInterval::addRangeFrom(llvm::LiveRange, llvm::LiveRange*) + 973 7 clang 0x000000000154b4ea llvm::LiveIntervals::handleLiveInRegister(llvm::MachineBasicBlock*, llvm::SlotIndex, llvm::LiveInterval&, bool) + 538 8 clang 0x0000000001552f84 llvm::LiveIntervals::computeIntervals() + 340 9 clang 0x00000000015536f3 llvm::LiveIntervals::runOnMachineFunction(llvm::MachineFunction&) + 627 10 clang 0x000000000182e2cb llvm::FPPassManager::runOnFunction(llvm::Function&) + 587 11 clang 0x000000000182e3cb llvm::FPPassManager::runOnModule(llvm::Module&) + 75 12 clang 0x000000000182ddc7 llvm::MPPassManager::runOnModule(llvm::Module&) + 503 13 clang 0x000000000182df5b llvm::PassManagerImpl::run(llvm::Module&) + 187 14 clang 0x00000000007c7dde 15 clang 0x00000000007c8a0d clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 189 16 clang 0x00000000007c53fb clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 251 17 clang 0x00000000008f525d clang::ParseAST(clang::Sema&, bool) + 413 18 clang 0x00000000007c4744 clang::CodeGenAction::ExecuteAction() + 68 19 clang 0x00000000006b09f3 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371 20 clang 0x0000000000688124 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1268 21 clang 0x000000000067efdb cc1_main(char const**, char const**, char const*, void*) + 683 22 clang 0x0000000000686f77 main + 6295 23 libc.so.6 0x00007ffff6ea9c4d __libc_start_main + 253 24 clang 0x000000000067d4a9 Stack dump: 0. Program arguments: /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r130907-install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -coverage-file small.o -resource-dir /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r130907-install/bin/../lib/clang/3.0 -O2 -w -ferror-limit 19 -fmessage-length 81 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o small.o -x c small.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'small.c'. 4. Running pass 'Live Interval Analysis' on function '@func_55' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) [regehr at gamow tmp019]$ clang -v clang version 3.0 (trunk 130907) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at gamow tmp019]$ cat small.c short safe_14 (int si1, short si2) { return si1 && si2 && (1 / si2) || si2 <= 0 && si2 < -32767 + si1 ? 0 : si2; } int g_61; int g_90; int func_55 (int p_56, int p_57) { int *l_60 = &g_61; int *l_346 = &g_90; *l_60 = safe_14 (1, *l_346 == 0); return 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. From bugzilla-daemon at llvm.org Thu May 5 09:56:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 09:56:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 9847] New: mm_malloc.h generates an error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9847 Summary: mm_malloc.h generates an error Product: new-bugs Version: 2.9 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: yottui at yahoo.co.jp CC: llvmbugs at cs.uiuc.edu I'm using clang++ 2.9 and MinGW-gcc 4.5.2. At that time, the compiler generates an error. --- begin test case (xmmintrin.cpp) --- #include --- end test case --- --- begin operation --- $ clang++ -c -msse xmmintrin.cpp In file included from xmmintrin.cpp:1: In file included from C:/MinGW/bin/../lib/clang/2.9/include/xmmintrin.h:40: C:/MinGW/bin/../lib/clang/2.9/include/mm_malloc.h:57:20: error: use of undeclared identifier '_aligned_malloc' mallocedMemory = _aligned_malloc(size, align); ^ 1 error generated. --- end operation --- -- 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. From bugzilla-daemon at llvm.org Thu May 5 10:19:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 10:19:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 9848] New: _mm_andnot_si64() is broken Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9848 Summary: _mm_andnot_si64() is broken Product: new-bugs Version: 2.9 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: yottui at yahoo.co.jp CC: llvmbugs at cs.uiuc.edu clang++ 2.9 generates a wrong code with _mm_andnot_si64(). Ths source register and the destination register are swapped in PANDN. --- begin test case (andnot.cpp) --- #include __m64 max_pu16(__m64 lhs, __m64 rhs) { __m64 sign = _mm_set1_pi16((short)0x8000); __m64 ls = _mm_xor_si64(lhs, sign); __m64 rs = _mm_xor_si64(rhs, sign); __m64 mask = _mm_cmpgt_pi16(ls, rs); __m64 gt = _mm_and_si64(mask, lhs); __m64 le = _mm_andnot_si64(mask, rhs); return _mm_or_si64(gt, le); } --- end test case --- --- begin output --- $ clang++ -O -S -mmmx -mno-sse -mno-sse2 -D _mm_malloc andnot.cpp $ cat andnot.s .def __Z8max_pu16Dv1_xS_; .scl 2; .type 32; .endef .text .globl __Z8max_pu16Dv1_xS_ .align 16, 0x90 __Z8max_pu16Dv1_xS_: subl $68, %esp movl 84(%esp), %eax ; rhs[1] movl %eax, 44(%esp) ; -> 44(esp) movl 80(%esp), %eax ; rhs[0] movl %eax, 40(%esp) ; -> 40(esp) movl 76(%esp), %eax ; lhs[1] movl %eax, 52(%esp) ; -> 52(esp) movl 72(%esp), %eax ; lhs[0] movl %eax, 48(%esp) ; -> 48(esp) movl $-2147450880, 60(%esp) ; 0x8000 -> 60(esp) movl $-2147450880, 56(%esp) ; 0x8000 -> 56(esp) movq 56(%esp), %mm0 ; 0x8000 -> mm0 movq 40(%esp), %mm1 ; rhs -> mm1 movq %mm1, %mm2 ; rhs -> mm2 pxor %mm0, %mm2 ; 0x8000 ^ rhs -> mm2 = rs movq 48(%esp), %mm3 ; lhs -> mm3 pxor %mm3, %mm0 ; lhs ^ 0x8000 -> mm0 = ls pcmpgtw %mm2, %mm0 ; rs < ls movq %mm0, 8(%esp) ; -> 8(esp) = mask movl 8(%esp), %eax ; 8(esp) -> eax movl 12(%esp), %ecx ; 12(esp) -> ecx movl %ecx, 20(%esp) ; ecx -> 20(esp) movl %eax, 16(%esp) ; eax -> 16(esp) movq 16(%esp), %mm0 ; mask -> mm0 pandn %mm0, %mm1 ; mask & ~rhs -> mm1 = le !!!!!! wrong code !!!!! pand %mm3, %mm0 ; lhs & mask -> mm0 = gt por %mm1, %mm0 ; le | gt -> mm0 movq %mm0, (%esp) movl (%esp), %eax movl 4(%esp), %edx addl $68, %esp ret --- end output --- -- 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. From bugzilla-daemon at llvm.org Thu May 5 10:23:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 10:23:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 9849] New: The elements of the result of _mm_setr_pi16() and _mm_setr_pi32() are swapped Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9849 Summary: The elements of the result of _mm_setr_pi16() and _mm_setr_pi32() are swapped Product: new-bugs Version: 2.9 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: yottui at yahoo.co.jp CC: llvmbugs at cs.uiuc.edu _mm_setr_pi16() and _mm_setr_pi32() are defined in lib/clang/2.9/include/mmintrin.h But these function parameters are swapped. --- begin mmintrin.h --- static __inline__ __m64 __attribute__((__always_inline__, __nodebug__)) _mm_setr_pi32(int __i1, int __i0) { return _mm_set_pi32(__i1, __i0); } static __inline__ __m64 __attribute__((__always_inline__, __nodebug__)) _mm_setr_pi16(short __w3, short __w2, short __w1, short __w0) { return _mm_set_pi16(__w3, __w2, __w1, __w0); } --- end mmintrin.h --- -- 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. From bugzilla-daemon at llvm.org Thu May 5 10:31:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 10:31:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 9850] New: _mm_cmpgt_epi32() is broken Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9850 Summary: _mm_cmpgt_epi32() is broken Product: new-bugs Version: 2.9 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: yottui at yahoo.co.jp CC: llvmbugs at cs.uiuc.edu _mm_cmpgt_epi32() does not generate PCMPGT. --- begin test case (cmpgt.cpp) --- #include __m128i has_carry(__m128i lhs, __m128i rhs) { __m128i add = _mm_add_epi32(lhs, rhs); __m128i carry = _mm_cmpgt_epi32(lhs, add); return carry; } --- end test case --- --- begin output --- $ clang++ -O -S -msse2 -D _mm_malloc cmpgt.cpp $ cat cmpgt.s .def __Z9has_carryDv2_xS_; .scl 2; .type 32; .endef .text .globl __Z9has_carryDv2_xS_ .align 16, 0x90 __Z9has_carryDv2_xS_: movdqa %xmm1, %xmm0 psrad $31, %xmm0 ret --- end output --- -- 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. From bugzilla-daemon at llvm.org Thu May 5 11:18:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 11:18:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 9846] Assertion `B->end <= Start && "Cannot overlap two LiveRanges with differing ValID's" " (did you def the same reg twice in a MachineInstr?)"' failed. In-Reply-To: References: Message-ID: <20110505161858.BCFD12A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9846 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-05-05 11:18:58 CDT --- r130925; thanks a bunch for the testcase! -- 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. From bugzilla-daemon at llvm.org Thu May 5 12:04:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 12:04:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 8361] duplicated compare instruction In-Reply-To: References: Message-ID: <20110505170433.4C7302A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8361 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-05-05 12:04:32 CDT --- r130928. -- 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. From bugzilla-daemon at llvm.org Thu May 5 12:45:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 12:45:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 9848] _mm_andnot_si64() is broken In-Reply-To: References: Message-ID: <20110505174544.6C4252A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9848 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-05-05 12:45:44 CDT --- r130932. -- 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. From bugzilla-daemon at llvm.org Thu May 5 13:43:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 13:43:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 9851] New: llc -combiner-alias-analysis reorders volatiles Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9851 Summary: llc -combiner-alias-analysis reorders volatiles Product: new-bugs Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: hausen at gmx.at CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6546) --> (http://llvm.org/bugs/attachment.cgi?id=6546) Test case for reordering of volatiles. llc reorders accesses to volatiles if -combiner-alias-analysis is enabled, although volatiles should not be reordered with regard to each other. Testcase, which miscompiles at least for sparc and ppc32: define i32 @test() { %X = volatile load i32* inttoptr(i32 8 to i32*) %Y = volatile load i32* inttoptr(i32 12 to i32*) %Z = add i32 %Y, 1000 ret i32 %Z } Correct code, from llc -march=ppc32 lwz 3, 8(0) lwz 3, 12(0) addi 3, 3, 1000 blr Miscompiled code, from llc -march=ppc32 -combiner-alias-analysis lwz 3, 12(0) lwz 4, 8(0) addi 3, 3, 1000 blr -- 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. From bugzilla-daemon at llvm.org Thu May 5 15:18:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 15:18:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 9852] New: Assertion failure with invalid C++ code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9852 Summary: Assertion failure with invalid C++ code Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: andersca at mac.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com struct A { virtual void f() = 0; A(); }; A::A() { void A::(*f)(); } The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /Users/andersca/src/llvm/build/bin/Debug/clang -cc1 -fsyntax-only t.cpp Assertion failed: (!EnteredScope && "Already entered the scope!"), function EnterDeclaratorScope, file /Users/andersca/src/llvm/tools/clang/include/clang/Parse/Parser.h, line 1669. Program received signal SIGABRT, Aborted. 0x00007fff87a16cba in __pthread_kill () -- 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. From bugzilla-daemon at llvm.org Thu May 5 15:22:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 15:22:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 9849] The elements of the result of _mm_setr_pi16() and _mm_setr_pi32() are swapped In-Reply-To: References: Message-ID: <20110505202212.E1F132A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9849 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-05-05 15:22:12 CDT --- r130945. -- 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. From bugzilla-daemon at llvm.org Thu May 5 17:00:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 17:00:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 9838] r130717 breaks quest tests In-Reply-To: References: Message-ID: <20110505220018.649C42A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9838 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Eli Friedman 2011-05-05 17:00:18 CDT --- r130954. -- 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. From bugzilla-daemon at llvm.org Thu May 5 18:38:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 18:38:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 9853] New: Friends allowed to define member functions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9853 Summary: Friends allowed to define member functions Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: scshunt at csclub.uwaterloo.ca CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com We accept the following: struct bar { void baz(); }; struct foo { friend void bar::baz() { } }; which is ill-formed as bar::baz is a) a qualified-name and b) not at namespace scope. We should error this. -- 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. From bugzilla-daemon at llvm.org Thu May 5 19:52:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 May 2011 19:52:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 9854] New: undefs symbols from the global namespace Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9854 Summary: undefs symbols from the global namespace Product: libc++ Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: All Bugs AssignedTo: hhinnant at apple.com ReportedBy: jyasskin at google.com CC: llvmbugs at cs.uiuc.edu $ cat test.cc #include void foo(double works) { isnan(works); } #include void bar(double doesnt) { isnan(doesnt); } $ clang++ -stdlib=libc++ -c test.cc test.cc:10:5: error: use of undeclared identifier 'isnan' isnan(doesnt); ^ 1 error generated. This is basically the same issue as http://gcc.gnu.org/PR14608. [depr.c.headers] says that puts the names into the global namespace, and it doesn't allow a later include of to take them back out. [depr.c.headers] also allows to 'using' its declarations and definitions into the global namespace, which is what I'd propose as a fix. One twist is that glibc's defines at least isnan and isinf as functions in the global namespace rather than just macros, so you can't simply add that using declaration on all platforms. -- 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. From bugzilla-daemon at llvm.org Fri May 6 01:16:54 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 01:16:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 9851] llc -combiner-alias-analysis reorders volatiles In-Reply-To: References: Message-ID: <20110506061654.558802A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9851 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |baldrick at free.fr Resolution| |INVALID --- Comment #2 from Duncan Sands 2011-05-06 01:16:53 CDT --- As far as I know reordering volatiles is perfectly valid. You need a memory barrier if you want to enforce ordering. -- 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. From bugzilla-daemon at llvm.org Fri May 6 01:54:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 01:54:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 9851] llc -combiner-alias-analysis reorders volatiles In-Reply-To: References: Message-ID: <20110506065435.DBB8B2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9851 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #3 from Eli Friedman 2011-05-06 01:54:35 CDT --- (In reply to comment #2) > As far as I know reordering volatiles is perfectly valid. You need a memory > barrier if you want to enforce ordering. >From LangRef: "The optimizers must not change the number of volatile operations or change their order of execution relative to other volatile operations." -- 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. From bugzilla-daemon at llvm.org Fri May 6 03:43:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 03:43:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 9855] New: trying to call an inlined function, causing link failure Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9855 Summary: trying to call an inlined function, causing link failure Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: release blocker Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: if.html at gmail.com CC: llvmbugs at cs.uiuc.edu code: #include inline unsigned int f(unsigned int x){ if(x%2==0) { return x/2; } else { return 3*x+1; } } int main(){ unsigned int x; for(scanf("%d",&x); x!=1; printf("%d\n", x)) x=f(x); return 0; } --------- what clang compiles to: .def _main; .scl 2; .type 32; .endef .text .globl _main .align 16, 0x90 _main: pushl %ebp movl %esp, %ebp subl $24, %esp calll ___main leal L_.str, %eax leal -8(%ebp), %ecx movl $0, -4(%ebp) movl %eax, (%esp) movl %ecx, 4(%esp) calll _scanf movl %eax, -12(%ebp) LBB0_1: cmpl $1, -8(%ebp) je LBB0_4 movl -8(%ebp), %eax movl %eax, (%esp) calll _f ; <=== here movl %eax, -8(%ebp) leal L_.str1, %eax movl -8(%ebp), %ecx movl %eax, (%esp) movl %ecx, 4(%esp) calll _printf movl %eax, -16(%ebp) jmp LBB0_1 LBB0_4: movl $0, %eax addl $24, %esp popl %ebp ret .data L_.str: .asciz "%d" L_.str1: .asciz "%d\n" ------ BTW, with -O2 option, clang generates correct assembly -- 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. From bugzilla-daemon at llvm.org Fri May 6 05:31:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 05:31:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 9820] output crashes, but should not In-Reply-To: References: Message-ID: <20110506103119.296362A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9820 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Duncan Sands 2011-05-06 05:31:18 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110502/120486.html -- 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. From bugzilla-daemon at llvm.org Fri May 6 09:16:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 09:16:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 9856] New: Assertion `(isa(GlobalUser) || isa(GlobalUser) || isa(GlobalUser)) && "Only expect load and stores!"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9856 Summary: Assertion `(isa(GlobalUser) || isa(GlobalUser) || isa(GlobalUser)) && "Only expect load and stores!"' failed. Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu [regehr at gamow tmp021]$ clang -O small.c -c -w clang: GlobalOpt.cpp:802: bool OptimizeAwayTrappingUsesOfLoads(llvm::GlobalVariable*, llvm::Constant*): Assertion `(isa(GlobalUser) || isa(GlobalUser) || isa(GlobalUser)) && "Only expect load and stores!"' failed. 0 clang 0x00000000018e308f 1 clang 0x00000000018e5302 2 libpthread.so.0 0x00007ffff7bcf8f0 3 libc.so.6 0x00007ffff6ebea75 gsignal + 53 4 libc.so.6 0x00007ffff6ec25c0 abort + 384 5 libc.so.6 0x00007ffff6eb7941 __assert_fail + 241 6 clang 0x0000000000ebb68d 7 clang 0x0000000000ebe3a0 8 clang 0x0000000000ebf0fb 9 clang 0x0000000000ebf5ad 10 clang 0x000000000182f377 llvm::MPPassManager::runOnModule(llvm::Module&) + 503 11 clang 0x000000000182f50b llvm::PassManagerImpl::run(llvm::Module&) + 187 12 clang 0x00000000007c8a08 13 clang 0x00000000007c968d clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 189 14 clang 0x00000000007c607b clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 251 15 clang 0x00000000008f5efd clang::ParseAST(clang::Sema&, bool) + 413 16 clang 0x00000000007c53c4 clang::CodeGenAction::ExecuteAction() + 68 17 clang 0x00000000006b1583 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371 18 clang 0x0000000000688b84 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1268 19 clang 0x000000000067fa3b cc1_main(char const**, char const**, char const*, void*) + 683 20 clang 0x00000000006879d7 main + 6295 21 libc.so.6 0x00007ffff6ea9c4d __libc_start_main + 253 22 clang 0x000000000067df09 Stack dump: 0. Program arguments: /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r130980-install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -coverage-file small.o -resource-dir /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r130980-install/bin/../lib/clang/3.0 -O2 -w -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o small.o -x c small.c 1. parser at end of file 2. Per-module optimization passes 3. Running pass 'Global Variable Optimizer' on module 'small.c'. clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) [regehr at gamow tmp021]$ clang -v clang version 3.0 (trunk 130980) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at gamow tmp021]$ cat small.c struct S0 { int f3; int f6; int f8; }; static int **g_52; int *g_90; struct S0 g_175[0] = { }; int func_47 (int, int, int **p_50, int); unsigned long long func_9 (unsigned short p_10) { int l_18[2] = { 0, 0 }; if (l_18[1], l_18[1], func_47 (0, 0, g_52, 1), g_175[0].f8, g_175[0].f3) ; int **l_203[0]; int ***l_208 = &l_203[0]; int **l_117 = &g_90; int ***l_118 = &g_52; *l_118 = l_117; g_175[0].f6 <= g_175[0].f8 || l_208 != &g_52; return 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. From bugzilla-daemon at llvm.org Fri May 6 09:26:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 09:26:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 7966] missing warning about use of virtual member inside destructor In-Reply-To: References: Message-ID: <20110506142612.C19B72A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7966 Anders Carlsson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andersca at mac.com Resolution| |FIXED --- Comment #1 from Anders Carlsson 2011-05-06 09:26:12 CDT --- Committed revision 130982. -- 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. From bugzilla-daemon at llvm.org Fri May 6 09:36:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 09:36:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 9290] [MC] Conditional jumps are encoded sub-optimally In-Reply-To: References: Message-ID: <20110506143639.4C2E62A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9290 J?rg Sonnenberger changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED -- 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. From bugzilla-daemon at llvm.org Fri May 6 10:26:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 10:26:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 9857] New: llvm bitcode writer assertion failed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9857 Summary: llvm bitcode writer assertion failed Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Bitcode Writer AssignedTo: unassignedbugs at nondot.org ReportedBy: quickslyver at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6549) --> (http://llvm.org/bugs/attachment.cgi?id=6549) bug.c bug.c is 990208-1.c from gcc torture suite $clang bug.c -O2 -c -emit-llvm clang-3.0: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:875: void WriteConstants(unsigned int, unsigned int, const llvm::ValueEnumerator&, llvm::BitstreamWriter&, bool): Assertion `BA->getFunction() == BA->getBasicBlock()->getParent() && "Malformed blockaddress"' failed. Stack dump: 0. Program arguments: llvm-build/bin/clang-3.0 -cc1 -triple i386-pc-linux-gnu -emit-llvm-bc -disable-free -main-file-name bug.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -momit-leaf-frame-pointer -coverage-file bug.o -resource-dir llvm-build/bin/../lib/clang/3.0 -O2 -ferror-limit 19 -fmessage-length 117 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o bug.o -x c bug.c 1. parser at end of file 2. Per-module optimization passes 3. Running pass 'Bitcode Writer' on module 'bug.c'. clang-3: error: unable to execute command: Aborted clang-3: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- 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. From bugzilla-daemon at llvm.org Fri May 6 12:22:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 12:22:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 9858] New: targetdata strings starting with "-" causing assertion failures Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9858 Summary: targetdata strings starting with "-" causing assertion failures Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Target Description Classes AssignedTo: unassignedbugs at nondot.org ReportedBy: bob.wilson at apple.com CC: llvmbugs at cs.uiuc.edu The llvm-gcc-x86_64-linux-selfhost and clang-x86_64-linux-selfhost-rel buildbots, running on osu7, have been failing since 5/2/11: http://lists.cs.uiuc.edu/pipermail/llvm-testresults/2011-May/032970.html http://lists.cs.uiuc.edu/pipermail/llvm-testresults/2011-May/032971.html The symptom is that tests containing targetdata strings beginning with "-", e.g., "-p:64:64:64", get assertion failures like this: opt: /build/buildbot-llvm/clang-x86_64-linux-selfhost-rel/llvm.src/lib/Target/TargetData.cpp:166: void llvm::TargetData::init(llvm::StringRef): Assertion `!Specifier.empty() && "Can't be empty here"' failed. 0 opt 0x000000000091148f 1 opt 0x0000000000911989 2 libpthread.so.0 0x00002b4fe7e86020 3 libc.so.6 0x00002b4fe8a6d415 gsignal + 53 4 libc.so.6 0x00002b4fe8a70690 abort + 384 5 libc.so.6 0x00002b4fe8a665c1 __assert_fail + 241 6 opt 0x00000000007a08bd llvm::TargetData::init(llvm::StringRef) + 1933 7 opt 0x00000000004bf346 main + 2454 8 libc.so.6 0x00002b4fe8a59eed __libc_start_main + 253 9 opt 0x00000000004acaa9 I don't see anything that changes around that time that would cause this, and we're not seeing it on any other testers, but it would be good to get those buildbots fixed soon. -- 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. From bugzilla-daemon at llvm.org Fri May 6 12:44:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 12:44:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 9855] trying to call an inlined function, causing link failure In-Reply-To: References: Message-ID: <20110506174438.A3E6E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9855 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-05-06 12:44:38 CDT --- If your program GNU-style inline semantics, either fix it to use C99 semantics, or pass -std=gnu89 to clang. -- 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. From bugzilla-daemon at llvm.org Fri May 6 13:04:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 13:04:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 9850] _mm_cmpgt_epi32() is broken In-Reply-To: References: Message-ID: <20110506180446.75CE42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9850 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-05-06 13:04:45 CDT --- r131000. -- 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. From bugzilla-daemon at llvm.org Fri May 6 13:08:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 13:08:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 9859] New: internal compiler error: in extract_insn, at recog.c:2031 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9859 Summary: internal compiler error: in extract_insn, at recog.c:2031 Product: new-bugs Version: 2.9 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: gryffindor.godric at gmail.com CC: llvmbugs at cs.uiuc.edu Compilation of LLVM version 2.9 fails on PowerPC architecture, with the following error: llvm[3]: Compiling PPCISelLowering.cpp for Release build PPCISelLowering.cpp: In member function ?llvm::SDValue llvm::PPCTargetLowering::LowerFormalArguments_SVR4(llvm::SDValue, llvm::CallingConv::ID, bool, const llvm::SmallVectorImpl&, llvm::DebugLoc, llvm::SelectionDAG&, llvm::SmallVectorImpl&) const?: PPCISelLowering.cpp:1772: error: unrecognizable insn: (insn 2370 2369 1450 120 /tmp/llvm/llvm-2.8/include/llvm/CodeGen/ValueTypes.h:233 (set (reg:SI 11 11) (mem/u/c/i:SI (symbol_ref/u:SI ("*.LC233") [flags 0x82]) [8 S4 A32])) -1 (insn_list:REG_LABEL_OPERAND 1454 (nil))) PPCISelLowering.cpp:1772: internal compiler error: in extract_insn, at recog.c:2031 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. /bin/rm: cannot remove `/tmp/llvm/llvm-2.8/lib/Target/PowerPC/Release/PPCISelLowering.d.tmp': No such file or directory make[3]: *** [/tmp/llvm/llvm-2.8/lib/Target/PowerPC/Release/PPCISelLowering.o] Error 1 OS Details: Kernel Version (as reported by uname -a): 2.6.27.56-0.1-ppc64 #1 SMP 2010-12-01 16:57:58 +0100 ppc64 ppc64 ppc64 GNU/Linux GCC Version (as reported by gcc -v): Using built-in specs. Target: powerpc64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=default32 --enable-secureplt --with-long-double-128 --build=powerpc64-suse-linux Thread model: posix gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) Distribution/Version:openSUSE 11.1 (ppc) -- 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. From bugzilla-daemon at llvm.org Fri May 6 13:13:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 13:13:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 9859] internal compiler error: in extract_insn, at recog.c:2031 In-Reply-To: References: Message-ID: <20110506181344.E94622A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9859 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |asl at math.spbu.ru Resolution| |INVALID --- Comment #1 from Anton Korobeynikov 2011-05-06 13:13:44 CDT --- This is bug in your system gcc. Please report this to OpenSUSE / gcc bugzilla. -- 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. From bugzilla-daemon at llvm.org Fri May 6 15:57:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 15:57:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 4668] "Ran out of registers during register allocation" on x86-32 with asm using only 6 registers In-Reply-To: References: Message-ID: <20110506205702.CA3B32A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4668 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #11 from Jakob Stoklund Olesen 2011-05-06 15:57:01 CDT --- This is likely to have been fixed by disabling physical register coalescing, but I can no longer make the test case fail. Please verify with trunk. -- 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. From bugzilla-daemon at llvm.org Fri May 6 16:00:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 16:00:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 8051] Linear Scan Register Allocator crash on mixed register classes / high pressure In-Reply-To: References: Message-ID: <20110506210036.DCC1D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8051 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Jakob Stoklund Olesen 2011-05-06 16:00:35 CDT --- Physreg coalescing has been disabled. Not that I couldn't reproduce this problem even with -join-physregs, though. -- 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. From bugzilla-daemon at llvm.org Fri May 6 16:09:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 16:09:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 9857] llvm bitcode writer assertion failed In-Reply-To: References: Message-ID: <20110506210957.125E22A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9857 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Nick Lewycky 2011-05-06 16:09:56 CDT --- Fixed in r131016. -- 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. From bugzilla-daemon at llvm.org Fri May 6 16:46:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 16:46:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 9860] New: Clang "no viable conversion" bug with operator overload Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9860 Summary: Clang "no viable conversion" bug with operator overload Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: d235j.1 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When compiling the attached preprocessed source file, I get the following error: In file included from src/emu/emuopts.c:1: src/emu/emuopts.c:459:31: error: no viable conversion from 'emu_file' to 'core_file' (aka '_core_file') bool result = parse_ini_file(file, priority, OPTION_PRIORITY_DRIVER_INI, error); ^~~~ src/emu/fileio.h:118:2: note: candidate function operator core_file &(); ^ src/lib/util/options.h:163:33: note: passing argument to parameter 'inifile' here bool parse_ini_file(core_file &inifile, int priority, int ignore_priority, astring &error_string); ^ 1 error generated. There could be a bug in the code, but I can't find it. -- 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. From bugzilla-daemon at llvm.org Fri May 6 17:19:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 17:19:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 9861] New: clang -E produces output that clang doesn't like Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9861 Summary: clang -E produces output that clang doesn't like Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu $ cat foobar.c #include "foobar.h" $ cat foobar.h #pragma GCC system_header $ clang -c foobar.c $ gcc -c foobar.c $ gcc -c foobar.c -save-temps $ cat foobar.i # 1 "foobar.c" # 1 "" # 1 "" # 1 "foobar.c" # 1 "foobar.h" 1 # 1 "foobar.h" 3 # 1 "foobar.c" 2 $ clang -c foobar.c -save-temps In file included from foobar.c:1: In file included from foobar.c:1: ./foobar.h:1:3: error: line marker directive requires a positive integer argument # 0 "./foobar.h" ^ ./foobar.h:2:3: error: line marker directive requires a positive integer argument # 0 "./foobar.h" 3 ^ 2 errors generated. $ cat foobar.i # 1 "foobar.c" # 1 "foobar.c" 1 # 1 "" 1 # 1 "" 3 # 132 "" 3 # 1 "" 1 # 1 "" 2 # 1 "foobar.c" 2 # 1 "./foobar.h" 1 # 0 "./foobar.h" # 0 "./foobar.h" 3 # 2 "foobar.c" 2 -- 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. From bugzilla-daemon at llvm.org Fri May 6 19:35:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 19:35:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 9862] New: clang can't link with -g on darwin if POSIXLY_CORRECT environmental is set Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9862 Summary: clang can't link with -g on darwin if POSIXLY_CORRECT environmental is set Product: clang Version: 2.9 Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: howarth at nitro.med.uc.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6551) --> (http://llvm.org/bugs/attachment.cgi?id=6551) testcase demonstrating broken call to dsymutil when POSIXLY_CORRECT env is set Currently if the POSIXLY_CORRECT environmental is set and -g is used in clang, the resulting call to dsymutil fails... frodo:~] howarth% /sw/opt/llvm-2.9/bin/clang -v -o conftest -g -O2 conftest.c clang version 2.9 (tags/RELEASE_29/final) Target: x86_64-apple-darwin10 Thread model: posix "/sw/opt/llvm-2.9/bin/clang-2.9" -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name conftest.c -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -v -g -resource-dir /sw/opt/llvm-2.9/bin/../lib/clang/2.9 -O2 -ferror-limit 19 -fmessage-length 136 -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-JYeXyF.o -x c conftest.c clang -cc1 version 2.9 based upon llvm 2.9 hosted on x86_64-apple-darwin10 ignoring nonexistent directory "/usr/local/include" #include "..." search starts here: #include <...> search starts here: /sw/opt/llvm-2.9/bin/../lib/clang/2.9/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. "/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld" -dynamic -arch x86_64 -macosx_version_min 10.6.0 -o conftest -lcrt1.10.6.o /tmp/cc-JYeXyF.o -lSystem "/usr/bin/dsymutil" conftest -o conftest.dSYM error: unable to open executable '-o' clang-2: error: dsymutil command failed with exit code 1 (use -v to see invocation) whereas without setting POSIXLY_CORRECT, the same test case links fine... [frodo:~] howarth% /sw/opt/llvm-2.9/bin/clang -v -o conftest -g -O2 conftest.c clang version 2.9 (tags/RELEASE_29/final) Target: x86_64-apple-darwin10 Thread model: posix "/sw/opt/llvm-2.9/bin/clang-2.9" -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name conftest.c -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -v -g -resource-dir /sw/opt/llvm-2.9/bin/../lib/clang/2.9 -O2 -ferror-limit 19 -fmessage-length 136 -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-7gdqNX.o -x c conftest.c clang -cc1 version 2.9 based upon llvm 2.9 hosted on x86_64-apple-darwin10 ignoring nonexistent directory "/usr/local/include" #include "..." search starts here: #include <...> search starts here: /sw/opt/llvm-2.9/bin/../lib/clang/2.9/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. "/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld" -dynamic -arch x86_64 -macosx_version_min 10.6.0 -o conftest -lcrt1.10.6.o /tmp/cc-7gdqNX.o -lSystem "/usr/bin/dsymutil" conftest -o conftest.dSYM -- 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. From bugzilla-daemon at llvm.org Fri May 6 19:55:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 19:55:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 9863] New: gcc front-end compilation: getting error: exec: -Q: invalid option Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9863 Summary: gcc front-end compilation: getting error: exec: -Q: invalid option Product: new-bugs Version: 2.8 Platform: DEC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sogania at synopsys.com CC: llvmbugs at cs.uiuc.edu i am trying to build the gcc-frontend from source (version 2.8). Have already built the LLVM part. Using gcc-4.2.2. (configure and make command below). While building, get this error: /remote/vtgtools/llvm/llvm-gcc-4.2-2.8.source/obj/./gcc/xgcc -B/remote/vtgtools/llvm/llvm-gcc-4.2-2.8.source/obj/./gcc/ -B/remote/vtgtools/llvm/llvm-gcc-4.2-2.8.source/obj/../install/i686-pc-linux-gnu/bin/ -B/remote/vtgtools/llvm/llvm-gcc-4.2-2.8.source/obj/../install/i686-pc-linux-gnu/lib/ -isystem /remote/vtgtools/llvm/llvm-gcc-4.2-2.8.source/obj/../install/i686-pc-linux-gnu/include -isystem /remote/vtgtools/llvm/llvm-gcc-4.2-2.8.source/obj/../install/i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../libdecnumber -I/remote/vtgtools/llvm/llvm-2.8/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc -fno-omit-frame-pointer -c ../../gcc/crtstuff.c -DCRT_BEGIN -o crtbegin.o /remote/vtgtools/llvm/llvm-gcc-4.2-2.8.source/obj/./gcc/as: line 2: exec: -Q: invalid option exec: usage: exec [-cl] [-a name] file [redirection ...] Unable to figure out where "-Q" is coming from. Need help with this. Configure command: ../configure --prefix=`pwd`/../install --program-prefix=llvm- --enable-llvm=$LLVMOBJDIR --enable-languages=c,c++ --target=i686-pc-linux-gnu --with-tune=generic --with-arch=pentium4 setenv LLVMOBJDIR /remote/vtgtools/llvm/llvm-2.8 -- 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. From bugzilla-daemon at llvm.org Fri May 6 20:06:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 20:06:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 9863] gcc front-end compilation: getting error: exec: -Q: invalid option In-Reply-To: References: Message-ID: <20110507010637.3FEC02A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9863 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Chris Lattner 2011-05-06 20:06:36 CDT --- I'm sorry, but LLVM 2.8 is really old and llvm-gcc is no longer supported. Please try dragonegg with mainline LLVM, or Clang if you're interested in the C family of languages. -- 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. From bugzilla-daemon at llvm.org Fri May 6 21:36:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 May 2011 21:36:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 9864] New: crash after error using sizeof on class with incomplete array member Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9864 Summary: crash after error using sizeof on class with incomplete array member Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com :1:16: error: field has incomplete type 'int []' struct S { int xs[]; int n; S() : n(sizeof(S)) { } }; ^ clang: /home/tla/Projects/llvm/src/tools/clang/lib/Sema/SemaDeclCXX.cpp:2226: bool clang::Sema::SetCtorInitializers(clang::CXXConstructorDecl*, clang::CXXCtorInitializer**, unsigned int, bool): Assertion `ClassDecl->hasFlexibleArrayMember() && "Incomplete array type is not valid"' failed. 0 libLLVM-3.0svn.so 0x00007f25420d67ef 1 libLLVM-3.0svn.so 0x00007f25420d8a62 2 libpthread.so.0 0x00007f25410418f0 3 libc.so.6 0x00007f2540330a75 gsignal + 53 4 libc.so.6 0x00007f25403345c0 abort + 384 5 libc.so.6 0x00007f2540329941 __assert_fail + 241 6 clang 0x00000000008afd50 clang::Sema::SetCtorInitializers(clang::CXXConstructorDecl*, clang::CXXCtorInitializer**, unsigned int, bool) + 4416 7 clang 0x00000000008b0f92 clang::Sema::ActOnMemInitializers(clang::Decl*, clang::SourceLocation, clang::CXXCtorInitializer**, unsigned int, bool) + 2994 8 clang 0x00000000007d7402 clang::Parser::ParseConstructorInitializer(clang::Decl*) + 930 9 clang 0x00000000007c250c clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 908 10 clang 0x00000000007bff50 clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 144 11 clang 0x00000000007da57c clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1724 12 clang 0x00000000007db681 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 3729 13 clang 0x00000000007c95e3 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 3395 14 clang 0x00000000007bb5df clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 95 15 clang 0x00000000007bba8a clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 522 16 clang 0x00000000007bec7a clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1546 17 clang 0x00000000007bedc6 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 134 18 clang 0x000000000079be0d clang::ParseAST(clang::Sema&, bool) + 269 19 clang 0x000000000066b3d4 clang::CodeGenAction::ExecuteAction() + 68 20 clang 0x0000000000557533 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371 21 clang 0x000000000052eb34 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1268 22 clang 0x00000000005259eb cc1_main(char const**, char const**, char const*, void*) + 683 23 clang 0x000000000052d987 main + 6295 24 libc.so.6 0x00007f254031bc4d __libc_start_main + 253 25 clang 0x0000000000523eb9 Stack dump: 0. Program arguments: /home/tla/Projects/llvm/build/Release+Asserts/bin/clang -cc1 -fsyntax-only -x c++ -O3 -emit-llvm 1. :1:48: current parser token '{' 2. :1:1: parsing struct/union/class body 'S' Aborted -- 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. From bugzilla-daemon at llvm.org Sat May 7 08:11:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 May 2011 08:11:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 9865] New: Sema: Can't find templated cast operator Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9865 Summary: Sema: Can't find templated cast operator Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: waste.manager at gmx.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Attached is short test file which compiles fine with g++, but the trunk version r131043 of clang failed to compile it. linux-olg4:~$ src/build-llvm/bin/clang++ ./a.cpp -o a clang-3.0: /home/pbn/src/llvm/tools/clang/lib/Sema/SemaOverload.cpp:8371: clang::ExprResult clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int, const clang::UnresolvedSetImpl&, clang::Expr*, clang::Expr*): Assertion `Result.isInvalid() && "C++ binary operator overloading is missing candidates!"' failed. Stack dump: 0. Program arguments: /home/pbn/src/build-llvm/bin/clang-3.0 -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name a.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -momit-leaf-frame-pointer -resource-dir /home/pbn/src/build-llvm/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 211 -fcxx-exceptions -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-3RcZDb.o -x c++ ./a.cpp 1. ./a.cpp:67:39: current parser token ';' 2. ./a.cpp:66:1: parsing function body 'main' 3. ./a.cpp:66:1: in compound statement ('{}') clang-3: error: unable to execute command: Aborted clang-3: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- 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. From bugzilla-daemon at llvm.org Sat May 7 10:52:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 May 2011 10:52:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 9866] New: Generated code causes segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9866 Summary: Generated code causes segfault Product: clang Version: 2.9 Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: navneet.dalal at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=6554) --> (http://llvm.org/bugs/attachment.cgi?id=6554) Compile the code using Clang 2.9. Need to specify -I The following code causes segfault in the generated executable when compiled with Clang 2.8/2.9. Though it compiles & works fine with g++ & llvm-g++. You would need Eigen 3.0.0 library to compile. http://eigen.tuxfamily.org/index.php?title=Main_Page If you uncomment the #define in the code, the executable works fine. -- 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. From bugzilla-daemon at llvm.org Sat May 7 11:30:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 May 2011 11:30:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 9867] New: Optimization introduces intrinsics and they are not lowered. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9867 Summary: Optimization introduces intrinsics and they are not lowered. Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: ofv at wanadoo.es CC: llvmbugs at cs.uiuc.edu Starting with the attached file, execute this sequence of operations: llvm-as code.llvm -o code.bc opt -O2 code.bc -o code.opt.bc llvm-dis code.opt.bc -o code.opt.llvm code.opt.llvm contains a call to llvm.trap, which was not present on the original code. I have more instances where intrinsics are introduced by otpimization (not only llvm.trap). -- 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. From bugzilla-daemon at llvm.org Sat May 7 13:58:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 May 2011 13:58:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 9863] gcc front-end compilation: getting error: exec: -Q: invalid option In-Reply-To: References: Message-ID: <20110507185802.9F2122A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9863 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |asl at math.spbu.ru Resolution|WONTFIX |INVALID --- Comment #2 from Anton Korobeynikov 2011-05-07 13:58:02 CDT --- The problem here is that there are no cross-tools available in your path (e.g. you don't have i686-pc-linux-gnu-as, etc. around) -- 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. From bugzilla-daemon at llvm.org Sat May 7 14:12:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 May 2011 14:12:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 9868] New: Unimplemented destructor in Operator.h causes issues with GCC 4.6 and C++0x Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9868 Summary: Unimplemented destructor in Operator.h causes issues with GCC 4.6 and C++0x Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: a.pignotti at sssup.it CC: llvmbugs at cs.uiuc.edu -------------- /// ConcreteOperator - A helper template for defining operators for individual /// opcodes. template class ConcreteOperator : public SuperClass { ~ConcreteOperator(); // DO NOT IMPLEMENT public: static inline bool classof(const ConcreteOperator *) { return true; } static inline bool classof(const Instruction *I) { return I->getOpcode() == Opc; } static inline bool classof(const ConstantExpr *CE) { return CE->getOpcode() == Opc; } static inline bool classof(const Value *V) { return (isa(V) && classof(cast(V))) || (isa(V) && classof(cast(V))); } }; ---------------- When including the Operator.h file and compiling with g++ 4.6 and C++0x is enabled (--std=c++0x) the not implemented destructor causes a compiler error. Commenting out the line fixes the issue, but I'm not sure if this is the right fix. Anyway it's not clear to me what's the rationale behind such constructor. -- 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. From bugzilla-daemon at llvm.org Sat May 7 14:38:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 May 2011 14:38:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 9869] New: Operator.h incompatibility with GCC 4.6 in C++0x mode Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9869 Summary: Operator.h incompatibility with GCC 4.6 in C++0x mode Product: new-bugs Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: foutrelis at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6557) --> (http://llvm.org/bugs/attachment.cgi?id=6557) Simple test case After upgrading to LLVM 2.9 and GCC 4.6 (on Arch Linux), Lightspark can no longer be built. The problem seems to originate in Operator.h, when the compilation uses -std=c++0x. I have also tested LLVM 2.9 + GCC 4.5 as well as LLVM 2.8 + GCC 4.6. Both work fine for compiling Lightspark. It's just the LLVM 2.9 + GCC 4.6 combination that has this problem. The errors I'm seeing all look like this: /usr/include/llvm/Operator.h:188:7: error: deleted function ?virtual llvm::AddOperator::~AddOperator()? /usr/include/llvm/Operator.h:171:3: error: overriding non-deleted function ?llvm::ConcreteOperator::~ConcreteOperator() [with SuperClass = llvm::OverflowingBinaryOperator, unsigned int Opc = 8u]? /usr/include/llvm/Operator.h:188:7: error: ?virtual llvm::AddOperator::~AddOperator()? is implicitly deleted because the default definition would be ill-formed: /usr/include/llvm/Operator.h:171:3: error: ?llvm::ConcreteOperator::~ConcreteOperator() [with SuperClass = llvm::OverflowingBinaryOperator, unsigned int Opc = 8u]? is private /usr/include/llvm/Operator.h:188:7: error: within this context The errors reference the deconstructors of other operators as well. The complete list is: llvm::AddOperator::~AddOperator() llvm::SubOperator::~SubOperator() llvm::MulOperator::~MulOperator() llvm::ShlOperator::~ShlOperator() llvm::SDivOperator::~SDivOperator() llvm::UDivOperator::~UDivOperator() llvm::AShrOperator::~AShrOperator() llvm::LShrOperator::~LShrOperator() llvm::GEPOperator::~GEPOperator() You should be able to reproduce this issue with the attached test.cpp by running 'g++ test.cpp -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -std=c++0x'. Let me know if I need to provide further information. -- 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. From bugzilla-daemon at llvm.org Sat May 7 14:47:54 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 May 2011 14:47:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 9868] Unimplemented destructor in Operator.h causes issues with GCC 4.6 and C++0x In-Reply-To: References: Message-ID: <20110507194754.989392A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9868 Alessandro Pignotti changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Alessandro Pignotti 2011-05-07 14:47:54 CDT --- *** This bug has been marked as a duplicate of bug 9869 *** -- 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. From bugzilla-daemon at llvm.org Sat May 7 18:19:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 May 2011 18:19:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 9870] New: Clang and C++ 4.5.2 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9870 Summary: Clang and C++ 4.5.2 Product: new-bugs Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: mnouh3 at gmail.com CC: llvmbugs at cs.uiuc.edu For some reason clang isn't finding the header files with 4.5.2. It only goes to version 4.4.X. Will work: $ clang++ -I/usr/include/c++/4.5.2 -I/usr/include/c++/4.5.2/x86_64-linux-gnu test.cpp mnouh at mnouh:~/Desktop$ clang++ -v -fno-use-cxa-atexit main.cpp clang version 2.8 (branches/release_28) Target: x86_64-pc-linux-gnu Thread model: posix "/usr/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name main.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.0.20110216 -v -resource-dir /usr/lib/clang/2.8 -ferror-limit 19 -fmessage-length 80 -fexceptions -fno-use-cxa-atexit -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-541mvU.s -x c++ main.cpp clang -cc1 version 2.8 based upon llvm 2.8rc hosted on x86_64-pc-linux-gnu ignoring nonexistent directory "/usr/include/c++/4.4" ignoring nonexistent directory "/usr/include/c++/4.4/x86_64-linux-gnu/" ignoring nonexistent directory "/usr/include/c++/4.4/backward" ignoring nonexistent directory "/usr/include/c++/4.4" ignoring nonexistent directory "/usr/include/c++/4.4/i486-linux-gnu/64" ignoring nonexistent directory "/usr/include/c++/4.4/backward" ignoring nonexistent directory "/usr/include/c++/4.3" ignoring nonexistent directory "/usr/include/c++/4.3/x86_64-linux-gnu/" ignoring nonexistent directory "/usr/include/c++/4.3/backward" ignoring nonexistent directory "/usr/include/c++/4.3" ignoring nonexistent directory "/usr/include/c++/4.3/i486-linux-gnu/64" ignoring nonexistent directory "/usr/include/c++/4.3/backward" ignoring nonexistent directory "/usr/include/c++/4.3" ignoring nonexistent directory "/usr/include/c++/4.3/arm-linux-gnueabi/" ignoring nonexistent directory "/usr/include/c++/4.3/backward" ignoring nonexistent directory "/usr/include/c++/4.2" ignoring nonexistent directory "/usr/include/c++/4.2/x86_64-linux-gnu/" ignoring nonexistent directory "/usr/include/c++/4.2/backward" ignoring nonexistent directory "/usr/include/c++/4.2" ignoring nonexistent directory "/usr/include/c++/4.2/i486-linux-gnu/64" ignoring nonexistent directory "/usr/include/c++/4.2/backward" ignoring nonexistent directory "/usr/include/c++/4.1" ignoring nonexistent directory "/usr/include/c++/4.1/x86_64-linux-gnu/" ignoring nonexistent directory "/usr/include/c++/4.1/backward" ignoring nonexistent directory "/usr/include/c++/4.1" ignoring nonexistent directory "/usr/include/c++/4.1/i486-linux-gnu/64" ignoring nonexistent directory "/usr/include/c++/4.1/backward" ignoring nonexistent directory "/usr/include/c++/4.4.4" ignoring nonexistent directory "/usr/include/c++/4.4.4/x86_64-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.4.4/backward" ignoring nonexistent directory "/usr/include/c++/4.4.4" ignoring nonexistent directory "/usr/include/c++/4.4.4/i686-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.4.4/backward" ignoring nonexistent directory "/usr/include/c++/4.4.3" ignoring nonexistent directory "/usr/include/c++/4.4.3/x86_64-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.4.3/backward" ignoring nonexistent directory "/usr/include/c++/4.4.3" ignoring nonexistent directory "/usr/include/c++/4.4.3/i686-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.4.3/backward" ignoring nonexistent directory "/usr/include/c++/4.4.2" ignoring nonexistent directory "/usr/include/c++/4.4.2/x86_64-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.4.2/backward" ignoring nonexistent directory "/usr/include/c++/4.4.2" ignoring nonexistent directory "/usr/include/c++/4.4.2/i686-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.4.2/backward" ignoring nonexistent directory "/usr/include/c++/4.4.1" ignoring nonexistent directory "/usr/include/c++/4.4.1/x86_64-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.4.1/backward" ignoring nonexistent directory "/usr/include/c++/4.4.1" ignoring nonexistent directory "/usr/include/c++/4.4.1/i586-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.4.1/backward" ignoring nonexistent directory "/usr/include/c++/4.3.2" ignoring nonexistent directory "/usr/include/c++/4.3.2/x86_64-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.3.2/backward" ignoring nonexistent directory "/usr/include/c++/4.3.2" ignoring nonexistent directory "/usr/include/c++/4.3.2/i386-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.3.2/backward" ignoring nonexistent directory "/usr/include/c++/4.3.0" ignoring nonexistent directory "/usr/include/c++/4.3.0/x86_64-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.3.0/backward" ignoring nonexistent directory "/usr/include/c++/4.3.0" ignoring nonexistent directory "/usr/include/c++/4.3.0/i386-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.3.0/backward" ignoring nonexistent directory "/usr/include/c++/4.1.2" ignoring nonexistent directory "/usr/include/c++/4.1.2/x86_64-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.1.2/backward" ignoring nonexistent directory "/usr/include/c++/4.1.2" ignoring nonexistent directory "/usr/include/c++/4.1.2/i386-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.1.2/backward" ignoring nonexistent directory "/usr/include/c++/4.4.3" ignoring nonexistent directory "/usr/include/c++/4.4.3/x86_64-pc-linux-gnu/" ignoring nonexistent directory "/usr/include/c++/4.4.3/backward" ignoring nonexistent directory "/usr/include/c++/4.4.3" ignoring nonexistent directory "/usr/include/c++/4.4.3/i686-pc-linux-gnu/" ignoring nonexistent directory "/usr/include/c++/4.4.3/backward" ignoring nonexistent directory "/usr/include/c++/4.3" ignoring nonexistent directory "/usr/include/c++/4.3/i586-suse-linux/" ignoring nonexistent directory "/usr/include/c++/4.3/backward" ignoring nonexistent directory "/usr/include/c++/4.3" ignoring nonexistent directory "/usr/include/c++/4.3/x86_64-suse-linux/" ignoring nonexistent directory "/usr/include/c++/4.3/backward" ignoring nonexistent directory "/usr/include/c++/4.4" ignoring nonexistent directory "/usr/include/c++/4.4/i586-suse-linux/" ignoring nonexistent directory "/usr/include/c++/4.4/backward" ignoring nonexistent directory "/usr/include/c++/4.4" ignoring nonexistent directory "/usr/include/c++/4.4/x86_64-suse-linux/" ignoring nonexistent directory "/usr/include/c++/4.4/backward" ignoring nonexistent directory "/usr/include/c++/4.3.1" ignoring nonexistent directory "/usr/include/c++/4.3.1/i686-pc-linux-gnu/" ignoring nonexistent directory "/usr/include/c++/4.3.1/backward" ignoring nonexistent directory "/usr/include/c++/4.3.1" ignoring nonexistent directory "/usr/include/c++/4.3.1/x86_64-unknown-linux-gnu/" ignoring nonexistent directory "/usr/include/c++/4.3.1/backward" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/backward" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/g++-v4" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/g++-v4/i686-pc-linux-gnu/" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/g++-v4/backward" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/i686-pc-linux-gnu/" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/backward" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/i686-pc-linux-gnu/" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/backward" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/x86_64-pc-linux-gnu/" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/backward" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4/x86_64-pc-linux-gnu/" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4/backward" ignoring nonexistent directory "/usr/lib/llvm-gcc-4.2-9999/include/c++/4.2.1" ignoring nonexistent directory "/usr/lib/llvm-gcc-4.2-9999/include/c++/4.2.1/x86_64-pc-linux-gnu/" ignoring nonexistent directory "/usr/lib/llvm-gcc-4.2-9999/include/c++/4.2.1/backward" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/clang/2.8/include /usr/include End of search list. main.cpp:1:10: fatal error: 'iostream' file not found #include ^ 1 error generated. -- 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. From bugzilla-daemon at llvm.org Sat May 7 21:00:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 May 2011 21:00:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 9869] Operator.h incompatibility with GCC 4.6 in C++0x mode In-Reply-To: References: Message-ID: <20110508020002.1C92D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9869 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Eli Friedman 2011-05-07 21:00:01 CDT --- r131062. -- 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. From bugzilla-daemon at llvm.org Sun May 8 00:19:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 May 2011 00:19:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 9866] Generated code causes segfault In-Reply-To: References: Message-ID: <20110508051927.7F9ED2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9866 ND changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- 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. From bugzilla-daemon at llvm.org Sun May 8 07:28:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 May 2011 07:28:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 9867] Optimization introduces intrinsics and they are not lowered. In-Reply-To: References: Message-ID: <20110508122831.899BA2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9867 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #13 from ?scar Fuentes 2011-05-08 07:28:30 CDT --- It works now. Apparently the problem was caused by my compiler running an incorrect series of passes when optimizations are enabled. This is the code I was using, taken from a past incantation of lli (or opt, I'm not sure): if( optimizationLevel > 0 ) { PassManager Passes; Passes.add( new TargetData(M) ); FunctionPassManager *FPasses = new FunctionPassManager(M); FPasses->add( new TargetData(M) ); createStandardFunctionPasses(FPasses, optimizationLevel); llvm::Pass *InliningPass = createFunctionInliningPass(); createStandardModulePasses(&Passes, optimizationLevel, /*OptimizeSize=*/ false, /*UnitAtATime=*/ true, /*UnrollLoops=*/ true, /*SimplifyLibCalls=*/ true, /*HaveExceptions=*/ false, InliningPass); FPasses->doInitialization(); for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) FPasses->run(*I); FPasses->doFinalization(); Passes.run(*M); } After replacing that code with a call to builder::setOptLevel the optimized LLVM bitcode no longer contains calls to llvm.trap. That was consistent with what I was told on irc: on the JIT, after running the passes the right way, no intrinsics are left on the code. What is still unresolved is whether the JIT handles occurrences of llvm.trap or barfs at it. Eli, if you want to investigate this further, please reopen the bug and provide instructions about what to do for feeding you with more info. -- 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. From bugzilla-daemon at llvm.org Sun May 8 08:08:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 May 2011 08:08:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 9871] New: clang crashes in register allocator on PPC Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9871 Summary: clang crashes in register allocator on PPC Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: release blocker Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: js-llvm-bugzilla at webkeks.org CC: llvmbugs at cs.uiuc.edu Assertion failed: (Stage < RS_Spill && "Cannot allocate after spilling"), function selectOrSplit, file RegAllocGreedy.cpp, line 1379. 0 clang 0x01918c8c llvm::SmallVectorTemplateBase::grow(unsigned long) + 908 1 clang 0x01919e30 llvm::SmallVectorTemplateBase::grow(unsigned long) + 5424 2 libSystem.B.dylib 0x973e79fc _sigtramp + 68 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple powerpc-apple-darwin9.8.0 -S -disable-free -main-file-name OFHTTPRequest.m -pic-level 2 -mdisable-fp-elim -target-linker-version 85.2.1 -coverage-file /var/folders/r6/r6-A-X9iFjCgOaLQUX8VME+++TI/-Tmp-/cc-duk43Z.s -resource-dir /usr/local/bin/../lib/clang/3.0 -D PIC -I . -I .. -I exceptions -O2 -Wall -Wwrite-strings -Wcast-align -Wpointer-arith -Werror -std=gnu99 -fconst-strings -fno-dwarf2-cfi-asm -fconstant-string-class OFConstantString -ferror-limit 19 -fmessage-length 146 -fblocks -fobjc-exceptions -fexceptions -fno-constant-cfstrings -fno-common -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/r6/r6-A-X9iFjCgOaLQUX8VME+++TI/-Tmp-/cc-duk43Z.s -x objective-c OFHTTPRequest.m 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'OFHTTPRequest.m'. 4. Running pass 'Greedy Register Allocator' on function '@"\01-[OFHTTPRequest performWithRedirects:]"' clang: error: unable to execute command: Trace/BPT trap clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) This happens in countless files. I tried compiling the failing files with gcc and the rest with clang until I had to give up because 30% of all files failed with this assertion. -- 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. From bugzilla-daemon at llvm.org Sun May 8 11:17:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 May 2011 11:17:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 9872] New: Assertion failed: (Reg && "Invalid SubReg for physical register") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9872 Summary: Assertion failed: (Reg && "Invalid SubReg for physical register") Product: new-bugs Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6560) --> (http://llvm.org/bugs/attachment.cgi?id=6560) bugpoint-reduced-blocks.bc Recent regressin building the aic7xxx/ahc FreeBSD driver. llvm/clang trunk r131065. % llc bugpoint-reduced-blocks.bc Assertion failed: (Reg && "Invalid SubReg for physical register"), function substPhysReg, file /data/buildslave/freebsd-clang-i386/src-llvm/lib/CodeGen/MachineInstr.cpp, line 128. Stack dump: 0. Program arguments: /data/buildslave/freebsd-clang-i386/obj/obj-llvm.2/Release+Asserts/bin/llc bugpoint-reduced-blocks.bc 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-blocks.bc'. 2. Running pass 'Greedy Register Allocator' on function '@ahc_handle_seqint' Abort (core dumped) -- 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. From bugzilla-daemon at llvm.org Sun May 8 12:28:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 May 2011 12:28:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 9873] New: clang -MMD is different than GCC regarding pragma GCC system_header Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9873 Summary: clang -MMD is different than GCC regarding pragma GCC system_header Product: clang Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: adrianosf at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com With GCC, "#pragma GCC system_header" does not interfere with dependencies emitted by -MMD. clang suppress header files included from files using this pragma. I think clang should emulate this *GCC* pragma as GCC does. -- 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. From bugzilla-daemon at llvm.org Sun May 8 13:04:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 May 2011 13:04:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 9873] clang -MMD is different than GCC regarding pragma GCC system_header In-Reply-To: References: Message-ID: <20110508180444.010C52A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9873 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #2 from Eli Friedman 2011-05-08 13:04:43 CDT --- Marking invalid per reporter's request. -- 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. From bugzilla-daemon at llvm.org Sun May 8 14:21:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 May 2011 14:21:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 9872] Assertion failed: (Reg && "Invalid SubReg for physical register") In-Reply-To: References: Message-ID: <20110508192159.186D62A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9872 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |stoklund at 2pi.dk Resolution| |FIXED --- Comment #2 from Jakob Stoklund Olesen 2011-05-08 14:21:58 CDT --- Fixed in r131073, thanks! -- 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. From bugzilla-daemon at llvm.org Sun May 8 22:39:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 May 2011 22:39:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 9874] New: clang static analyzer erroneously implicates a ternary conditional not taken Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9874 Summary: clang static analyzer erroneously implicates a ternary conditional not taken Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu The particular implicated branch of the ternary expression is not reached, so the warning doesn't make sense. ../../../wine.git/dlls/wininet/http.c:1421:21: error: implicit conversion from 'int' to 'signed char' changes value from 256 to 0 [-Werror,-Wconstant-conversion] CH(250),CH(251),CH(252),CH(253),CH(254),CH(255), ^~~~~~~ ../../../wine.git/dlls/wininet/http.c:1392:45: note: instantiated from: ((x) >= '0' && (x) <= '9') ? (x) - '0' + 52 : \ ~ ^~~~~~~~~~~~~~ ../../../wine.git/dlls/wininet/http.c:1421:29: error: implicit conversion from 'int' to 'signed char' changes value from 257 to 1 [-Werror,-Wconstant-conversion] CH(250),CH(251),CH(252),CH(253),CH(254),CH(255), ^~~~~~~ ../../../wine.git/dlls/wininet/http.c:1392:45: note: instantiated from: ((x) >= '0' && (x) <= '9') ? (x) - '0' + 52 : \ ~ ^~~~~~~~~~~~~~ ../../../wine.git/dlls/wininet/http.c:1421:37: error: implicit conversion from 'int' to 'signed char' changes value from 258 to 2 [-Werror,-Wconstant-conversion] CH(250),CH(251),CH(252),CH(253),CH(254),CH(255), ^~~~~~~ ../../../wine.git/dlls/wininet/http.c:1392:45: note: instantiated from: ((x) >= '0' && (x) <= '9') ? (x) - '0' + 52 : \ ~ ^~~~~~~~~~~~~~ ../../../wine.git/dlls/wininet/http.c:1421:45: error: implicit conversion from 'int' to 'signed char' changes value from 259 to 3 [-Werror,-Wconstant-conversion] CH(250),CH(251),CH(252),CH(253),CH(254),CH(255), ^~~~~~~ ../../../wine.git/dlls/wininet/http.c:1392:45: note: instantiated from: ((x) >= '0' && (x) <= '9') ? (x) - '0' + 52 : \ ~ ^~~~~~~~~~~~~~ 4 errors generated. make: *** [http.o] Error 1 make: Leaving directory `/home/austin/wine32-clang/dlls/wininet' -- 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. From bugzilla-daemon at llvm.org Mon May 9 06:20:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 06:20:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 9727] -O2 -ftree-vectorize -fplugin-arg-dragonegg-enable-gcc-optzns fails to compile utils.c In-Reply-To: References: Message-ID: <20110509112058.6E2632A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9727 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Duncan Sands 2011-05-09 06:20:57 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110509/120554.html -- 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. From bugzilla-daemon at llvm.org Mon May 9 09:07:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 09:07:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 9875] New: getVisualStudioDir() brokes system environment Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9875 Summary: getVisualStudioDir() brokes system environment Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rmorylev at gmail.com CC: llvmbugs at cs.uiuc.edu getVisualStudioDir() in Frontend/InitHeaderSearch.cpp modifies the string returned by getenv(). So, before getVisualStudioDir() call I have: getenv("VS90COMNTOOLS") = "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\" and after call I always have: getenv("VS90COMNTOOLS") = "C:\Program Files\Microsoft Visual Studio 9.0" Compiler: Visual C++ 2008 -- 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. From bugzilla-daemon at llvm.org Mon May 9 09:29:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 09:29:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 9876] New: class in nested namespace with same name suddenly ambigous when compiling with Objective-C++ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9876 Summary: class in nested namespace with same name suddenly ambigous when compiling with Objective-C++ Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jonathan.sauer at gmx.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code: namespace A { namespace Class { class Class { void doIt(); }; } } using namespace A::Class; void Class::doIt() { } int main(int, char**) { } compiles perfectly using clang in C++ mode. In Objective-C++ mode however, the following errors are generated: /opt/bin/clang -x objective-c++ clang.cpp clang.cpp:10:6: error: expected a class or namespace void Class::doIt() ^ clang.cpp:10:6: error: reference to 'Class' is ambiguous void Class::doIt() ^ note: candidate found by name lookup is 'Class' clang.cpp:3:9: note: candidate found by name lookup is 'A::Class::Class' class Class { void doIt(); }; ^ 2 errors generated. It seems as if in Objective-C++ mode, clang is including a "using namespace A" (to use the using declarations parent namespace), therefore making the "Class" symbol ambigous. My clang version: /opt/bin/clang --version clang version 3.0 (trunk 131082) Target: x86_64-apple-darwin10.7.0 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. From bugzilla-daemon at llvm.org Mon May 9 09:51:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 09:51:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 9877] New: cannot define member of explicitly specialized member class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9877 Summary: cannot define member of explicitly specialized member class Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: zilla at kayari.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com template struct X { struct Y; }; template<> struct X<0>::Y { static const int Z = 1; }; const int X<0>::Y::Z; This is well-formed, see [temp.expl.spec]/5 and the accompanying example (modified by core DR 531, see N3262) The definition is also rejected with "template<>" (which is correct): template<> const int X<0>::Y::Z; so there seems to be no way to provide a definition of X<0>::Y::Z -- 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. From bugzilla-daemon at llvm.org Mon May 9 10:11:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 10:11:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 9878] New: Constructor's/Destructor's priorities are ignored Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9878 Summary: Constructor's/Destructor's priorities are ignored Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tim.nieradzik at gmx.de CC: llvmbugs at cs.uiuc.edu GCC supports specifying priorities for constructors and destructors: "You may provide an optional integer priority to control the order in which constructor and destructor functions are run. A constructor with a smaller priority number runs before a constructor with a larger priority number; the opposite relationship holds for destructors. So, if you have a constructor that allocates a resource and a destructor that deallocates the same resource, both functions typically have the same priority. [...]" (Source: http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html) Clang, however, ignores the priorities. Therefore, the attached example prints: ctor2() ctor1() ctor0() main() dtor0() dtor1() dtor2() Whereas the correct output would have been: ctor0() ctor1() ctor2() main() dtor2() dtor1() dtor0() -- 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. From bugzilla-daemon at llvm.org Mon May 9 10:16:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 10:16:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 9878] Constructor's/Destructor's priorities are ignored In-Reply-To: References: Message-ID: <20110509151655.83EEF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9878 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |baldrick at free.fr Resolution| |DUPLICATE --- Comment #2 from Duncan Sands 2011-05-09 10:16:55 CDT --- *** This bug has been marked as a duplicate of bug 5329 *** -- 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. From bugzilla-daemon at llvm.org Mon May 9 11:44:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 11:44:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 9879] New: SelectionDAGBuilder does not preserve debug information attached to phi nodes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9879 Summary: SelectionDAGBuilder does not preserve debug information attached to phi nodes Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: release blocker Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: micah.villmow at amd.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6562) --> (http://llvm.org/bugs/attachment.cgi?id=6562) bitcode file that causes debug information to get dropped. The attached bitcode file looses debug information when it is run through any backend. The variables gid and tid do not show up in the dwarf information and are dropped in the function visitIntrinsicCall when visiting a Instrinsic::dbg_value node that is referencing a PHINode. -- 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. From bugzilla-daemon at llvm.org Mon May 9 12:32:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 12:32:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 9880] New: Regression: clang crashes with "HasMemberXXX" template when return types are outside the template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9880 Summary: Regression: clang crashes with "HasMemberXXX" template when return types are outside the template Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jonathan.sauer at gmx.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=6564) --> (http://llvm.org/bugs/attachment.cgi?id=6564) The code crashing clang The attached code is used to check if a class has a member "luaIndex" via SFINAE and the helper template "HasIndexMetamethod". When NO_CRASH_PLEASE is undefined, the structs "no_tag" and "yes" tag are outside "HasIndexMetamethod", and clang crashes with an assertion (see attached log). When NO_CRASH_PLEASE is defined, the two structs are inside "HasIndexMetamethod", and clang does not crash. The code used to work in clang trunk from two weeks ago (25th May around noon). Unfortunately, I do not remember the revision anymore. My clang version: /opt/bin/clang -std=c++0x --version clang version 3.0 (trunk 131082) Target: x86_64-apple-darwin10.7.0 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. From bugzilla-daemon at llvm.org Mon May 9 12:35:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 12:35:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 9862] clang can't link with -g on darwin if POSIXLY_CORRECT environmental is set In-Reply-To: References: Message-ID: <20110509173504.16ED02A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9862 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Daniel Dunbar 2011-05-09 12:35:03 CDT --- Fixed here: http://llvm.org/viewvc/llvm-project?view=rev&revision=131084 -- 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. From bugzilla-daemon at llvm.org Mon May 9 12:43:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 12:43:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 9881] New: 'make check' fails by default when configured with --enable-shared Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9881 Summary: 'make check' fails by default when configured with --enable-shared Product: new-bugs Version: trunk Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: nobled at dreamwidth.org CC: llvmbugs at cs.uiuc.edu All the tests under 'make check' fail with a message like this: .../Release+Asserts/bin/opt: error while loading shared libraries: libLLVM-3.0svn.so: cannot open shared object file: No such file or directory It only works as intended if you copy libLLVM-3.0svn.so into the system lib path, or set LD_LIBRARY_PATH manually: LD_LIBRARY_PATH=/Release+Asserts/lib make check Should the build scripts do that kind of thing themselves? It should also prevent accidentally picking up an outdated, incompatible shared lib that might have been `make install`d from a previous build, which would give 'missing symbol' errors. -- 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. From bugzilla-daemon at llvm.org Mon May 9 13:39:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 13:39:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 6731] alpha: ICE at llvm-gcc4.2-2.6.source/gcc/libgcov.c:817 In-Reply-To: References: Message-ID: <20110509183911.29E672A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6731 Matt Turner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #5 from Matt Turner 2011-05-09 13:39:10 CDT --- Can no longer reproduce. Closing. -- 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. From bugzilla-daemon at llvm.org Mon May 9 15:46:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 15:46:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 9882] New: noexcept sometimes returns unexpected value Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9882 Summary: noexcept sometimes returns unexpected value Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hhinnant at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com #include template struct integral_constant { static const T value1 = v; }; template T&& declval() noexcept; template struct is_nothrow_assignable : public integral_constant() = declval())> { static const bool value2 = noexcept(declval() = declval()); }; int main() { std::cout << is_nothrow_assignable::value1 << '\n'; std::cout << is_nothrow_assignable::value2 << '\n'; } I'm getting: 0 1 I'm expecting: 1 1 It seems like the noexcept wrongly evaluates to false when used in specifying the base class. With this fixed, I think I can implement the nothrow type traits without compiler support as long as the associated non-nothrow type traits are working. -- 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. From bugzilla-daemon at llvm.org Mon May 9 15:46:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 15:46:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 9880] Regression: clang crashes with "HasMemberXXX" template when return types are outside the template In-Reply-To: References: Message-ID: <20110509204650.9AD272A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9880 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2011-05-09 15:46:50 CDT --- Fixed in Clang r131099. -- 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. From bugzilla-daemon at llvm.org Mon May 9 16:47:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 16:47:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8151] Ambiguous name lookup compiling error In-Reply-To: References: Message-ID: <20110509214726.58C262A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8151 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-05-09 16:47:25 CDT --- Fixed in Clang r131102. -- 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. From bugzilla-daemon at llvm.org Mon May 9 17:32:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 17:32:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 8495] [IRGen] Assertion "Instruction does not dominate all uses!" In-Reply-To: References: Message-ID: <20110509223258.EAD942A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8495 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #5 from Douglas Gregor 2011-05-09 17:32:57 CDT --- I can't reproduce this with trunk. If it's still crashing for you with Clang trunk, please re-open! -- 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. From bugzilla-daemon at llvm.org Mon May 9 17:36:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 17:36:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8792] using namespace creates ambiguity when there isn't. In-Reply-To: References: Message-ID: <20110509223602.BF0022A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8792 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-05-09 17:36:02 CDT --- Fixed this in Clang r130810. -- 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. From bugzilla-daemon at llvm.org Mon May 9 17:37:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 17:37:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8793] Clang compiles member function call with missing () In-Reply-To: References: Message-ID: <20110509223711.3BE432A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8793 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Douglas Gregor 2011-05-09 17:37:10 CDT --- John fixed this in Clang r130239. -- 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. From bugzilla-daemon at llvm.org Mon May 9 17:37:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 17:37:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 9493] Dwarf relocation missing in ARM assembly output In-Reply-To: References: Message-ID: <20110509223718.2A5132A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9493 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Rafael ?vila de Esp?ndola 2011-05-09 17:37:17 CDT --- This was fixed. -- 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. From bugzilla-daemon at llvm.org Mon May 9 17:50:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 17:50:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 9649] empty.o breaks dwarfdump In-Reply-To: References: Message-ID: <20110509225047.959BE2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9649 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Rafael ?vila de Esp?ndola 2011-05-09 17:50:46 CDT --- This was fixed in 130846. -- 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. From bugzilla-daemon at llvm.org Mon May 9 18:06:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 18:06:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 8326] const union member in template class gives invalid error In-Reply-To: References: Message-ID: <20110509230605.1329F2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8326 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-05-09 18:06:04 CDT --- I think that, technically, this code is ill-formed, since it isn't of the form union { member-specification }; that declares an anonymous union. However, we should accept this code as an extension. Fixed in Clang r131109. -- 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. From bugzilla-daemon at llvm.org Mon May 9 18:14:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 18:14:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 9208] clang fails to reject invalid typeid expression and so crashes later on In-Reply-To: References: Message-ID: <20110509231453.C222B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9208 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Douglas Gregor 2011-05-09 18:14:52 CDT --- Clang trunk is correctly accepting all of these -- 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. From bugzilla-daemon at llvm.org Mon May 9 18:36:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 18:36:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 9536] [gcc compat] clang rejects static data member in unnamed class In-Reply-To: References: Message-ID: <20110509233658.586BA2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9536 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #4 from Douglas Gregor 2011-05-09 18:36:57 CDT --- And how would we mangle that name, if we had to? I don't think we should support this GCC extension. -- 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. From bugzilla-daemon at llvm.org Mon May 9 18:50:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 18:50:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 9683] Assert generated when clang GEP's into nested unnamed structs In-Reply-To: References: Message-ID: <20110509235017.429C22A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9683 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Douglas Gregor 2011-05-09 18:50:16 CDT --- I've not able to reproduce this. If it is still an issue with top-of-tree Clang, please re-open. -- 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. From bugzilla-daemon at llvm.org Mon May 9 23:45:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 May 2011 23:45:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 9883] New: Assertion `valid() && "Cannot access invalid iterator"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9883 Summary: Assertion `valid() && "Cannot access invalid iterator"' failed. Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu [regehr at gamow tmp022]$ clang -O2 small.c -c -w clang: /uusoc/exports/scratch/regehr/z/compiler-build/llvm-r131121/include/llvm/ADT/IntervalMap.h:1315: KeyT& llvm::IntervalMap::const_iterator::unsafeStop() const [with KeyT = llvm::SlotIndex, ValT = llvm::LiveInterval*, unsigned int N = 8u, Traits = llvm::IntervalMapInfo]: Assertion `valid() && "Cannot access invalid iterator"' failed. 0 clang 0x00000000018e525f 1 clang 0x00000000018e74d2 2 libpthread.so.0 0x00007ffff7bcf8f0 3 libc.so.6 0x00007ffff6ebea75 gsignal + 53 4 libc.so.6 0x00007ffff6ec25c0 abort + 384 5 libc.so.6 0x00007ffff6eb7941 __assert_fail + 241 6 clang 0x0000000001581ecf llvm::RegAllocBase::checkPhysRegInterference(llvm::LiveInterval&, unsigned int) + 463 7 clang 0x0000000001483c8b 8 clang 0x00000000014897d4 9 clang 0x000000000148aca1 10 clang 0x0000000001582ea2 llvm::RegAllocBase::allocatePhysRegs() + 594 11 clang 0x0000000001484586 12 clang 0x000000000183287b llvm::FPPassManager::runOnFunction(llvm::Function&) + 587 13 clang 0x000000000183297b llvm::FPPassManager::runOnModule(llvm::Module&) + 75 14 clang 0x0000000001832377 llvm::MPPassManager::runOnModule(llvm::Module&) + 503 15 clang 0x000000000183250b llvm::PassManagerImpl::run(llvm::Module&) + 187 16 clang 0x00000000007c843e 17 clang 0x00000000007c906d clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 189 18 clang 0x00000000007c5a5b clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 251 19 clang 0x00000000008f724d clang::ParseAST(clang::Sema&, bool) + 413 20 clang 0x00000000007c4da4 clang::CodeGenAction::ExecuteAction() + 68 21 clang 0x00000000006b0cc3 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371 22 clang 0x0000000000688214 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1268 23 clang 0x000000000067f0cb cc1_main(char const**, char const**, char const*, void*) + 683 24 clang 0x0000000000687067 main + 6295 25 libc.so.6 0x00007ffff6ea9c4d __libc_start_main + 253 26 clang 0x000000000067d599 Stack dump: 0. Program arguments: /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r131121-install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -coverage-file small.o -resource-dir /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r131121-install/bin/../lib/clang/3.0 -O2 -w -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o small.o -x c small.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'small.c'. 4. Running pass 'Greedy Register Allocator' on function '@func_1' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) [regehr at gamow tmp022]$ clang -v clang version 3.0 (trunk 131121) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at gamow tmp022]$ cat small.c static char safe_2 (char si1, char si2) { return 0 ? 0 : si1 + 1; } struct S0 { long f0; int f1; unsigned f2; unsigned f3; long f4; signed f5:1 ? 32 : 0; short f6; unsigned f9; }; int g_2[][0][1] = { }; int g_30; int **g_39; struct S0 g_103 = { }; int *volatile g_107; int *g_161; struct S0 g_183[][0][1] = { }; static struct S0 *g_244 = &g_183[0][1][0]; static int g_390; int *volatile g_397; static int func_12 (short, unsigned char, int **); int **func_22 (unsigned, unsigned, short); unsigned func_1 (void) { func_12 (0, g_2[0][0][0], func_22 (0, 0, 0)), 0; return 0; } int func_12 (short p_13, unsigned char p_14, int **p_15) { int ***l_430 = &g_39; int l_451; int l_443[0][1]; struct S0 l_477 = { 0, 0, 1, 1, 0, 305867, 1, 1, }; if (*g_161) { for (g_30 = 0; g_30 <= 1; g_30 = safe_2 (g_30, 1)) if (p_14) *g_244 = l_477; for (l_477.f6 = 0; l_477.f6; l_477.f6 = 1) { *g_397; if (p_14) break; } } else { lbl_494:*g_107; for (l_451 = 0; l_451 >= 0; l_451 -= 1) for (; l_477.f6; l_477.f6 = 1) { for (; g_390 < 1; g_390 += 1) **l_430 = &l_443[l_451][l_477.f6]; if (g_103.f0) goto lbl_494; *g_244 = l_477; } } return 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. From bugzilla-daemon at llvm.org Tue May 10 01:54:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 01:54:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 9884] New: Assert when derived class calls base class constructor with protected visibility Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9884 Summary: Assert when derived class calls base class constructor with protected visibility Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: scoopr at iki.fi CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This testcase triggers a unreachable assert: class Base { protected: Base(int val); }; class Derived : public Base { public: Derived(int val); }; Derived::Derived(int val) : Base( val ) { } Resulting this: obscure:tc1 scoopr$ clang++ test.cpp -c getSpecialMember on non-special member UNREACHABLE executed at /Users/scoopr/Code/ext/llvm/tools/clang/lib/Sema/SemaDecl.cpp:1521! 0 clang 0x0000000101129772 llvm::SmallVectorImpl::resize(unsigned int) + 2514 1 clang 0x0000000101129d59 llvm::SmallVectorImpl::resize(unsigned int) + 4025 2 libSystem.B.dylib 0x00007fff831f266a _sigtramp + 26 3 libSystem.B.dylib 000000000000000000 _sigtramp + 2095110576 4 clang 0x00000001011299c6 llvm::SmallVectorImpl::resize(unsigned int) + 3110 5 clang 0x0000000101119a62 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase(std::_Rb_tree_node >*) + 1538 6 clang 0x00000001002f20f8 clang::CodeCompletionBuilder::AddOptionalChunk(clang::CodeCompletionString*) + 25656 7 clang 0x00000001002802d6 llvm::StringMapEntry& llvm::StringMap::GetOrCreateValue(llvm::StringRef, clang::IdentifierInfo*) + 9318 8 clang 0x00000001003c5619 clang::ObjCPropertyRefExpr::ObjCPropertyRefExpr(clang::ObjCPropertyDecl*, clang::QualType, clang::ExprValueKind, clang::ExprObjectKind, clang::SourceLocation, clang::SourceLocation, clang::QualType) + 21049 9 clang 0x0000000100337ab7 clang::VecReturnAttr* clang::Decl::getAttr() const + 59975 10 clang 0x0000000100336a68 clang::VecReturnAttr* clang::Decl::getAttr() const + 55800 11 clang 0x000000010023b707 clang::Parser::MaybeParseCXX0XAttributes(clang::Declarator&) + 27671 12 clang 0x000000010023b2b0 clang::Parser::MaybeParseCXX0XAttributes(clang::Declarator&) + 26560 13 clang 0x00000001002652ec llvm::SmallVectorTemplateBase::grow(unsigned long) + 26908 14 clang 0x000000010022c023 clang::Parser::LateParsedMethodDeclaration::~LateParsedMethodDeclaration() + 22467 15 clang 0x0000000100264a6a llvm::SmallVectorTemplateBase::grow(unsigned long) + 24730 16 clang 0x0000000100264c24 llvm::SmallVectorTemplateBase::grow(unsigned long) + 25172 17 clang 0x00000001002641fc llvm::SmallVectorTemplateBase::grow(unsigned long) + 22572 18 clang 0x0000000100263868 llvm::SmallVectorTemplateBase::grow(unsigned long) + 20120 19 clang 0x0000000100224aed clang::MSP430InterruptAttr* clang::Decl::getAttr() const + 749 20 clang 0x00000001002032ca llvm::DenseMap, clang::CharUnits, llvm::DenseMapInfo >, llvm::DenseMapInfo >::grow(unsigned int) + 3434 21 clang 0x000000010002fb3a llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 12714 22 clang 0x0000000100009d75 std::_Rb_tree, std::less, std::allocator >::_M_insert_unique(std::string const&) + 3173 23 clang 0x0000000100002821 24 clang 0x00000001000061a2 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::SourceMgr::SrcBuffer const&) + 1410 25 clang 0x0000000100001334 Stack dump: 0. Program arguments: /opt/llvm/bin/clang -cc1 -triple x86_64-apple-macosx10.6.7 -emit-obj -mrelax-all -disable-free -main-file-name test.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2 -coverage-file test.o -resource-dir /opt/llvm/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o test.o -x c++ test.cpp 1. test.cpp:17:1: current parser token '{' clang: error: unable to execute command: Illegal instruction clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- 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. From bugzilla-daemon at llvm.org Tue May 10 02:50:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 02:50:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 9885] New: Regression: clang crashes when compiling current libc++ while parsing 's time_put Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9885 Summary: Regression: clang crashes when compiling current libc++ while parsing 's time_put Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jonathan.sauer at gmx.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Trying to build the current libc++ results in a clang crash. It crashes while parsing the header. The same happens with the following reduced test case: class string; class ios_base; struct _xlocale; struct tm; typedef struct _xlocale * locale_t; typedef unsigned long size_t; class __time_put { locale_t __loc_; protected: __time_put(const string& __nm); }; template class __attribute__ ((__visibility__("default"))) time_put : private __time_put { protected: // Commenting this constructor removes the crash: __attribute__ ((__visibility__("hidden"), __always_inline__)) explicit time_put(const string& __nm, size_t __refs) // Commenting the base class constructor call removes the crash: : __time_put(__nm) {} }; int main(int, char**) { } This results in: getSpecialMember on non-special member UNREACHABLE executed at /Users/rynnsauer/LLVM/llvm/tools/clang/lib/Sema/SemaDecl.cpp:1521! [...] Stack dump: 0. Program arguments: /opt/bin/clang -cc1 -triple x86_64-apple-macosx10.6.7 -emit-obj -mrelax-all -disable-free -main-file-name clang.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.17 -resource-dir /opt/bin/../lib/clang/3.0 -nostdinc++ -cxx-isystem /usr/include/c++/v1 -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 100 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/RI/RI4iqAygH0OWeTzP0+rLU++++TI/-Tmp-/cc-v4anXa.o -x c++ clang.cpp 1. clang.cpp:24:22: current parser token '{' 2. clang.cpp:16:1: parsing struct/union/class body 'time_put' My clang version: $ /opt/bin/clang --version clang version 3.0 (trunk 131121) Target: x86_64-apple-darwin10.7.0 Thread model: posix This did not happen with clang trunk 131082. Complete crash log to follow. -- 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. From bugzilla-daemon at llvm.org Tue May 10 06:08:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 06:08:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 8495] [IRGen] Assertion "Instruction does not dominate all uses!" In-Reply-To: References: Message-ID: <20110510110828.E29DF2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8495 Elias Pipping changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WORKSFORME |FIXED --- Comment #6 from Elias Pipping 2011-05-10 06:08:28 CDT --- I can no longer reproduce this either. -- 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. From bugzilla-daemon at llvm.org Tue May 10 06:27:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 06:27:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 9726] -O2 -ftree-vectorize -fplugin-arg-dragonegg-enable-gcc-optzns fails to compile output_vtk.c In-Reply-To: References: Message-ID: <20110510112740.537592A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9726 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Duncan Sands 2011-05-10 06:27:39 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110509/120591.html -- 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. From bugzilla-daemon at llvm.org Tue May 10 08:52:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 08:52:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 9724] -O2 -fplugin-arg-dragonegg-enable-gcc-optzns -ftree-vectorize fails to compile lr_states_plm.c In-Reply-To: References: Message-ID: <20110510135210.EFCBF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9724 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Duncan Sands 2011-05-10 08:52:10 CDT --- After this patch http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110509/120596.html the testcase fails in the same way as PR9714. *** This bug has been marked as a duplicate of bug 9714 *** -- 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. From bugzilla-daemon at llvm.org Tue May 10 09:02:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 09:02:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 9885] Regression: clang crashes when compiling constructor call to protected base constructor with argument In-Reply-To: References: Message-ID: <20110510140226.DC00B2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9885 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rafael.espindola at gmail.com Resolution| |DUPLICATE --- Comment #5 from Rafael ?vila de Esp?ndola 2011-05-10 09:02:26 CDT --- *** This bug has been marked as a duplicate of bug 9884 *** -- 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. From bugzilla-daemon at llvm.org Tue May 10 09:14:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 09:14:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 9884] Assert when derived class calls base class constructor with protected visibility In-Reply-To: References: Message-ID: <20110510141416.E09C62A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9884 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- 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. From bugzilla-daemon at llvm.org Tue May 10 09:54:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 09:54:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 9886] New: cmake build enables exceptions in more files than configure Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9886 Summary: cmake build enables exceptions in more files than configure Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: cmake AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, ofv at wanadoo.es For example: $ readelf -SW ../build/lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LLVMTargetMachine.cpp.o | grep gcc [77] .gcc_except_table PROGBITS 0000000000000000 002890 0004f0 00 A 0 0 4 $ readelf -SW lib/CodeGen/Debug+Asserts/LLVMTargetMachine.o | grep gcc $ -- 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. From bugzilla-daemon at llvm.org Tue May 10 10:53:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 10:53:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 9887] New: "unable to pass LLVM bit-code files to linker" when compiling with -O4 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9887 Summary: "unable to pass LLVM bit-code files to linker" when compiling with -O4 Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bartosz.szurgot at pwr.wroc.pl CC: llvmbugs at cs.uiuc.edu $ clang bug.c -O3 && echo OK OK $ clang bug.c -O4 && echo OK clang: error: 'x86_64-pc-linux-gnu': unable to pass LLVM bit-code files to linker -- 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. From bugzilla-daemon at llvm.org Tue May 10 12:21:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 12:21:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 9888] New: Crash when parsing a piece of template metaprogramming code. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9888 Summary: Crash when parsing a piece of template metaprogramming code. Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicola.gigante at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The attached source file reproduce a "Segmentation fault" error in the latest svn clang, revision 131131. I've only access to OS X machines but it doesn't seem to be related to hardware/OS issues. I can reproduce the bug with the following command: clang -cc1 -fsyntax-only test.cpp gdb says: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5f3ffff8 0x00000001006a91c6 in clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateArgument () The full backtrace is attached with the source file. -- 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. From bugzilla-daemon at llvm.org Tue May 10 12:38:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 12:38:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 9883] Assertion `valid() && "Cannot access invalid iterator"' failed. In-Reply-To: References: Message-ID: <20110510173804.BDEB62A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9883 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |stoklund at 2pi.dk Resolution| |FIXED --- Comment #1 from Jakob Stoklund Olesen 2011-05-10 12:38:04 CDT --- Fixed in r131133 -- 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. From bugzilla-daemon at llvm.org Tue May 10 12:54:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 12:54:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 9889] New: Assertion failed: (*(block->succ_begin()+1) == dstBlock), function getValueVector, file UninitializedValues.cpp, line 231. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9889 Summary: Assertion failed: (*(block->succ_begin()+1) == dstBlock), function getValueVector, file UninitializedValues.cpp, line 231. Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu this occurs only with -Wall pes delta$ clang -Wall parser.c parser.c:16:7: warning: control reaches end of non-void function [-Wreturn-type] } ^ parser.c:20:17: warning: switch condition has boolean value ...switch ((((*x).buffer[i0]).type == ((enum cpp_ttype) (((enum cpp_ttype) (N_TTYPES + 1)) + 1))) || (((*x).buffer[i0]).type == ((enum cpp_ttype) (((enum cpp_ttype) (((enum cpp_ttype) (N_TTYPES + 1)) + 1)) + 1)))... ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Assertion failed: (*(block->succ_begin()+1) == dstBlock), function getValueVector, file UninitializedValues.cpp, line 231. Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-freebsd8.1 -emit-obj -mrelax-all -disable-free -main-file-name parser.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.15 -momit-leaf-frame-pointer -resource-dir /usr/local/bin/../lib/clang/3.0 -Wall -ferror-limit 19 -fmessage-length 152 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-tdgPgg.o -x c parser.c 1. parser at end of file 2. parser.c:17:46: parsing function body 'gt_ggc_mx_cp_lexer' clang: error: unable to execute command: Abort trap: 6 (core dumped) clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- 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. From bugzilla-daemon at llvm.org Tue May 10 12:58:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 12:58:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 9890] New: Should accept -ftemplate-depth=N with a warning Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9890 Summary: Should accept -ftemplate-depth=N with a warning Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dgregor at apple.com CC: llvmbugs at cs.uiuc.edu For some silly reason, GCC used -ftemplate-depth-N rather than the more obvious -ftemplate-depth=N and we mimic that behavior. At the very least, we should support -ftemplate-depth=N as an alias (and perhaps provide a warning at the driver level). To see why: $ cat test.cpp template struct _if { static const int result = f; }; template struct _if { static const int result = t; }; template struct fact { static const int result = _if::result>::result; }; int main() { int a = fact<4>::result; } $ clang++ -ftemplate-depth=100 test.cpp clang: error: unable to execute command: Segmentation fault: 11 clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- 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. From bugzilla-daemon at llvm.org Tue May 10 13:08:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 13:08:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 9887] "unable to pass LLVM bit-code files to linker" when compiling with -O4 In-Reply-To: References: Message-ID: <20110510180837.7CFCA2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9887 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |nlewycky at google.com Resolution| |FIXED --- Comment #1 from Nick Lewycky 2011-05-10 13:08:37 CDT --- Fixed in head at r118382. -- 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. From bugzilla-daemon at llvm.org Tue May 10 13:31:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 13:31:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 5907] Takes typedef to non-member class template specialization as a member specialization. In-Reply-To: References: Message-ID: <20110510183104.F0C9C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5907 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2011-05-10 13:31:04 CDT --- Fixed in Clang r131138. -- 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. From bugzilla-daemon at llvm.org Tue May 10 13:31:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 13:31:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8277] Clang doesn't allow specifying function specialization with a typedef In-Reply-To: References: Message-ID: <20110510183144.C8AEC2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8277 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2011-05-10 13:31:44 CDT --- Fixed in Clang r131138. -- 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. From bugzilla-daemon at llvm.org Tue May 10 13:32:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 13:32:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8708] Clang rejects a number of explicit specializations In-Reply-To: References: Message-ID: <20110510183202.F01942A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8708 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-05-10 13:32:02 CDT --- Fixed in Clang r131138. -- 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. From bugzilla-daemon at llvm.org Tue May 10 13:32:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 13:32:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 9482] Use of typedef for class template specialization in explicit member specialization across namespaces fails In-Reply-To: References: Message-ID: <20110510183227.93F2A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9482 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2011-05-10 13:32:27 CDT --- Fixed in Clang r131138. -- 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. From bugzilla-daemon at llvm.org Tue May 10 13:32:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 13:32:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 9668] parse error when using a typedef for a static member variable of a template In-Reply-To: References: Message-ID: <20110510183241.DF2342A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9668 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-05-10 13:32:41 CDT --- Fixed in Clang r131138. -- 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. From bugzilla-daemon at llvm.org Tue May 10 13:32:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 13:32:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 9877] cannot define member of explicitly specialized member class In-Reply-To: References: Message-ID: <20110510183255.9FA592A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9877 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-05-10 13:32:55 CDT --- Fixed in Clang r131138. -- 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. From bugzilla-daemon at llvm.org Tue May 10 15:07:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 15:07:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 9891] New: static const struct optimized-away incorrectly by llvm-gcc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9891 Summary: static const struct optimized-away incorrectly by llvm-gcc Product: new-bugs Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: stash at cpan.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6573) --> (http://llvm.org/bugs/attachment.cgi?id=6573) Program that fails to run correctly after compiling with llvm-gcc An anonymous struct defined as "static const" seems to be optimized-away when llvm-gcc is given the '-O' flag. I'd expect the attached program to print something, but it does not. The following things seem to restore correct behaviour: * change "static const" to just "const" (i.e. don't use a static initializer) * use gcc instead of llvm-gcc * compile *without* the -O flag (or use -O0) I saw that clang doesn't currently support static initialization of flexible members, but the struct in this program isn't a member of anything. I'm not sure that this is an llvm bug since I'm using Apple's llvm-gcc included in Xcode 4.0.2. --version: i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.9) -- 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. From bugzilla-daemon at llvm.org Tue May 10 15:14:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 15:14:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 9892] New: clang can miscompile GNU gettext's xgettext.c Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9892 Summary: clang can miscompile GNU gettext's xgettext.c Product: new-bugs Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dimitry at andric.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6574) --> (http://llvm.org/bugs/attachment.cgi?id=6574) Excerpt from xgettext.c, demonstrating miscompilation After building GNU gettext 0.18.1.1 on FreeBSD, using clang r131133, I noted that any invocation of the 'xgettext' tool, whether with or without arguments, resulted in an error: xgettext: A --flag argument doesn't have the ::[pass-] syntax: gettext:1:pass-c-format Compiling the same program without optimization, or using gcc, gives the expected behaviour. I reduced the code that is miscompiled to the attached sample. If you compile this using clang -O0, and run it, it prints "good", followed by the two pointer values that have just been checked for equality. If you compile it using clang -O1, or clang -O2, it prints "bad", followed by the two pointer values again. Strangely, at -O3, the failure goes away... -- 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. From bugzilla-daemon at llvm.org Tue May 10 17:12:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 17:12:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 9889] Assertion failed: (*(block->succ_begin()+1) == dstBlock), function getValueVector, file UninitializedValues.cpp, line 231. In-Reply-To: References: Message-ID: <20110510221204.34E612A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9889 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Ted Kremenek 2011-05-10 17:12:03 CDT --- fixed: http://llvm.org/viewvc/llvm-project?view=rev&revision=131158 -- 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. From bugzilla-daemon at llvm.org Tue May 10 18:10:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 18:10:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 9893] New: "Invalid GetElementPtrInst indices for type!" on valid structure Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9893 Summary: "Invalid GetElementPtrInst indices for type!" on valid structure Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alonzakai at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code fails to compile with clang: ====== #include "stdio.h" struct usvec { int x; }; struct shaftbb { union { int v[2]; struct { usvec min, max; }; }; shaftbb() {} }; int main() { shaftbb s; return 1; } ====== The error is ====== clang: /home/alon/Dev/llvm-svn/include/llvm/Instructions.h:278: const llvm::Type* llvm::checkType(const llvm::Type*): Assertion `Ty && "Invalid GetElementPtrInst indices for type!"' failed. 0 clang 0x095746a8 Stack dump: 0. Program arguments: /home/alon/Dev/llvm-svn/build/Release+Asserts/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name llvm1.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir /home/alon/Dev/llvm-svn/build/Release+Asserts/bin/../lib/clang/3.0 -ferror-limit 19 -fmessage-length 141 -fcxx-exceptions -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ImS38f.o -x c++ llvm1.cpp 1. parser at end of file 2. Per-file LLVM IR generation 3. llvm1.cpp:16:3: Generating code for declaration 'shaftbb::shaftbb' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) ====== The file compiles ok with gcc. This is a reduced testcase from pvs.cpp from Sauerbraten (open source FPS) which I am trying to compile with clang. -- 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. From bugzilla-daemon at llvm.org Tue May 10 18:50:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 18:50:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 9894] New: "error: use of undeclared identifier" on valid template code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9894 Summary: "error: use of undeclared identifier" on valid template code Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alonzakai at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com template struct modelcommands { template void modelcommand(F *fun) {} static void setdir(char *name) {} modelcommands() { modelcommand(setdir); } }; template struct vertcommands : modelcommands { static void loadpart(char *model) {} vertcommands() { modelcommand(loadpart); } }; int main() { return 1; } === The above code compiles ok in gcc but fails in clang, with llvm1.cpp:11:20: error: use of undeclared identifier 'modelcommand' vertcommands() { modelcommand(loadpart); } ^ 1 error generated. (The code is a reduced case from Sauerbraten, an open source FPS I am trying to compile with clang.) -- 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. From bugzilla-daemon at llvm.org Tue May 10 18:51:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 18:51:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 9894] "error: use of undeclared identifier" on valid template code In-Reply-To: References: Message-ID: <20110510235144.CBD112A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9894 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor 2011-05-10 18:51:44 CDT --- Clang is correct; GCC is wrong to accept this code. Please see http://clang.llvm.org/compatibility.html#dep_lookup_bases -- 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. From bugzilla-daemon at llvm.org Tue May 10 20:06:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 20:06:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 9895] New: missed optz'n on uadd.with.overflow Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9895 Summary: missed optz'n on uadd.with.overflow Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This is a missed optimization I found doing a superoptimizer run, and it occurs plenty often in our code: ; Input: 00:07:07:12:-0001:01:-0005:-0005:2b:35:0e:05:-0009:-0004:37:35:2b declare {i8, i1} @llvm.uadd.with.overflow.i8(i8, i8) define i1 @test(i8 %X, i8 %Y) { %x = sub i8 %X, %Y %A = icmp eq i8 %X, %Y %y = select i1 %A, i8 1, i8 %x %B = call {i8, i1} @llvm.uadd.with.overflow.i8(i8 %y, i8 %x) %C = extractvalue {i8, i1} %B, 0 %D = extractvalue {i8, i1} %B, 1 %E = select i1 %D, i8 -1, i8 %C %F = icmp eq i8 %E, 0 ret i1 %F } It always returns false, but the optimizer doesn't understand the correlation between %y and %C. If it did, then we would get stuck on this second missed optzn: define i1 @test(i8 %X, i8 %Y) nounwind readnone { %x = sub i8 %X, %Y %A = icmp eq i8 %X, %Y ; implies %x = 0 %y = select i1 %A, i8 1, i8 %x ; actually select i1 %A, i8 1, i8 0 %ZZZ = sub i8 0, %x %F1 = icmp eq i8 %y, %ZZZ ret i1 %F1 } If we do that substitution manually, we get down to this: define i1 @test(i8 %X, i8 %Y) nounwind readnone { %A = icmp eq i8 %X, %Y %y = zext i1 %A to i8 %x1 = sub i8 %Y, %X %F1 = icmp eq i8 %y, %x1 ret i1 %F1 } which is a correlated expr problem. -- 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. From bugzilla-daemon at llvm.org Tue May 10 22:50:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 May 2011 22:50:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 9896] New: 131172 miscompiles CGVTables.cpp Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9896 Summary: 131172 miscompiles CGVTables.cpp Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6576) --> (http://llvm.org/bugs/attachment.cgi?id=6576) CGVTables.ll.bz2 Just run with the old and new llc. The differences are small, so hopefully it will be easy to stop the bad one. -- 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. From bugzilla-daemon at llvm.org Wed May 11 00:23:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 00:23:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 9882] noexcept sometimes returns unexpected value In-Reply-To: References: Message-ID: <20110511052305.781672A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9882 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-05-11 00:23:05 CDT --- r131177. -- 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. From bugzilla-daemon at llvm.org Wed May 11 02:06:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 02:06:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 9891] static const struct optimized-away incorrectly by llvm-gcc In-Reply-To: References: Message-ID: <20110511070630.2E6D22A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9891 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #3 from Duncan Sands 2011-05-11 02:06:29 CDT --- Works in dragonegg; llvm-gcc is deprecated. -- 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. From bugzilla-daemon at llvm.org Wed May 11 03:05:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 03:05:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 9897] New: "File format not recognized" when compiling with -O4 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9897 Summary: "File format not recognized" when compiling with -O4 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bartosz.szurgot at pwr.wroc.pl CC: llvmbugs at cs.uiuc.edu $ /opt/clang_trunk/bin/clang -O3 bug.c # OK $ /opt/clang_trunk/bin/clang -O4 bug.c /tmp/cc-88IrUz.o: file not recognized: File format not recognized clang: error: linker command failed with exit code 1 (use -v to see invocation) $ /opt/clang_trunk/bin/clang -O4 -v bug.c clang version 3.0 (trunk 131177) Target: x86_64-unknown-linux-gnu Thread model: posix "/opt/clang_trunk/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -disable-free -main-file-name bug.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.0.20110327 -momit-leaf-frame-pointer -v -resource-dir /opt/clang_trunk/bin/../lib/clang/3.0 -O3 -ferror-limit 19 -fmessage-length 147 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ApukqU.o -x c bug.c clang -cc1 version 3.0 based upon llvm 3.0svn hosted on x86_64-unknown-linux-gnu #include "..." search starts here: #include <...> search starts here: /usr/local/include /opt/clang_trunk/bin/../lib/clang/3.0/include /usr/include End of search list. "/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o a.out /usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.5.2/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.5.2 -L/usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../.. /tmp/cc-ApukqU.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.5.2/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../../../lib64/crtn.o /tmp/cc-ApukqU.o: file not recognized: File format not recognized clang: error: linker command failed with exit code 1 (use -v to see invocation) -- 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. From bugzilla-daemon at llvm.org Wed May 11 04:12:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 04:12:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 9897] "File format not recognized" when compiling with -O4 In-Reply-To: References: Message-ID: <20110511091218.EDD182A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9897 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |baldrick at free.fr Resolution| |INVALID --- Comment #1 from Duncan Sands 2011-05-11 04:12:18 CDT --- This is a feature not a bug :) At -O4 clang outputs LLVM bitcode rather than object code. If your system linker does not know how to handle LLVM bitcode then linking will fail, as you saw. See http://llvm.org/docs/GoldPlugin.html -- 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. From bugzilla-daemon at llvm.org Wed May 11 07:06:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 07:06:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 9714] -O3 -fplugin-arg-dragonegg-enable-gcc-optzns fails to compile rnflow.f90 In-Reply-To: References: Message-ID: <20110511120607.38B302A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9714 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Duncan Sands 2011-05-11 07:06:06 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110509/120643.html -- 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. From bugzilla-daemon at llvm.org Wed May 11 07:18:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 07:18:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 9898] New: debug assertion (and possibly more errors) in ~ScopedNullTerminator() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9898 Summary: debug assertion (and possibly more errors) in ~ScopedNullTerminator() Product: new-bugs Version: 2.9 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: llvm.org at schrieb.de CC: llvmbugs at cs.uiuc.edu When I start "opt -analyze -view-cfg SomeFile.s" with a Debug-compiled "opt" I get Assertion failed: !str.empty() && str[str.size() - 1] == 0 && "Null char not present!", file z:\code\llvm\llvm-2.9\lib\support\Windows/Path.inc, line 76 Probably this is because of line 115: path.erase(--len); which does not only erase the trailing slash, but also the trailing zero, that ~ScopedNullTerminator() wants to remove later. Replacing this by path.erase(--len,1); seems to fix this. Cheers, Jonas -- 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. From bugzilla-daemon at llvm.org Wed May 11 08:58:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 08:58:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 9886] cmake build enables exceptions in more files than configure In-Reply-To: References: Message-ID: <20110511135840.A30D32A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9886 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from ?scar Fuentes 2011-05-11 08:58:40 CDT --- Fixed in r131182 (clang) and r131181 (LLVM). You are using clang++ but the scripts added the switches only when g++ was detected. -- 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. From bugzilla-daemon at llvm.org Wed May 11 10:14:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 10:14:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 9899] New: noexcept for destructors of scalars Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9899 Summary: noexcept for destructors of scalars Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hhinnant at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com It would be wonderful if the following: #include template T&& declval() noexcept; int main() { typedef int T; std::cout << noexcept(declval().~T()) << '\n'; } Output: 1 I would like to use this to build std::is_nothrow_destructible. At first glance it seems to be working for everything but scalars. Apple clang version 3.0 (trunk 131179) (based on LLVM 3.0svn) Target: x86_64-apple-darwin10.7.0 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. From bugzilla-daemon at llvm.org Wed May 11 10:50:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 10:50:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 9900] New: scalarrepl-ssa can produce invalid code for zero sized array members Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9900 Summary: scalarrepl-ssa can produce invalid code for zero sized array members Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu Running opt -scalarrepl-ssa on ----------------------------- arget datalayout = "e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32" %foobar = type { i32, [0 x i8] } define void @f(%foobar %arg) { %tmp = alloca %foobar store %foobar %arg, %foobar* %tmp %tmp113 = bitcast %foobar* %tmp to i8* ret void } --------------------------- Will produce ------------------------------- target datalayout = "e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32" %foobar = type { i32, [0 x i8] } define void @f(%foobar %arg) { %arg1 = extractvalue %foobar %arg, 0 %arg2 = extractvalue %foobar %arg, 1 ret void } ---------------------------------- llc is happy with the first code, but crashes on the second on SelectionDAGBuilder::visitExtractValue when it tries to access the first element of a zero sized ValValueVTs. We have two options. One is declaring zero sized array values illegal and fixing scalarrepl to not produce them and the verifier to check for them. Another one is making CodeGen handle them correctly. I am don't see much value is having zero size array values, so I am reporting this on scalarrrepl. Let me know if you think we should allow them and fix CodeGen instead. -- 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. From bugzilla-daemon at llvm.org Wed May 11 12:30:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 12:30:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 9901] New: -std=gnu99 produces a warning when linking Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9901 Summary: -std=gnu99 produces a warning when linking Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chantry.xavier at gmail.com CC: llvmbugs at cs.uiuc.edu $ clang -std=gnu99 test.c -c -> no warning $ clang -std=gnu99 test.o clang: warning: argument unused during compilation: '-std=gnu99' When using Makefiles, how can we specify CFLAGS='-std=gnu99' only for building and not for the linking step ? It's rather annoying to have lots of useless warning and not any way to even work around it. -- 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. From bugzilla-daemon at llvm.org Wed May 11 15:23:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 May 2011 15:23:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 9902] New: ICE with alias templates Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9902 Summary: ICE with alias templates Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hhinnant at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Apple clang version 3.0 (trunk 131179) (based on LLVM 3.0svn) Target: x86_64-apple-darwin10.7.0 Thread model: posix template struct __allocator_traits_rebind { }; template