From bugzilla-daemon at llvm.org Sun Aug 1 03:18:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 03:18:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 6742] Clang cannot execute on NetBSD In-Reply-To: References: Message-ID: <20100801081822.223022A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6742 Neil Booth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #3 from Neil Booth 2010-08-01 03:18:21 CDT --- Works for you means "works for me but I've not tried NetBSD"? I just rebuilt clang: $ clang-cc terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid Stack dump: 0. Program arguments: clang-cc Abort trap so it's still broken (above, clang-cc is a symlink in my path). Not sure how to debug this or give you 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 Aug 1 06:28:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 06:28:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 7773] New: clang c++ cannot build firefox/ctypes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7773 Summary: clang c++ cannot build firefox/ctypes Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ojab at ojab.ru CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5306) --> (http://llvm.org/bugs/attachment.cgi?id=5306) preprocessed source Build of mozilla-central with clang fails with: In file included from /sources/mozilla-central/js/src/ctypes/CTypes.cpp:1: /sources/mozilla-central/js/src/ctypes/CTypes.cpp:1288:12: error: use of undeclared identifier 'StringToInteger' return StringToInteger(cx, JSVAL_TO_STRING(val), result); -- 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 Aug 1 11:42:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 11:42:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 7773] clang c++ cannot build firefox/ctypes In-Reply-To: References: Message-ID: <20100801164200.9A7182A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7773 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2010-08-01 11:42:00 CDT --- I already have a bug filed in bugzilla.mozilla.org; clang is correct here. -- 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 Aug 1 15:21:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:21:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 7774] New: undefined behavior at AlphaISelDAGToDAG.cpp, (116:28) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7774 Summary: undefined behavior at AlphaISelDAGToDAG.cpp, (116:28) 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 This is clang 109870 on x86. This command from "make check": llc < /home/regehr/z/llvm-2/test/CodeGen/Alpha/2007-11-27-mulneg3.ll -march=alpha shifts a 32-bit number by 63 places. Same thing happens in the next line of code. The fix is obvious. -- 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 Aug 1 15:25:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:25:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 7775] New: undefined behavior at APInt.cpp, (2130:13) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7775 Summary: undefined behavior at APInt.cpp, (2130:13) 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 This is clang 109870 on x86. While running "make check" this line negates INT64_MIN. Of course this value does not have an inverse in a standard 2's complement representation. -- 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 Aug 1 15:27:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:27:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7776] New: undefined behavior at BitcodeWriter.cpp, (742:29) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7776 Summary: undefined behavior at BitcodeWriter.cpp, (742:29) 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 This is clang 109870 on x86. While running "make check" this line negates INT64_MIN. Of course this value does not have an inverse in a standard 2's complement representation. -- 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 Aug 1 15:30:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:30:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 7777] New: undefined behavior at Diagnostic.cpp, (313:22) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7777 Summary: undefined behavior at Diagnostic.cpp, (313:22) 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 This is clang 109870 on x86. The array index in this line of code appears to be out of bounds while running "make check". I don't have any more details... this failure comes from a check that we inherited from the original clang implementation of -fcatch-undefined-behavior! It could be a spurious failure if that code sucked or something. -- 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 Aug 1 15:33:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:33:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 7778] New: undefined behavior at BitstreamWriter.h, (92:5) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7778 Summary: undefined behavior at BitstreamWriter.h, (92:5) 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 This is from clang 109870 on x86. It happens when running "make check". The problem is shifting right by 32 places, which is of course illegal. It would seem that NumBits can be 32. Likely another filter on NumBits needs to be added before the second assertion runs. -- 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 Aug 1 15:35:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:35:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 7779] New: undefined behavior in InitPreprocessor.cpp, (173:39) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7779 Summary: undefined behavior in InitPreprocessor.cpp, (173:39) 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 It's illegal to subtract one from INT64_MIN, a better way needs to be found to do this computation. -- 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 Aug 1 15:36:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:36:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7780] New: undefined behavior at LiveIntervalAnalysis.cpp, (1858:18) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7780 Summary: undefined behavior at LiveIntervalAnalysis.cpp, (1858:18) 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 This is from clang 109870 on x86. It happens when running "make check". The problem is division by zero. -- 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 Aug 1 15:39:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:39:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 7781] New: PPCISelLowering.cpp, (3945:35) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7781 Summary: PPCISelLowering.cpp, (3945:35) 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 This is from clang 109870 on x86. It happens when running "make check". This right-shift operator sometimes gets a negative argument for number of bit positions to shift. Same problem occurs at lines 3950 and 3955. -- 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 Aug 1 15:40:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:40:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 7782] New: undefined behavior at ProfileEstimatorPass.cpp, (287:35) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7782 Summary: undefined behavior at ProfileEstimatorPass.cpp, (287:35) 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 This is from clang 109870 on x86. It happens when running "make check". The problem is divide by zero. -- 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 Aug 1 15:41:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 15:41:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 7783] New: undefined behavior at raw_ostream.cpp, (148:9) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7783 Summary: undefined behavior at raw_ostream.cpp, (148:9) 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 This is from clang 109870 on x86. It happens when running "make check". The problem is that INT64_MIN is negated, which is illegal. -- 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 Aug 1 16:14:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 16:14:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 7774] undefined behavior at AlphaISelDAGToDAG.cpp, (116:28) In-Reply-To: References: Message-ID: <20100801211413.B8D262A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7774 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2010-08-01 16:14:13 CDT --- Fixed in r109985. -- 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 Aug 1 16:17:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 16:17:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 7784] New: Clang mis-compiles array of unsigned long longs on FreeBSD Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7784 Summary: Clang mis-compiles array of unsigned long longs on FreeBSD Product: clang Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at extraordinarymachine.nl CC: llvmbugs at cs.uiuc.edu This is not strictly a clang bug. The follwing source: #include unsigned long long globalArray[] = {0xFFFFFFFD00000000uLL}; int main() { unsigned long long t = 0xFFFFFFFD00000000uLL; printf("%016llX, %016llu\n", t, t); printf("%016llX, %016llu\n", globalArray[0], globalArray[0]); return 0; } results in the following results: FFFFFFFD00000000, 18446744060824649728 0000FFFD00000000, 0281462091808768 Further investigation by Eli Friedman and Dimitry Andric led to the following conclusion: binutils 2.20.1 assembles the following: .file "quadtest.s" .type globalArray, at object .data .globl globalArray .align 16 globalArray: .quad 542196645677236224 .quad -12884901888 .quad 0 .quad 542196645677236224 .size globalArray, 32 wrongly to: Contents of section .data: 0000 00000000 fa448607 00000000 fdff0000 .....D.......... 0010 00000000 00000000 00000000 fa448607 .............D.. The built-in assembler for BSD (2.15) produces: Contents of section .data: 0000 00000000 fa448607 00000000 fdffffff .....D.......... 0010 00000000 00000000 00000000 fa448607 .............D.. which is correct. This is clearly a bug in binutils and has been filed as such. (http://sourceware.org/bugzilla/show_bug.cgi?id=11867) Question is whether to work around this in clang. similar to the OpenBSD test in lib/Target/X86/X86MCAsmInfo.cpp? Index: lib/Target/X86/X86MCAsmInfo.cpp =================================================================== --- lib/Target/X86/X86MCAsmInfo.cpp (revision 109940) +++ lib/Target/X86/X86MCAsmInfo.cpp (working copy) @@ -92,7 +92,7 @@ // OpenBSD has buggy support for .quad in 32-bit mode, just split into two // .words. if (T.getOS() == Triple::OpenBSD && T.getArch() == Triple::x86) Data64bitsDirective = 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 Aug 1 17:13:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 17:13:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 7777] undefined behavior at Diagnostic.cpp, (313:22) In-Reply-To: References: Message-ID: <20100801221358.E1D0D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7777 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2010-08-01 17:13:58 CDT --- Fixed in r109987; the out-of-bounds checker was in fact working correctly. -- 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 Aug 1 18:28:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 18:28:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 7785] New: g++ built with --enable-concept-checks fails to compile llvm Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7785 Summary: g++ built with --enable-concept-checks fails to compile llvm Product: new-bugs Version: trunk Platform: PC OS/Version: Solaris Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: llvm001 at deltaprime.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5307) --> (http://llvm.org/bugs/attachment.cgi?id=5307) Configure Log Just as the summary states, when a g++ compiler is used which was built with the --enable-concept-checks configuration flag set, it will fail to compile llvm with the following error message: llvm[1]: Compiling BasicBlock.cpp for Debug+Asserts build /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h: In member function 'bool __gnu_cxx::_EqualOpConcept<_First, _Second>::__constraints_() [with _First = llvm::BasicBlock, _Second = llvm::BasicBlock*]': /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:296: instantiated from 'void __gnu_cxx::_EqualOpConcept<_First, _Second>::__constraints() [with _First = llvm::BasicBlock, _Second = llvm::BasicBlock*]' /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:62: instantiated from 'void __gnu_cxx::__function_requires() [with _Concept = __gnu_cxx::_EqualOpConcept]' /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/stl_algo.h:3810: instantiated from '_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = llvm::PredIterator >, _Tp = llvm::BasicBlock*]' BasicBlock.cpp:192: instantiated from here /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:296: error: no match for 'operator==' in '((__gnu_cxx::_EqualOpConcept*)this)->__gnu_cxx::_EqualOpConcept::__a == ((__gnu_cxx::_EqualOpConcept*)this)->__gnu_cxx::_EqualOpConcept::__b' /home/lkiss/Code/work/LLVM/llvm/include/llvm/ADT/APInt.h:1512: note: candidates are: bool llvm::operator==(uint64_t, const llvm::APInt&) /home/lkiss/Code/work/LLVM/llvm/include/llvm/ADT/StringRef.h:404: note: bool llvm::operator==(llvm::StringRef, llvm::StringRef) gmake[1]: *** [/home/lkiss/Code/work/LLVM/llvm/lib/VMCore/Debug+Asserts/BasicBlock.o] Error 1 gmake[1]: Leaving directory `/home/lkiss/Code/work/LLVM/llvm/lib/VMCore' gmake: *** [all] Error 1 I've built a 4.4.4 compiler with that flag unset, and it does not complain when it compiles this same 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 Sun Aug 1 19:18:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 19:18:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7781] undefined behavior at PPCISelLowering.cpp, (3945:35) In-Reply-To: References: Message-ID: <20100802001833.DB4C82A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7781 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2010-08-01 19:18:33 CDT --- Fixed in r109998. -- 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 Aug 1 19:42:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 19:42:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 2454] Testcase failing to find compile unit In-Reply-To: References: Message-ID: <20100802004202.1BCC72A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2454 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |daniel at zuster.org Resolution| |WORKSFORME --- Comment #2 from Daniel Dunbar 2010-08-01 19:42:01 CDT --- Closing due to neglect, please reopen if there is still an issue. -- 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 Aug 1 20:22:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 20:22:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 5217] Drop DejaGNU. In-Reply-To: References: Message-ID: <20100802012202.BD14D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5217 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Daniel Dunbar 2010-08-01 20:22:02 CDT --- Updated testing guide basics in r110005. This more or less finishes off this bug -- there is lots of cleanup we can do to finish purging DejaGNU, but we don't need a bug for 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 Sun Aug 1 20:24:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 20:24:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 5856] [129.compress] clang rejects code which gcc accepts In-Reply-To: References: Message-ID: <20100802012446.8AD792A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5856 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Daniel Dunbar 2010-08-01 20:24:46 CDT --- Doug fixed 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 Sun Aug 1 20:26:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 20:26:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 4811] Make asm-verbose show encoding In-Reply-To: References: Message-ID: <20100802012635.698862A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4811 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Daniel Dunbar 2010-08-01 20:26:35 CDT --- Actually, I don't think we should do this. It is too noisy, and we have asm-verbose on by default now. -- 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 Aug 1 20:29:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 20:29:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 4320] Support building tests in parallel (at least for Nightly Test) In-Reply-To: References: Message-ID: <20100802012932.55F022A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4320 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Daniel Dunbar 2010-08-01 20:29:32 CDT --- I decided not to do this, at least not directly. I plan to move away from the makefile driven test suite infrastructure. -- 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 Aug 1 23:15:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 23:15:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 7786] New: probable clang 64-bit wrong code bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7786 Summary: probable clang 64-bit wrong code bug 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, jxyang at cs.utah.edu [regehr at gamow work016]$ clang -O1 small.c -o small [regehr at gamow work016]$ ./small 9 [regehr at gamow work016]$ clang -O2 small.c -o small [regehr at gamow work016]$ ./small 255 [regehr at gamow work016]$ clang -v clang version 2.8 (trunk 110016) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at gamow work016]$ cat small.c extern int printf (__const char *__restrict __format, ...); signed char foo (signed char si1, signed char si2) { return si1 - si2; } int g_21[1] = {0x97341720L}; int g_39 = 0x05DE082AL; int *g_38 = &g_39; unsigned char g_43 = 0L; int *l_40[6]; int main(void) { const int l_42 = 1L; int **l_250 = &l_40[3]; int x = (g_21[0] == 6) && (*g_38); g_43 = foo (x, l_42) & 9L; if (*g_38) { *l_250 = g_38; } printf("%u\n", g_43); 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 Aug 1 23:42:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 1 Aug 2010 23:42:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7586] possible integer wrong code bug on x64 In-Reply-To: References: Message-ID: <20100802044242.D0B772A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7586 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #3 from Eli Friedman 2010-08-01 23:42:42 CDT --- Fixed in r110019. -- 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 Aug 2 00:52:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 00:52:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 7768] likely integer wrong code bug In-Reply-To: References: Message-ID: <20100802055250.85F242A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7768 John Regehr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from John Regehr 2010-08-02 00:52:50 CDT --- (In reply to comment #3) > Try with r110019? Works for 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 Aug 2 00:54:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 00:54:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 7768] likely integer wrong code bug In-Reply-To: References: Message-ID: <20100802055456.D783B2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7768 John Regehr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #5 from John Regehr 2010-08-02 00:54:56 CDT --- (In reply to comment #4) > (In reply to comment #3) > > Try with r110019? > > Works for me. Ack-- I was on the wrong machine. Not fixed yet. Sorry. -- 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 Aug 2 01:08:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 01:08:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 7768] likely integer wrong code bug In-Reply-To: References: Message-ID: <20100802060841.D2D622A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7768 John Regehr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #6 from John Regehr 2010-08-02 01:08:41 CDT --- Sorry Eli I have too many windows open. r110019 does indeed fix this x86 bug. -- 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 Aug 2 01:14:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 01:14:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 7786] probable clang 64-bit wrong code bug In-Reply-To: References: Message-ID: <20100802061432.6250C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7786 John Regehr 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 Mon Aug 2 07:41:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 07:41:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 7787] New: ARM disassembler occasionally drops condition, shift from sbcseq, adcseq, addeq Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7787 Summary: ARM disassembler occasionally drops condition, shift from sbcseq, adcseq, addeq 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: sliedes at cc.hut.fi CC: llvmbugs at cs.uiuc.edu (trunk rev 110038) Hi, When cross-validating three different arm disassemblers (objdump, llvm-mc, libdisarm), I ran into this: Disassembling instruction 00d60002 with llvm-mc gives 'sbcs r0, r6, r2'. The SBC (register) instruction is coded as follows: cond 0000 110S nnnn dddd iiii itt0 mmmm cond = condition S = update flags n = Rn d = Rd i = imm5 t = type m = Rm cond 0 is eq, therefore the instruction is sbcseq, not sbcs. The condition eq is similarly dropped from other instructions (also in some cases, shifts are dropped). I didn't check all these opcodes by hand, but in these cases objdump and libdisarm agree with each other and disagree with llvm: opcode: 00b5ffe0 decoded as: adcs pc, r5, r0, ror #31 should be: adcseq pc, r5, r0, ror #31 opcode: 0087ffc9 decoded as: add pc, r7, r9 should be: addeq pc, r7, r9, asr #31 opcode: 0087ff2a decoded as: add pc, r7, r10 should be: addeq pc, r7, r10, lsr #30 -- 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 Aug 2 07:46:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 07:46:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 7788] New: ARM disassembler mis-disassembles adcs reg, reg, imm Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7788 Summary: ARM disassembler mis-disassembles adcs reg,reg,imm 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: sliedes at cc.hut.fi CC: llvmbugs at cs.uiuc.edu (trunk rev 110038) The opcode e2baca99 is disassembled as adcs r12, r10, #153, 20 which seems nonsensical to me. The asm syntax for adc (immediate) is: ADC{s} ,,# I believe the correct disassembly would be adcs r12, r10, #626688 . -- 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 Aug 2 07:49:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 07:49:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 7789] New: Failure to detect "jump to case label crosses initialization" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7789 Summary: Failure to detect "jump to case label crosses initialization" Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bugzilla-clang at sogetthis.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5308) --> (http://llvm.org/bugs/attachment.cgi?id=5308) source code to reproduce bug Hi! When compiling a 'switch' in which a 'case' contains an initialized variable (see example) Clang does so without complaining. g++ on the other hand produces an error "jump to case label crosses initialization". I'm not really sure which is correct. According to this thread (http://www.velocityreviews.com/forums/t282021-error-jump-to-case-label.html) and the explanation for it's behavior, g++ is correct. [code] switch (a) { //... case 1: int a = 1; break; case 2: //... } [/code] g++ output for attached file: > clang-bug.cpp: In function ?int main()?: > clang-bug.cpp:10: error: jump to case label > clang-bug.cpp:7: error: crosses initialization of ?int a? clang++ output for attached file: - (compiles without error/warning) My system: Linux VirtUbuntu 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:22:14 UTC 2010 i686 GNU/Linux clang version 2.8 (trunk 109579) Target: i386-pc-linux-gnu Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 2 07:52:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 07:52:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7790] New: ARM disassembler disassembles rrx as rrx #0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7790 Summary: ARM disassembler disassembles rrx as rrx #0 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: sliedes at cc.hut.fi CC: llvmbugs at cs.uiuc.edu (trunk rev 110038) Opcode e1887067 is disassembled as orr r7, r8, r7, rrx #0 . However the RRX shift does not take an argument. The correct form, I believe, would be just orr r7, r8, r7, rrx . -- 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 Aug 2 08:19:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 08:19:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 7791] New: Invalid(?) ldr instruction form is disassembled as eor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7791 Summary: Invalid(?) ldr instruction form is disassembled as eor 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: sliedes at cc.hut.fi CC: llvmbugs at cs.uiuc.edu (trunk rev 110038) Opcode 002a78d4 is disassembled by llvm as eoreq r7, r10, r4, asr r8 However note that bit 7 is always 0 in eor register-shifted-register, so this is not eor: cond 0000 001S nnnn dddd ssss 0tt1 mmmm ^ 0000 0000 0010 1010 0111 1000 1101 0100 ^ The opcode seems to be, in fact, ldrdeq (register), and both objdump and libdisarm disassemble it as 'ldrdeq r7, [r10], -r4': cond 000P U0W0 nnnn tttt (0000) 1101 mmmm 0000 0000 0010 1010 0111 1000 1101 0100 (I assume the bits in parenthesis mean that's the form assemblers should output, as I cannot find an explanation in the ARM reference manual.) However, here P=0 and W=1, and the reference manual says that case is 'UNPREDICTABLE'. -- 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 Aug 2 09:47:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 09:47:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 7661] intermittent clang x64 failure: non-trivial casts should be done with the SCEVs directly! In-Reply-To: References: Message-ID: <20100802144709.2EE8A2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7661 John Regehr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME -- 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 Aug 2 10:35:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 10:35:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 7792] New: ARM disassembler: rsb, rsc, pkh, ssat instructions emit zero shifts Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7792 Summary: ARM disassembler: rsb, rsc, pkh, ssat instructions emit zero shifts 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: sliedes at cc.hut.fi CC: llvmbugs at cs.uiuc.edu (trunk rev 110038) Hi, For most instructions, the disassembler does not output shifts where the amount of the shift is zero. This is the behavior also recommended for ARM disassemblers by the ARM Architecture Reference Manual. However, for some instructions, a shift is emitted (this may not be a complete list): $ echo '0x01 0x00 0xf0 0x00' |Release+Asserts/bin/llvm-mc --disassemble --triple=arm rsceqs r0, r0, r1, lsl #0 $ echo '0x00 0x00 0x62 0x00' |Release+Asserts/bin/llvm-mc --disassemble --triple=arm rsbeq r0, r2, r0, lsl #0 $ echo '0x1b 0xf0 0x8b 0x96' |Release+Asserts/bin/llvm-mc --disassemble --triple=arm pkhbtls pc, r11, r11, lsl #0 $ echo '0x1c 0x00 0xb0 0x46' |Release+Asserts/bin/llvm-mc --disassemble --triple=arm ssatmi r0, #17, r12, lsl #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 Mon Aug 2 10:35:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 10:35:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 6742] Clang cannot execute on NetBSD In-Reply-To: References: Message-ID: <20100802153537.63F742A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6742 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #8 from Daniel Dunbar 2010-08-02 10:35:36 CDT --- > apparently now puts the binaries in Release/ not Release-Asserts/ Yes, this is a recent change. > This seems contrary to the docs. Which docs? -- 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 Aug 2 10:39:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 10:39:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7220] Centos 5.5 causes syntax errors In-Reply-To: References: Message-ID: <20100802153952.712182A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7220 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #7 from Daniel Dunbar 2010-08-02 10:39:51 CDT --- Ok, I'm closing this as WONTFIX then -- if someone wants 4.1 support they can contribute 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 Mon Aug 2 13:28:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 13:28:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 5592] Visual Studio 2010 build totally broken for x86/x64 In-Reply-To: References: Message-ID: <20100802182831.57F022A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5592 nobled at dreamwidth.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from nobled at dreamwidth.org 2010-08-02 13:28:30 CDT --- (In reply to comment #4) > Created an attachment (id=5266) --> (http://llvm.org/bugs/attachment.cgi?id=5266) [details] > Fix "ambiguous call to overloaded function" in VC++ (v2) Committed in r110029; trunk builds without errors now. -- 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 Aug 2 14:43:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 14:43:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 7770] easy to prevent false positive In-Reply-To: References: Message-ID: <20100802194309.A2E502A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7770 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |DUPLICATE --- Comment #1 from Ted Kremenek 2010-08-02 14:43:09 CDT --- The issue here is that 'ownSize' and 'sm->HTLength' have symbolic values, and the analyzer isn't currently tracking linear relationships between symbolic values (just linear relationships between symbolic values and constants). *** This bug has been marked as a duplicate of bug 2306 *** -- 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 Aug 2 18:12:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 18:12:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 7784] Clang mis-compiles array of unsigned long longs on FreeBSD In-Reply-To: References: Message-ID: <20100802231259.5BD682A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7784 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Chris Lattner 2010-08-02 18:12:58 CDT --- Unless we want to hack clang to work with the busted binutils, I think this should be considered done. -- 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 Aug 2 18:33:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 18:33:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 7789] Failure to detect "jump to case label crosses initialization" In-Reply-To: References: Message-ID: <20100802233340.3E64A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7789 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John McCall 2010-08-02 18:33:39 CDT --- Fixed in r110082. -- 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 Aug 2 19:23:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 19:23:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 7793] New: bugpoint should be able to pass args to opt Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7793 Summary: bugpoint should be able to pass args to opt Product: tools Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: bugpoint AssignedTo: unassignedbugs at nondot.org ReportedBy: collinwinter at google.com CC: rafael.espindola at gmail.com, llvmbugs at cs.uiuc.edu, nlewycky at google.com I'm trying to debug a crash in opt seemingly caused by -unroll-count. I would like to use bugpoint to reduce my test case but cannot because bugpoint does not pass -unroll-count down to opt. I've tried --tool-args, but that just goes to llc, not opt. -- 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 Aug 2 21:29:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 2 Aug 2010 21:29:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 7794] New: Poor diagnostic for cast from enum to int& Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7794 Summary: Poor diagnostic for cast from enum to int& Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: matthewbg at google.com CC: llvmbugs at cs.uiuc.edu, nlewycky at google.com Created an attachment (id=5309) --> (http://llvm.org/bugs/attachment.cgi?id=5309) test case Test case attached. In particular, the first error should be complaining about a bad cast, not about anything related to compound literals. % clang -fsyntax-only ~/clang/testcases/enum_int_bad_diagnostic.cc /home/matthewbg/clang/testcases/enum_int_bad_diagnostic.cc:6:32: error: expected '{' in compound literal for (MyEnum e = a; ; ++(int&)e); ^ /home/matthewbg/clang/testcases/enum_int_bad_diagnostic.cc:6:32: error: expected ')' /home/matthewbg/clang/testcases/enum_int_bad_diagnostic.cc:6:7: note: to match this '(' for (MyEnum e = a; ; ++(int&)e); ^ 2 errors 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 Tue Aug 3 01:09:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 01:09:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 7788] ARM disassembler mis-disassembles adcs reg, reg, imm In-Reply-To: References: Message-ID: <20100803060903.4506A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7788 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2010-08-03 01:09:02 CDT --- The way LLVM writes it is not wrong, just not the syntax you're expecting; try assembling the output of LLVM to see what I mean. -- 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 Aug 3 05:20:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 05:20:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 7796] New: Unconditional gnu extension usage in stddef.h breaks VS2008 headers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7796 Summary: Unconditional gnu extension usage in stddef.h breaks VS2008 headers Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Headers AssignedTo: unassignedclangbugs at nondot.org ReportedBy: per at lumai.se CC: llvmbugs at cs.uiuc.edu When using clang to compile a trivial C++ program using in the Visual Studio 2008 environment, clang/2.8/include/stddef.h unconditionally #defines NULL to __null. This causes a problem in the VS2008 header , where the function __inline int __CRTDECL mbsinit(_In_opt_ const mbstate_t *_P) {return (_P == NULL || *_P == 0); } expands to __inline int mbsinit( const mbstate_t *_P) {return (_P == || *_P == 0); } Test case: #include int main(int argc, char **argv) { cout << "Hello C++ world" << endl; return 0; } Resulting error: D:\Temp\llvm>clang++ -fno-exceptions test.cpp -ferror-limit=2 In file included from test.cpp:1: In file included from c:\Program Files\VStudio 9.0\VC\include/iostream:6: In file included from c:\Program Files\VStudio 9.0\VC\include/istream:6: In file included from c:\Program Files\VStudio 9.0\VC\include/ostream:6: In file included from c:\Program Files\VStudio 9.0\VC\include/ios:6: In file included from c:\Program Files\VStudio 9.0\VC\include/xlocnum:9: In file included from c:\Program Files\VStudio 9.0\VC\include/streambuf:6: In file included from c:\Program Files\VStudio 9.0\VC\include/xiosbase:6: In file included from c:\Program Files\VStudio 9.0\VC\include/xlocale:8: In file included from c:\Program Files\VStudio 9.0\VC\include/stdexcept:7: In file included from c:\Program Files\VStudio 9.0\VC\include/xstring:6: In file included from c:\Program Files\VStudio 9.0\VC\include/xmemory:9: In file included from c:\Program Files\VStudio 9.0\VC\include/xutility:7: In file included from c:\Program Files\VStudio 9.0\VC\include/utility:6: In file included from c:\Program Files\VStudio 9.0\VC\include/iosfwd:8: In file included from c:\Program Files\VStudio 9.0\VC\include/cwchar:13: c:\Program Files\VStudio 9.0\VC\include/wchar.h(1209) : error: expected expression {return (_P == NULL || *_P == 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 Aug 3 06:10:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 06:10:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 7797] New: ICE when asked to produce template function pointer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7797 Summary: ICE when asked to produce template function pointer Product: clang Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: trash at phoyd.net CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang++ 2.7. produces an ICE when resolving a function pointer to a template function. My minimal example is this: ---------------------------------------------- $ /opt/clang+llvm-2.7-x86_64-linux/bin/clang++ -v clang version 1.1 (branches/release_27) Target: x86_64-unknown-linux-gnu Thread model: posix $uname -a Linux oblomow 2.6.31.12-0.2-desktop #1 SMP PREEMPT 2010-03-16 21:25:39 +0100 x86_64 x86_64 x86_64 GNU/Linux $ cat t.cc template class E {}; template E e() ; int main () { E(*f)()=e; } $ /opt/clang+llvm-2.7-x86_64-linux/bin/clang++ gr.cc clang: Instructions.cpp:1110: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed. 0 clang 0x000000000118601f 1 clang 0x000000000118682d 2 libpthread.so.0 0x00007fe74f2b9c00 3 libc.so.6 0x00007fe74e6084e5 gsignal + 53 4 libc.so.6 0x00007fe74e6099b0 abort + 384 5 libc.so.6 0x00007fe74e60124a __assert_fail + 234 6 clang 0x00000000010e3071 7 clang 0x000000000055e5f8 8 clang 0x000000000055324c 9 clang 0x0000000000553e3c 10 clang 0x00000000005c3bb0 11 clang 0x00000000005ca0de 12 clang 0x00000000005c77cc 13 clang 0x00000000005c9e40 14 clang 0x00000000005ca127 15 clang 0x00000000005c77cc 16 clang 0x00000000005eb089 17 clang 0x00000000005114b9 18 clang 0x0000000000511d54 19 clang 0x0000000000512025 20 clang 0x0000000000512380 21 clang 0x0000000000508d81 22 clang 0x0000000000410ab4 23 clang 0x00000000005fc655 24 clang 0x0000000000415da9 25 clang 0x00000000004095d9 26 clang 0x000000000040bf9b main + 1675 27 libc.so.6 0x00007fe74e5f4a7d __libc_start_main + 253 28 clang 0x00000000004070a9 Stack dump: 0. Program arguments: /opt/clang+llvm-2.7-x86_64-linux/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /opt/clang+llvm-2.7-x86_64-linux/lib/clang/1.1 -fmessage-length 149 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-dJJd3e.s -x c++ t.cc 1. parser at end of file 2. t.cc:8:5: LLVM IR generation of declaration 'main' 3. t.cc:8:5: Generating code for declaration 'main' 4. t.cc:9:1: LLVM IR generation of compound statement ('{}') clang: error: compiler command failed due to signal 6 (use -v to see invocation) ---------------------------------------------- Cheers. -- 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 Aug 3 10:46:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 10:46:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 7798] New: -pthread option not supported when linking with clang++... Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7798 Summary: -pthread option not supported when linking with clang++... Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Hi, when linking: clang++ -O2 -m64 stress.o Event.o EventDict.o -L/Users/rdm/rooticc/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -Wl,-rpath,/Users/rdm/rooticc/lib -lm -ldl -o stress I get the warning: clang: warning: argument unused during compilation: '-pthread' while with g++ this option is needed (adds -lpthread on non Mac systems) or at least does not complain. Cheers, Fons. -- 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 Aug 3 11:15:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 11:15:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 6218] Broken debug info on non-darwin platforms In-Reply-To: References: Message-ID: <20100803161507.D7C492A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6218 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |daniel at zuster.org Resolution| |FIXED --- Comment #23 from Daniel Dunbar 2010-08-03 11:15:06 CDT --- Fixed here: http://llvm.org/viewvc/llvm-project?view=rev&revision=110111 I hope. Confirmation would be nice! -- 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 Aug 3 11:16:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 11:16:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 6519] Support -Xarch_arch option on Darwin In-Reply-To: References: Message-ID: <20100803161609.4A50A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6519 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Daniel Dunbar 2010-08-03 11:16:08 CDT --- I fixed 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 Tue Aug 3 11:33:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 11:33:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 5237] Poor recovery with parse failure in base constructor call In-Reply-To: References: Message-ID: <20100803163355.2D49D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5237 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Daniel Dunbar 2010-08-03 11:33:54 CDT --- This has been 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 Aug 3 11:41:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 11:41:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 7783] undefined behavior at raw_ostream.cpp, (148:9) In-Reply-To: References: Message-ID: <20100803164135.A4ACA2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7783 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-03 11:41:35 CDT --- Fixed in r110114, 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 Tue Aug 3 11:46:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 11:46:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 7797] ICE when asked to produce template function pointer In-Reply-To: References: Message-ID: <20100803164624.607F82A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7797 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |WORKSFORME --- Comment #4 from Eli Friedman 2010-08-03 11:46:23 CDT --- I don't follow the question... we don't collect bugs for releases because we don't maintain release branches after they are released (primarily due to a lack of resources). -- 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 Aug 3 11:48:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 11:48:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 7779] undefined behavior in InitPreprocessor.cpp, (173:39) In-Reply-To: References: Message-ID: <20100803164851.D8B8B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7779 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-03 11:48:51 CDT --- Fixed in r110116, 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 Tue Aug 3 11:57:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 11:57:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 7776] undefined behavior at BitcodeWriter.cpp, (742:29) In-Reply-To: References: Message-ID: <20100803165718.401DE2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7776 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-03 11:57:17 CDT --- Fixed in r110117 -- 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 Aug 3 12:21:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 12:21:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 7780] undefined behavior at LiveIntervalAnalysis.cpp, (1858:18) In-Reply-To: References: Message-ID: <20100803172144.7C95E2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7780 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Jakob Stoklund Olesen 2010-08-03 12:21:44 CDT --- Fixed in r110119 by removing the offending line. -- 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 Aug 3 12:28:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 12:28:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 7800] New: ICE: Sema doesn't consider destructor as used. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7800 Summary: ICE: Sema doesn't consider destructor as used. Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: wotte at dre.vanderbilt.edu CC: llvmbugs at cs.uiuc.edu Using r110117, appears in both release and debug configuration with the attached preprocessed C++ file. Below diagnostic is from the debug version. ======= Error Diagnostic ============= clang++ -Wall -Wpointer-arith -pipe -pipe -DACE_HAS_CUSTOM_EXPORT_MACROS=0 -DNDEBUG -I/builds/Clang_ACE/ACE_wrappers -DACE_NDEBUG -DACE_USE_RCSID=0 -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I/builds/Clang_ACE/ACE_wrappers -I../.. -I../../orbsvcs -DTAO_HAS_TYPED_EVENT_CHANNEL -DTAO_NOTIFY_SERV_BUILD_DLL -c -o .shobj/Notify/Builder.o Notify/Builder.cpp Assertion failed: (DD->isUsed() && "Sema doesn't consider destructor as used."), function GetOrCreateLLVMFunction, file /builds/Clang/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp, line 801. 0 clang 0x000000010111bb54 PrintStackTrace(void*) + 38 1 clang 0x000000010111c062 SignalHandler(int) + 254 2 libSystem.B.dylib 0x00007fff88a5980a _sigtramp + 26 3 clang 0x00000001005cccd5 llvm::SmallVector::~SmallVector() + 21 4 libSystem.B.dylib 0x00007fff88ad4ef0 __pthread_markcancel + 0 5 clang 0x0000000100238ec8 clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef, llvm::Type const*, clang::CodeGen::GlobalDecl) + 1262 6 clang 0x000000010023b23b clang::CodeGen::CodeGenModule::GetAddrOfFunction(clang::CodeGen::GlobalDecl, llvm::Type const*) + 155 7 clang 0x000000010021628f clang::CodeGen::CodeGenVTables::CreateVTableInitializer(clang::CXXRecordDecl const*, unsigned long long const*, unsigned int, llvm::SmallVector, 1u> const&) + 1155 8 clang 0x000000010021ca42 clang::CodeGen::CodeGenVTables::GenerateConstructionVTable(clang::CXXRecordDecl const*, clang::CodeGen::BaseSubobject const&, bool, llvm::DenseMap, llvm::DenseMapInfo >&) + 820 9 clang 0x0000000100210360 (anonymous namespace)::VTTBuilder::GetAddrOfVTable(clang::CodeGen::BaseSubobject, bool, llvm::DenseMap, llvm::DenseMapInfo >&) + 240 10 clang 0x0000000100210453 (anonymous namespace)::VTTBuilder::LayoutVTT(clang::CodeGen::BaseSubobject, bool) + 225 11 clang 0x000000010021071a (anonymous namespace)::VTTBuilder::LayoutSecondaryVTTs(clang::CodeGen::BaseSubobject) + 252 12 clang 0x00000001002104a3 (anonymous namespace)::VTTBuilder::LayoutVTT(clang::CodeGen::BaseSubobject, bool) + 305 13 clang 0x00000001002105e6 (anonymous namespace)::VTTBuilder::LayoutVirtualVTTs(clang::CXXRecordDecl const*, llvm::SmallPtrSet&) + 202 14 clang 0x00000001002104fc (anonymous namespace)::VTTBuilder::LayoutVTT(clang::CodeGen::BaseSubobject, bool) + 394 15 clang 0x00000001002107fa (anonymous namespace)::VTTBuilder::VTTBuilder(clang::CodeGen::CodeGenModule&, clang::CXXRecordDecl const*, bool) + 194 16 clang 0x0000000100210edf clang::CodeGen::CodeGenVTables::GenerateVTT(llvm::GlobalValue::LinkageTypes, bool, clang::CXXRecordDecl const*) + 353 17 clang 0x000000010021d514 clang::CodeGen::CodeGenVTables::GenerateClassData(llvm::GlobalValue::LinkageTypes, clang::CXXRecordDecl const*) + 190 18 clang 0x0000000100236e80 clang::CodeGen::CodeGenModule::EmitVTable(clang::CXXRecordDecl*, bool) + 60 19 clang 0x000000010025a55c (anonymous namespace)::CodeGeneratorImpl::HandleVTable(clang::CXXRecordDecl*, bool) + 68 20 clang 0x000000010022bbea (anonymous namespace)::BackendConsumer::HandleVTable(clang::CXXRecordDecl*, bool) + 58 21 clang 0x00000001002e0aa8 clang::Sema::DefineUsedVTables() + 832 22 clang 0x000000010026cb38 clang::Sema::ActOnEndOfTranslationUnit() + 50 23 clang 0x00000001006d6ca3 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 91 24 clang 0x000000010026bde1 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 456 25 clang 0x000000010008179c clang::ASTFrontendAction::ExecuteAction() + 254 26 clang 0x000000010022c698 clang::CodeGenAction::ExecuteAction() + 826 27 clang 0x00000001000818aa clang::FrontendAction::Execute() + 256 28 clang 0x0000000100064a3e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 710 29 clang 0x0000000100027d77 cc1_main(char const**, char const**, char const*, void*) + 1762 30 clang 0x000000010002f1ac main + 450 31 clang 0x0000000100026c84 start + 52 32 clang 0x000000000000003b start + 4294808555 Stack dump: 0. Program arguments: /builds/Clang/llvm-build/Debug+Asserts/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name Builder.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -resource-dir /builds/Clang/llvm-build/Debug+Asserts/lib/clang/2.8 -D ACE_HAS_CUSTOM_EXPORT_MACROS=0 -D NDEBUG -D ACE_NDEBUG -D ACE_USE_RCSID=0 -D ACE_HAS_EXCEPTIONS -D __ACE_INLINE__ -D TAO_HAS_TYPED_EVENT_CHANNEL -D TAO_NOTIFY_SERV_BUILD_DLL -I /builds/Clang_ACE/ACE_wrappers -I /builds/Clang_ACE/ACE_wrappers -I ../.. -I ../../orbsvcs -Wall -Wpointer-arith -ferror-limit 19 -fmessage-length 270 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o .shobj/Notify/Builder.o -x c++ Notify/Builder.cpp 1. parser at end of file clang: error: clang frontend command failed due to signal 6 (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 Aug 3 12:35:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 12:35:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 7713] DAGCombiner crashes during phase 2 of Release Clang self-host In-Reply-To: References: Message-ID: <20100803173531.C18C02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7713 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #20 from Jakob Stoklund Olesen 2010-08-03 12:35:30 CDT --- Both this one and PR7719 were fixed. Clang self-hosts now. -- 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 Aug 3 12:42:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 12:42:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7771] Assertion `(unsigned)FI-LowSpillSlot < SpillSlotToUsesMap.size() && "Invalid spill slot"' failed. In-Reply-To: References: Message-ID: <20100803174211.E386E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7771 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Jakob Stoklund Olesen 2010-08-03 12:42:11 CDT --- This was a consequence of the division by 0.0 reported in PR7780, fixed in r110119. 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 Aug 3 12:44:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 12:44:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 6651] slow register coalescing In-Reply-To: References: Message-ID: <20100803174436.652692A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6651 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Jakob Stoklund Olesen 2010-08-03 12:44:35 CDT --- This was fixed a while back by disabling physreg coalescing when functions have an insane number of function calls. -- 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 Aug 3 15:19:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 15:19:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 7801] New: Unallowed cast from incomplete type to void* Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7801 Summary: Unallowed cast from incomplete type to void* Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: abramobagnara at tin.it CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com It seems that clang when compiling this tiny source in C++ mode refuses to cast void*(*)[] to void*. The code is compiled without errors in gcc, intel compiler and comeau. $ cat bug.c extern void* x[]; void* dummy[] = { &x }; $ gcc -x c -c bug.c $ gcc -x c++ -c bug.c $ clang -x c -c bug.c $ clang -x c++ -c bug.c bug.c:2:19: error: cannot initialize an array element of type 'void *' with an rvalue of type 'void *(*)[]' void* dummy[] = { &x }; ^~ 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 Tue Aug 3 15:20:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 15:20:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 7802] New: False positive for -Wunreachable-code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7802 Summary: False positive for -Wunreachable-code Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: abramobagnara at tin.it CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following typescript shows that clang incorrectly seems to mark as unreachable a throw of a temporary. Please note that if I remove the destructor of struct s, no warning is generated. $ cat w.cc struct s { explicit s() { } ~s() { } }; int f_bad(int x) { if (x) throw s(); return 0; } int f_good(int x) { if (x) { s e; throw e; } return 0; } $ llvm/Debug+Asserts/bin/clang++ -Wunreachable-code -c w.cc w.cc:8:5: warning: will never be executed [-Wunreachable-code] throw s(); ^~~~~~~~~ 1 warning 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 Tue Aug 3 15:43:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 15:43:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 6930] clang: invalid input constraint "p" in asm In-Reply-To: References: Message-ID: <20100803204337.497CE2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6930 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Dale Johannesen 2010-08-03 15:43:36 CDT --- There is no testcase here, but I believe this works now, at least for x86 and ARM. If not, please provide a 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 Tue Aug 3 16:45:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 16:45:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 7803] New: error: no suitable member 'operator delete' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7803 Summary: error: no suitable member 'operator delete' Product: clang Version: trunk Platform: All OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alexmac at adobe.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: ------------------------------------------------------------------------- #include class Base { public: static void operator delete(void *p) {}; virtual ~Base() {}; }; class Middle : protected Base { public: ~Middle() {}; }; class Impl : protected Middle { public: using Middle::operator delete; }; int main() { Impl x; } ------------------------------------------------------------------------- g++ compiles this OK, but clang++ says: opdelete.cpp:14:7: error: no suitable member 'operator delete' in 'Impl' class Impl : protected Middle { ^ opdelete.cpp:16:17: note: member 'operator delete' declared here using Middle::operator delete; ^ opdelete.cpp:20:8: note: implicit default destructor for 'Impl' first required here Impl x; ^ 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 Tue Aug 3 16:56:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 16:56:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 7804] New: crash calling getSourceRange Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7804 Summary: crash calling getSourceRange Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Try calling getSourceRange() on every AST node in this short program: template class _Base> class __versa_string : private _Base<_CharT, _Traits, _Alloc> {}; The problem is the TemplateTemplateParmDecl which has a NULL TemplateDecl member. I don't think that's supposed to be possible. -- 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 Aug 3 17:14:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 17:14:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 7796] Unconditional gnu extension usage in stddef.h breaks VS2008 headers In-Reply-To: References: Message-ID: <20100803221408.A50A32A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7796 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2010-08-03 17:14:08 CDT --- Fixed in r110161 -- 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 Aug 3 19:31:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 19:31:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 7803] error: no suitable member 'operator delete' In-Reply-To: References: Message-ID: <20100804003145.CBA012A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7803 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John McCall 2010-08-03 19:31:45 CDT --- Fixed in r110173. -- 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 Aug 3 19:59:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 19:59:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 7805] New: Bad interaction with OpenMP Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7805 Summary: Bad interaction with OpenMP Product: dragonegg Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: luked at cs.rochester.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5316) --> (http://llvm.org/bugs/attachment.cgi?id=5316) g++-4.5.1 -fopenmp -S -O1 -fplugin= test.cx GCC's OpenMP code transformation, combined with -O1 and higher, creates a tree node that dragonegg is not expecting. $ gcc-4.5.1 -v Using built-in specs. COLLECT_GCC=gcc-4.5.1 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/opt/local --program-suffix=-4.5.1 --enable-languages=c,c++ --enable-shared --without-included-gettext --enable-threads=posix --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-checking=release --enable-plugin --enable-lto --enable-bootstrap Thread model: posix gcc version 4.5.1 (GCC) $ uname -a Linux node1x4x2a 2.6.28-18-generic #60-Ubuntu SMP Fri Mar 12 04:26:47 UTC 2010 x86_64 GNU/Linux $ g++-4.5.1 -fopenmp -S -O1 -fplugin=../dragonegg/dragonegg.so test.cxx unit size align 32 symtab 0 alias set 0 canonical type 0x7f59a41d0498 precision 32 min max pointer_to_this > used SI file test.cxx line 1 col 14 size unit size align 32 context > Not a gimple constant! UNREACHABLE executed at /home/luked/cgo/dragonegg/llvm-convert.cpp:5766! *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_FINISH_UNIT | dragonegg PLUGIN_FINISH | dragonegg PLUGIN_START_UNIT | dragonegg test.cxx: In function ?_Z3bari.omp_fn.0?: test.cxx:4:14: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- 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 Aug 3 20:07:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 20:07:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 7346] operator delete not seen in derived class In-Reply-To: References: Message-ID: <20100804010724.3ED102A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7346 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from John McCall 2010-08-03 20:07:23 CDT --- Fixed in r110175. -- 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 Aug 3 21:38:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 3 Aug 2010 21:38:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7806] New: MIC (Modified immediate constants) field is not honored in ARM JIT's Code emitter Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7806 Summary: MIC (Modified immediate constants) field is not honored in ARM JIT's Code emitter Product: libraries Version: trunk Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: sliao at google.com CC: llvmbugs at cs.uiuc.edu See the repro case in the attached file. The file is generated by "clang -emit-llvm -c "llvm_builtins.c" -o "llvm_builtins.bc". Then you can repro it using a simple testing JIT that parses the file as module, create EE from it and get function pointer from EE. See the highlighted instruction below. The JIT tried incorrectly to calculate the address for 0x100 + 0x404700e0 + 8 == 0x404701e8. But it's wrong, because in the "0x100", "1" is treated as rotating amount, according to A5.2.4 of the ARM Architecture Reference Manual. float Loop(float * inputs, float count) { float i = 0; do { float a = i * inputs[0]; // this is the offending statement a += i < count ? 1.0f : 0; // the selection causes it to load 0 or 1 from end of function by // doing something like: // 0x404700c0:e3a07000 b5 mov r7, #0 // 0x404700c4:eef40ac0 258 vcmpe.f32 s1, s0 // 0x404700c8:eef1fa10 70 vmrs apsr_nzcv, fpscr // 0x404700cc:e2411001 162 sub r1, r1, #1 // 0x404700d0:43a07001 b5 movmi r7, #1 // 0x404700d4:e3570000 54 cmp r7, #0 // 0x404700d8:e3a07000 b5 mov r7, #0 // 0x404700dc:13a07004 b5 movne r7, #4 //********0x404700e0:e28f8100 15 add r8, pc, #0 # The JIT tried incorrectly to jump to 0x100 + 0x404700e0 + 8 == 0x404701e8. But it's wrong, because for "0x100", "1" is treated as rotating amount, according to A5.2.4. // 0x404700e4:ed902a00 332 vldr.32 s4, [r0] // 0x404700e8:e3510000 54 cmp r1, #0 // 0x404700ec:e0887007 16 add r7, r8, r7 // 0x404700f0:edd71a00 332 vldr.32 s3, [r7] // // 0x404701e0:e8bd81f0 8a pop {r4, r5, r6, r7, r8, pc} * * ******* // 0x404701e4:0 1b andeq r0, r0, r0 // 0x404701e8:0 1b andeq r0, r0, r0 // 0x404701ec:3f800000 165 svclo #8388608 // 1.0f // 0x404701f0:3e99999a be mrclo p9, #4, r9, cr9, cr10, #4 // padding to make the body bigger than 256 bytes a += inputs[2 * (int)i]; a += inputs[3 * (int)i]; a -= inputs[4 * (int)i]; a += inputs[8 * (int)i]; a -= inputs[4 * (int)i]; a += inputs[8 * (int)i]; a -= inputs[9 * (int)i]; a += inputs[14 * (int)i]; a += inputs[22 * (int)i]; a += inputs[33 * (int)i]; a -= inputs[44 * (int)i]; a += inputs[28 * (int)i]; a -= inputs[34 * (int)i]; a += inputs[48 * (int)i]; a -= inputs[59 * (int)i]; inputs[(int)i] = a; i += 0.3f; } while (i < 0.922f); return i; } -- 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 Aug 4 01:57:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 01:57:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7807] New: Assertion failed: (false && "Type/value mismatch") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7807 Summary: Assertion failed: (false && "Type/value mismatch") Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: luc_j_bourhis at mac.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Revision: 110186 ~cctbxroot/cctbx_build_clang> clang++ -c ~/Desktop/clang-bug.cpp Assertion failed: (false && "Type/value mismatch"), function DeduceTemplateArguments, file SemaTemplateDeduction.cpp, line 871. 0 clang 0x01409168 PrintStackTrace(void*) + 40 1 clang 0x01409f47 SignalHandler(int) + 695 2 libSystem.B.dylib 0x9549f1fb _sigtramp + 43 3 libSystem.B.dylib 0xffffffff _sigtramp + 1790316079 4 libSystem.B.dylib 0x9552c62d raise + 26 5 libSystem.B.dylib 0x955426e4 abort + 93 6 libSystem.B.dylib 0x9552f28c __pthread_markcancel + 0 7 clang 0x004c6bc2 DeduceTemplateArguments(clang::Sema&, clang::TemplateParameterList*, clang::TemplateArgument const&, clang::TemplateArgument const&, clang::Sema::TemplateDeductionInfo&, llvm::SmallVectorImpl&) + 146 8 clang 0x004c3174 DeduceTemplateArguments(clang::Sema&, clang::TemplateParameterList*, clang::TemplateSpecializationType const*, clang::QualType, clang::Sema::TemplateDeductionInfo&, llvm::SmallVectorImpl&) + 980 9 clang 0x004c3a08 DeduceTemplateArguments(clang::Sema&, clang::TemplateParameterList*, clang::QualType, clang::QualType, clang::Sema::TemplateDeductionInfo&, llvm::SmallVectorImpl&, unsigned int) + 2040 10 clang 0x004cc39c clang::Sema::DeduceTemplateArguments(clang::FunctionTemplateDecl*, clang::TemplateArgumentListInfo const*, clang::Expr**, unsigned int, clang::FunctionDecl*&, clang::Sema::TemplateDeductionInfo&) + 1900 11 clang 0x00459937 clang::Sema::AddTemplateOverloadCandidate(clang::FunctionTemplateDecl*, clang::DeclAccessPair, clang::TemplateArgumentListInfo const*, clang::Expr**, unsigned int, clang::OverloadCandidateSet&, bool) + 279 12 clang 0x0045b3a7 clang::Sema::AddFunctionCandidates(clang::UnresolvedSetImpl const&, clang::Expr**, unsigned int, clang::OverloadCandidateSet&, bool) + 343 13 clang 0x004613d4 clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) + 1124 14 clang 0x004d4687 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::RebuildCXXOperatorCallExpr(clang::OverloadedOperatorKind, clang::SourceLocation, clang::ASTOwningPtr<&(clang::ActionBase::DeleteExpr(void*))>, clang::ASTOwningPtr<&(clang::ActionBase::DeleteExpr(void*))>, clang::ASTOwningPtr<&(clang::ActionBase::DeleteExpr(void*))>) + 599 15 clang 0x004db37b clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCXXOperatorCallExpr(clang::CXXOperatorCallExpr*) + 683 16 clang 0x004d78be clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 3806 17 clang 0x004f2635 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 1237 18 clang 0x004f2c9e clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*, bool) + 110 19 clang 0x004f2585 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 1061 20 clang 0x004f5171 clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) + 49 21 clang 0x005016bd clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool) + 1229 22 clang 0x0050108b clang::Sema::PerformPendingImplicitInstantiations(bool) + 507 23 clang 0x002e45e5 clang::Sema::ActOnEndOfTranslationUnit() + 37 24 clang 0x007ec09e clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 222 25 clang 0x002e2352 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 290 26 clang 0x00073ddd clang::ASTFrontendAction::ExecuteAction() + 157 27 clang 0x0029a379 clang::CodeGenAction::ExecuteAction() + 57 28 clang 0x0004f9fc clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 396 29 clang 0x000200c9 cc1_main(char const**, char const**, char const*, void*) + 3177 30 clang 0x0002748d main + 5101 31 clang 0x0001e1e9 start + 53 Stack dump: 0. Program arguments: /Users/luc/Developer/llvm/Release+Asserts/bin/clang -cc1 -triple i386-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name clang-bug.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -target-cpu yonah -resource-dir /Users/luc/Developer/llvm/Release+Asserts/lib/clang/2.8 -ferror-limit 19 -fmessage-length 104 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o clang-bug.o -x c++ /Users/luc/Desktop/clang-bug.cpp 1. parser at end of file 2. /Users/luc/Developer/cctbx/cctbx_project/scitbx/array_family/simple_tiny_io.h:11:3: instantiating function definition 'scitbx::af::operator<<' clang: error: clang frontend command failed due to signal 6 (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 Aug 4 03:35:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 03:35:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 5962] rtti regression In-Reply-To: References: Message-ID: <20100804083512.7CB702A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5962 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #3 from John McCall 2010-08-04 03:35:11 CDT --- Fixed in r110192. -- 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 Aug 4 04:16:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 04:16:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 7808] New: method visibility ignored Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7808 Summary: method visibility ignored Product: clang Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jtraue at informatik.tu-cottbus.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5319) --> (http://llvm.org/bugs/attachment.cgi?id=5319) demo code The following code compiles with clang++ although a private method is called. g++ reports the following error: main.cc: In function ?int main(int, char**)?: main.cc:16: error: ?int Test::bar()? is private main.cc:28: error: within this context -- 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 Aug 4 04:18:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 04:18:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 7808] method visibility ignored In-Reply-To: References: Message-ID: <20100804091836.8C9172A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7808 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-08-04 04:18:36 CDT --- This is fixed in top-of-tree Clang, in Subversion. -- 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 Aug 4 10:22:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 10:22:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 7809] New: llvm/Config/config.h pollutes user namespace Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7809 Summary: llvm/Config/config.h pollutes user namespace 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: jdenny at etinternational.com CC: llvmbugs at cs.uiuc.edu The LLVM headers llvm-c/Target.h and llvm/Target/TargetSelect.h include the header llvm/Config/config.h, which defines common macros, such as PACKAGE_BUGREPORT. If a project that uses LLVM includes any of these headers, the project's own macros of the same names can be redefined. Most advice I have seen says that installed headers should never define such common macros. Thus, an internal config.h should never be installed: http://stackoverflow.com/questions/1810216/autoconf-where-does-config-h-go http://lists.gnu.org/archive/html/autoconf/2004-09/msg00151.html Would you please consider replacing the current llvm/Config/config.h with a trimmed down version that contains only the definitions that must be present in LLVM's installed headers? PACKAGE_* macros certainly do not need to be there. -- 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 Aug 4 11:12:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 11:12:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7810] New: Clang rejects const-qualified parameter type for operator delete Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7810 Summary: Clang rejects const-qualified parameter type for operator delete Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: llvmbugs at contacts.eelis.net CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Consider: void operator delete(void* const); GCC 4.5.0 and Comeau 4.3.10.1 both accept this code, but Clang (r110197) complains: error: 'operator delete' takes type 'void *' as first parameter -- 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 Aug 4 12:00:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 12:00:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 7809] llvm/Config/config.h pollutes user namespace In-Reply-To: References: Message-ID: <20100804170035.9592D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7809 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clattner at apple.com Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-08-04 12:00:35 CDT --- This is behaving correctly. No public LLVM headers should be including config.h, so it shouldn't impact external code. -- 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 Aug 4 12:13:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 12:13:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 7811] New: Linker (llvm-ld) lose debug information on global variables even without optimizations enabled Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7811 Summary: Linker (llvm-ld) lose debug information on global variables even without optimizations enabled Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Linker AssignedTo: unassignedbugs at nondot.org ReportedBy: quickslyver at free.fr CC: llvmbugs at cs.uiuc.edu Reproducer: $cat bug.c int a; $clang -c -emit-llvm -g -O0 bug.c -o bug.bc $llvm-ld -no-shell-script bug.bc -v -disable-inlining -disable-opt -b linked.bc $llvm-dis bug.bc && llvm-dis linked.bc $cat bug.ll [...cut...] !0 = metadata !{i32 524340, i32 0, metadata !1, metadata !"a", metadata !"a", metadata !"a", metadata !1, i32 1, metadata !3, i1 false, i1 true, i32* @a} ; [ DW_TAG_variable ] [...cut...] $ cat linked.ll [...cut...] !0 = metadata !{i32 524340, i32 0, metadata !1, metadata !"a", metadata !"a", metadata !"a", metadata !1, i32 1, metadata !3, i1 false, i1 true, null} ; [ DW_TAG_variable ] [...cut...] ------------------------------------------------ "i32* @a" is replaced by "null". Is there some "hidden" optimizations even with "-disable-inlining -disable-opt" because if I use "llvm-link" instead of "llvm-ld" there is not this bug. -- 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 Aug 4 12:14:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 12:14:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7809] llvm/Config/config.h pollutes user namespace In-Reply-To: References: Message-ID: <20100804171446.EE3422A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7809 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |ofv at wanadoo.es Resolution|INVALID | --- Comment #2 from ?scar Fuentes 2010-08-04 12:14:46 CDT --- Target/TargetSelect.h is a public LLVM library. It must be #included because of the requirement of calling InitializeNativeTarget before using the JIT. See examples/HowToUseJIT/HowToUseJIT.cpp. Target/TargetSelect.h includes Config/config.h. I suppose that llvm-c/Target.h is a similar 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 Aug 4 15:14:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 15:14:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 7813] New: "Cannot yet select" error when using Gallium (Mesa master) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7813 Summary: "Cannot yet select" error when using Gallium (Mesa master) 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: steckdenis at logram-project.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5322) --> (http://llvm.org/bugs/attachment.cgi?id=5322) LLVM's SelectionDAG when trying to run Neverball with r300g Hello, I use LLVM svn 110215 and Clang svn 110239 to compile my programs, and to try to run 3D applications using the r300g ATI driver from the Mesa project. Mesa uses LLVM to do runtime code generation. My problem is that it fails for about four months with a "Cannot yet select" error. I attached the output produced by LLVM (lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:2562) to this bug. If I recall correctly, I was never able to launch any 3D app on my computer using the r300g driver. I use an AMD Athlon L110 processor, with MMX, 3DNOW, SSE and SSE2 (no SSE3), in X86_64 mode. I also attached my /proc/cpuinfo file. I run Linux 2.6.35 on ArchLinux. My graphics card is an ATI Radeon X1270 (RS690). Uname -a : Linux my-laptop 2.6.35 #11 SMP PREEMPT Wed Aug 4 11:47:54 CEST 2010 x86_64 AMD Athlon(tm) Processor L110 AuthenticAMD GNU/Linux 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 Wed Aug 4 15:37:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 15:37:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7814] New: possible integer wrong code bug on x64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7814 Summary: possible integer wrong code bug on x64 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, jxyang at cs.utah.edu regehr at gamow work017]$ clang -O1 small.c -o small [regehr at gamow work017]$ ./small 0 [regehr at gamow work017]$ clang -O2 small.c -o small [regehr at gamow work017]$ ./small 1 [regehr at gamow work017]$ clang -v clang version 2.8 (trunk 110207) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at gamow work017]$ cat small.c extern int printf (__const char *__restrict __format, ...); unsigned short foo (unsigned short ui1, unsigned short ui2) { return ui1 * ui2; } signed char bar (signed char left, int right) { return ((left < 0) || (right < 0) || (right >= 32))? left : (left >> right); } long g_16 = 0xCC1DAB9737E0D1B7LL; int g_37 = -1L; int g_38 = 0; unsigned long g_381 = -1L; void func_19 (long p_21) { int x = foo (1L && g_16, p_21); if (0 < bar (x, 0)) { g_38 = 1; } } int main(void) { func_19 (0x2EA21E1D82C32B96LL); printf("%d\n", g_38); 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 Wed Aug 4 15:43:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 15:43:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 7815] New: 'x' is always zero in this context should not apply to LHS of assignment Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7815 Summary: 'x' is always zero in this context should not apply to LHS of assignment Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, jyasskin at google.com This program emits an unexpected warning: int f(); void test() { if (int x = f()) { x = 1; // ok } else { x = 2; // warning: 'x' is always zero in this context } } There's no reason to warn about the left-hand side of the expression being zero, its value isn't really relevant. -- 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 Aug 4 15:44:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 15:44:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 7816] New: make check: x86 tests when configured with host-only on PPC Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7816 Summary: make check: x86 tests when configured with host-only on PPC 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: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu make check on LLVM configured with--enable-targets=host-only on ppc shows lots of failures related to missing X86 backend. ******************** TEST 'LLVM :: CodeGen/X86/GC/simple_ocaml.ll' FAILED ******************** Script: -- llc < /Users/acab/llvm/test/CodeGen/X86/GC/simple_ocaml.ll | grep caml.*__frametable llc < /Users/acab/llvm/test/CodeGen/X86/GC/simple_ocaml.ll -march=x86 | grep {movl .0} -- Exit Code: 1 Command Output (stdout): -- .globl "_caml__frametable" "_caml__frametable": -- Command Output (stderr): -- llc: error: invalid target 'x86'. -- ******************** FAIL: LLVM :: DebugInfo/2010-01-18-DbgValue.ll (2902 of 5470) ******************** TEST 'LLVM :: DebugInfo/2010-01-18-DbgValue.ll' FAILED ******************** Script: -- llc -O0 < /Users/acab/llvm/test/DebugInfo/2010-01-18-DbgValue.ll | FileCheck /Users/acab/llvm/test/DebugInfo/2010-01-18-DbgValue.ll -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. /Users/acab/llvm/test/DebugInfo/2010-01-18-DbgValue.ll:14:9: error: expected string not found in input ;CHECK: DEBUG_VALUE ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: DebugInfo/2010-02-01-DbgValueCrash.ll (2904 of 5470) ******************** TEST 'LLVM :: DebugInfo/2010-02-01-DbgValueCrash.ll' FAILED ******************** Script: -- llc -O1 < /Users/acab/llvm/test/DebugInfo/2010-02-01-DbgValueCrash.ll -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** FAIL: LLVM :: DebugInfo/2010-05-25-DotDebugLoc.ll (2916 of 5470) ******************** TEST 'LLVM :: DebugInfo/2010-05-25-DotDebugLoc.ll' FAILED ******************** Script: -- llc -O2 < /Users/acab/llvm/test/DebugInfo/2010-05-25-DotDebugLoc.ll -mtriple=x86_64-apple-darwin | grep debug_loc12 -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** FAIL: LLVM :: DebugInfo/2010-05-28-Crash.ll (2917 of 5470) ******************** TEST 'LLVM :: DebugInfo/2010-05-28-Crash.ll' FAILED ******************** Script: -- llc -mtriple=x86_64-apple-darwin < /Users/acab/llvm/test/DebugInfo/2010-05-28-Crash.ll | FileCheck /Users/acab/llvm/test/DebugInfo/2010-05-28-Crash.ll -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. /Users/acab/llvm/test/DebugInfo/2010-05-28-Crash.ll:42:9: error: expected string not found in input ;CHECK: DEBUG_VALUE: bar:x <- EBX+0 ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: DebugInfo/2010-06-01-DeadArg-DbgInfo.ll (2918 of 5470) ******************** TEST 'LLVM :: DebugInfo/2010-06-01-DeadArg-DbgInfo.ll' FAILED ******************** Script: -- llc -O2 < /Users/acab/llvm/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll | FileCheck /Users/acab/llvm/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. /Users/acab/llvm/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll:10:9: error: expected string not found in input ;CHECK: DEBUG_VALUE: baz:this <- RDI+0 ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: DebugInfo/2010-08-04-StackVariable.ll (2921 of 5470) ******************** TEST 'LLVM :: DebugInfo/2010-08-04-StackVariable.ll' FAILED ******************** Script: -- llc -O0 < /Users/acab/llvm/test/DebugInfo/2010-08-04-StackVariable.ll | grep DW_OP_fbreg -- Exit Code: 1 Command Output (stderr): -- Assertion failed: (unsigned(ScopeIdx) <= Ctx.pImpl->ScopeRecords.size() && "Invalid ScopeIdx!"), function getScope, file DebugLoc.cpp, line 25. 0 llc 0x008e4cd4 llvm::SearchForAddressOfSpecialSymbol(char const*) + 704 1 llc 0x008e526c llvm::sys::RunInterruptHandlers() + 456 2 libSystem.B.dylib 0x92f639fc _sigtramp + 68 3 libSystem.B.dylib 0xbfffed40 _sigtramp + 755610504 4 libSystem.B.dylib 0xbfffede8 _sigtramp + 755610672 Stack dump: 0. Program arguments: llc -O0 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'Darwin PPC Assembly Printer' on function '@main' -- ******************** FAIL: LLVM :: MC/AsmParser/assignment.s (3716 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/assignment.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/assignment.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/assignment.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/assignment.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/conditional_asm.s (3717 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/conditional_asm.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/conditional_asm.s -I /Users/acab/llvm/test/MC/AsmParser | FileCheck /Users/acab/llvm/test/MC/AsmParser/conditional_asm.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/conditional_asm.s:3:10: error: expected string not found in input # CHECK: .byte 2 ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_abort.s (3718 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_abort.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_abort.s 2> /Users/acab/llvm/test/MC/AsmParser/Output/directive_abort.s.tmp FileCheck -input-file /Users/acab/llvm/test/MC/AsmParser/Output/directive_abort.s.tmp /Users/acab/llvm/test/MC/AsmParser/directive_abort.s -- Exit Code: 1 ******************** FAIL: LLVM :: MC/AsmParser/directive_align.s (3719 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_align.s' FAILED ******************** Script: -- llvm-mc -triple i386-apple-darwin9 /Users/acab/llvm/test/MC/AsmParser/directive_align.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_align.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-apple-darwin9', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_align.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_ascii.s (3720 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_ascii.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_ascii.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_ascii.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_ascii.s:4:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_comm.s (3721 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_comm.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_comm.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_comm.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_comm.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_darwin_section.s (3722 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_darwin_section.s' FAILED ******************** Script: -- llvm-mc -triple i386-apple-darwin9 /Users/acab/llvm/test/MC/AsmParser/directive_darwin_section.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_darwin_section.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-apple-darwin9', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_darwin_section.s:3:10: error: expected string not found in input # CHECK: .section __DWARF,__debug_frame,regular,debug ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_desc.s (3723 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_desc.s' FAILED ******************** Script: -- llvm-mc -triple i386-apple-darwin9 /Users/acab/llvm/test/MC/AsmParser/directive_desc.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_desc.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-apple-darwin9', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_desc.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_elf_size.s (3724 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_elf_size.s' FAILED ******************** Script: -- llvm-mc -triple i386-pc-linux-gnu /Users/acab/llvm/test/MC/AsmParser/directive_elf_size.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_elf_size.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-pc-linux-gnu', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_elf_size.s:6:10: error: expected string not found in input # CHECK: .size a, .Lt-a ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_file.s (3725 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_file.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_file.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_file.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_file.s:6:10: error: expected string not found in input # CHECK: .file "hello" ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_fill.s (3726 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_fill.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_fill.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_fill.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_fill.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_include.s (3727 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_include.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_include.s -I /Users/acab/llvm/test/MC/AsmParser | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_include.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_include.s:3:10: error: expected string not found in input # CHECK: TESTA: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_lcomm.s (3728 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_lcomm.s' FAILED ******************** Script: -- llvm-mc -triple i386-apple-darwin10 /Users/acab/llvm/test/MC/AsmParser/directive_lcomm.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_lcomm.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-apple-darwin10', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_lcomm.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_line.s (3729 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_line.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_line.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. -- ******************** FAIL: LLVM :: MC/AsmParser/directive_loc.s (3730 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_loc.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_loc.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. -- ******************** FAIL: LLVM :: MC/AsmParser/directive_org.s (3732 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_org.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_org.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_org.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_org.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_set.s (3733 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_set.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_set.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_set.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_set.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_space.s (3734 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_space.s' FAILED ******************** Script: -- llvm-mc -triple i386-apple-darwin /Users/acab/llvm/test/MC/AsmParser/directive_space.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_space.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-apple-darwin', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_space.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_subsections_via_symbols.s (3735 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_subsections_via_symbols.s' FAILED ******************** Script: -- llvm-mc -triple i386-apple-darwin9 /Users/acab/llvm/test/MC/AsmParser/directive_subsections_via_symbols.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_subsections_via_symbols.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-apple-darwin9', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_subsections_via_symbols.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_symbol_attrs.s (3736 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_symbol_attrs.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_symbol_attrs.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_symbol_attrs.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_symbol_attrs.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_tbss.s (3737 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_tbss.s' FAILED ******************** Script: -- llvm-mc -triple x86_64-unknown-darwin /Users/acab/llvm/test/MC/AsmParser/directive_tbss.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_tbss.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'x86_64-unknown-darwin', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_tbss.s:3:10: error: expected string not found in input # CHECK: .tbss _a$tlv$init, 4 ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_tdata.s (3738 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_tdata.s' FAILED ******************** Script: -- llvm-mc -triple x86_64-unknown-darwin /Users/acab/llvm/test/MC/AsmParser/directive_tdata.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_tdata.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'x86_64-unknown-darwin', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_tdata.s:3:10: error: expected string not found in input # CHECK: __DATA,__thread_data,thread_local_regular ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_thread_init_func.s (3739 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_thread_init_func.s' FAILED ******************** Script: -- llvm-mc -triple x86_64-unknown-darwin /Users/acab/llvm/test/MC/AsmParser/directive_thread_init_func.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_thread_init_func.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'x86_64-unknown-darwin', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_thread_init_func.s:3:10: error: expected string not found in input # CHECK: __DATA,__thread_init,thread_local_init_function_pointers ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_tlv.s (3740 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_tlv.s' FAILED ******************** Script: -- llvm-mc -triple x86_64-unknown-darwin /Users/acab/llvm/test/MC/AsmParser/directive_tlv.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_tlv.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'x86_64-unknown-darwin', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_tlv.s:3:10: error: expected string not found in input # CHECK: __DATA,__thread_vars,thread_local_variables ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_values.s (3741 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_values.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/directive_values.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_values.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_values.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/directive_zerofill.s (3742 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/directive_zerofill.s' FAILED ******************** Script: -- llvm-mc -triple i386-apple-darwin9 /Users/acab/llvm/test/MC/AsmParser/directive_zerofill.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/directive_zerofill.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-apple-darwin9', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/directive_zerofill.s:3:10: error: expected string not found in input # CHECK: TEST0: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/exprs.s (3744 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/exprs.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/exprs.s > /Users/acab/llvm/test/MC/AsmParser/Output/exprs.s.tmp -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. -- ******************** FAIL: LLVM :: MC/AsmParser/hello.s (3745 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/hello.s' FAILED ******************** Script: -- llvm-mc -triple i386-apple-darwin9 /Users/acab/llvm/test/MC/AsmParser/hello.s -o - llvm-mc -triple i386-apple-darwin9 /Users/acab/llvm/test/MC/AsmParser/hello.s -o - -output-asm-variant=1 -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-apple-darwin9', see --version and --triple. -- ******************** FAIL: LLVM :: MC/AsmParser/labels.s (3746 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/labels.s' FAILED ******************** Script: -- llvm-mc -triple i686-apple-darwin10 /Users/acab/llvm/test/MC/AsmParser/labels.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/labels.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i686-apple-darwin10', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/labels.s:4:11: error: expected string not found in input // CHECK: a: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/macro-def-in-instantiation.s (3747 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/macro-def-in-instantiation.s' FAILED ******************** Script: -- llvm-mc -triple x86_64-apple-darwin10 /Users/acab/llvm/test/MC/AsmParser/macro-def-in-instantiation.s | FileCheck /Users/acab/llvm/test/MC/AsmParser/macro-def-in-instantiation.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'x86_64-apple-darwin10', see --version and --triple. /Users/acab/llvm/test/MC/AsmParser/macro-def-in-instantiation.s:12:11: error: expected string not found in input // CHECK: .byte 10 ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/macros-parsing.s (3748 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/macros-parsing.s' FAILED ******************** Script: -- not llvm-mc -triple x86_64-apple-darwin10 /Users/acab/llvm/test/MC/AsmParser/macros-parsing.s 2> /Users/acab/llvm/test/MC/AsmParser/Output/macros-parsing.s.tmp.err FileCheck --check-prefix=CHECK-ERRORS /Users/acab/llvm/test/MC/AsmParser/macros-parsing.s < /Users/acab/llvm/test/MC/AsmParser/Output/macros-parsing.s.tmp.err -- Exit Code: 1 Command Output (stderr): -- /Users/acab/llvm/test/MC/AsmParser/macros-parsing.s:8:18: error: expected string not found in input // CHECK-ERRORS: 9:1: warning: ignoring directive for now ^ :1:1: note: scanning from here llvm-mc: error: unable to get target for 'x86_64-apple-darwin10', see --version and --triple. ^ :1:5: note: possible intended match here llvm-mc: error: unable to get target for 'x86_64-apple-darwin10', see --version and --triple. ^ -- ******************** FAIL: LLVM :: MC/AsmParser/macros.s (3749 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/macros.s' FAILED ******************** Script: -- llvm-mc -triple x86_64-apple-darwin10 /Users/acab/llvm/test/MC/AsmParser/macros.s 2> /Users/acab/llvm/test/MC/AsmParser/Output/macros.s.tmp.err | FileCheck /Users/acab/llvm/test/MC/AsmParser/macros.s FileCheck --check-prefix=CHECK-ERRORS /Users/acab/llvm/test/MC/AsmParser/macros.s < /Users/acab/llvm/test/MC/AsmParser/Output/macros.s.tmp.err -- Exit Code: 1 Command Output (stderr): -- /Users/acab/llvm/test/MC/AsmParser/macros.s:31:11: error: expected string not found in input // CHECK: .globl "1 23 $3 2" ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: MC/AsmParser/variables-invalid.s (3750 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/variables-invalid.s' FAILED ******************** Script: -- not llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/variables-invalid.s 2> /Users/acab/llvm/test/MC/AsmParser/Output/variables-invalid.s.tmp FileCheck --input-file /Users/acab/llvm/test/MC/AsmParser/Output/variables-invalid.s.tmp /Users/acab/llvm/test/MC/AsmParser/variables-invalid.s -- Exit Code: 1 Command Output (stderr): -- /Users/acab/llvm/test/MC/AsmParser/variables-invalid.s:5:11: error: expected string not found in input // CHECK: invalid assignment to 't0_v0' ^ /Users/acab/llvm/test/MC/AsmParser/Output/variables-invalid.s.tmp:1:1: note: scanning from here llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. ^ /Users/acab/llvm/test/MC/AsmParser/Output/variables-invalid.s.tmp:1:70: note: possible intended match here llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. ^ -- ******************** FAIL: LLVM :: MC/AsmParser/variables.s (3751 of 5470) ******************** TEST 'LLVM :: MC/AsmParser/variables.s' FAILED ******************** Script: -- llvm-mc -triple i386-unknown-unknown /Users/acab/llvm/test/MC/AsmParser/variables.s -- Exit Code: 1 Command Output (stderr): -- llvm-mc: error: unable to get target for 'i386-unknown-unknown', see --version and --triple. -- ******************** FAIL: LLVM :: Other/inline-asm-newline-terminator.ll (3823 of 5470) ******************** TEST 'LLVM :: Other/inline-asm-newline-terminator.ll' FAILED ******************** Script: -- llc -filetype=obj -o - < /Users/acab/llvm/test/Other/inline-asm-newline-terminator.ll -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** FAIL: LLVM :: Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll (4781 of 5470) ******************** TEST 'LLVM :: Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll' FAILED ******************** Script: -- llc -march=x86-64 < /Users/acab/llvm/test/Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll -o - | grep {cmpl \\$\[1\], %} -- Exit Code: 1 Command Output (stderr): -- llc: error: invalid target 'x86-64'. -- ******************** FAIL: LLVM :: Transforms/LoopStrengthReduce/2009-02-09-ivs-different-sizes.ll (4786 of 5470) ******************** TEST 'LLVM :: Transforms/LoopStrengthReduce/2009-02-09-ivs-different-sizes.ll' FAILED ******************** Script: -- llc < /Users/acab/llvm/test/Transforms/LoopStrengthReduce/2009-02-09-ivs-different-sizes.ll -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** FAIL: LLVM :: Transforms/LoopStrengthReduce/2009-11-10-LSRCrash.ll (4788 of 5470) ******************** TEST 'LLVM :: Transforms/LoopStrengthReduce/2009-11-10-LSRCrash.ll' FAILED ******************** Script: -- llc < /Users/acab/llvm/test/Transforms/LoopStrengthReduce/2009-11-10-LSRCrash.ll -mtriple=i386-apple-darwin11 -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** FAIL: LLVM :: Transforms/LoopStrengthReduce/change-compare-stride-trickiness-0.ll (4789 of 5470) ******************** TEST 'LLVM :: Transforms/LoopStrengthReduce/change-compare-stride-trickiness-0.ll' FAILED ******************** Script: -- llc < /Users/acab/llvm/test/Transforms/LoopStrengthReduce/change-compare-stride-trickiness-0.ll -o - | FileCheck /Users/acab/llvm/test/Transforms/LoopStrengthReduce/change-compare-stride-trickiness-0.ll -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. /Users/acab/llvm/test/Transforms/LoopStrengthReduce/change-compare-stride-trickiness-0.ll:8:10: error: expected string not found in input ; CHECK: foo: ^ :1:1: note: scanning from here ^ -- ******************** FAIL: LLVM :: Transforms/LoopStrengthReduce/change-compare-stride-trickiness-1.ll (4790 of 5470) ******************** TEST 'LLVM :: Transforms/LoopStrengthReduce/change-compare-stride-trickiness-1.ll' FAILED ******************** Script: -- llc /Users/acab/llvm/test/Transforms/LoopStrengthReduce/change-compare-stride-trickiness-1.ll -o - --x86-asm-syntax=att | grep {cmp. \$10} -- Exit Code: 1 Command Output (stderr): -- llc: Unknown command line argument '--x86-asm-syntax=att'. Try: 'llc -help' -- ******************** FAIL: LLVM :: Transforms/LoopStrengthReduce/change-compare-stride-trickiness-2.ll (4791 of 5470) ******************** TEST 'LLVM :: Transforms/LoopStrengthReduce/change-compare-stride-trickiness-2.ll' FAILED ******************** Script: -- llc < /Users/acab/llvm/test/Transforms/LoopStrengthReduce/change-compare-stride-trickiness-2.ll -- Exit Code: 1 Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** FAIL: LLVM :: Transforms/LoopStrengthReduce/insert-positions.ll (4800 of 5470) ******************** TEST 'LLVM :: Transforms/LoopStrengthReduce/insert-positions.ll' FAILED ******************** Script: -- llc < /Users/acab/llvm/test/Transforms/LoopStrengthReduce/insert-positions.ll -march=x86-64 >/dev/null -- Exit Code: 1 Command Output (stderr): -- llc: error: invalid target 'x86-64'. -- ******************** FAIL: LLVM :: Transforms/TailDup/if-tail-dup.ll (5177 of 5470) ******************** TEST 'LLVM :: Transforms/TailDup/if-tail-dup.ll' FAILED ******************** Script: -- opt < /Users/acab/llvm/test/Transforms/TailDup/if-tail-dup.ll -tailduplicate | llc -march=x86 -o /Users/acab/llvm/test/Transforms/TailDup/Output/if-tail-dup.ll.tmp grep {\\\} /Users/acab/llvm/test/Transforms/TailDup/Output/if-tail-dup.ll.tmp not grep jmp /Users/acab/llvm/test/Transforms/TailDup/Output/if-tail-dup.ll.tmp -- Exit Code: 1 Command Output (stderr): -- llc: error: invalid target 'x86'. -- ******************** -- 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 Aug 4 15:47:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 15:47:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 7815] 'x' is always zero in this context should not apply to LHS of assignment In-Reply-To: References: Message-ID: <20100804204718.A45642A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7815 Jeffrey Yasskin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Jeffrey Yasskin 2010-08-04 15:47:18 CDT --- *** This bug has been marked as a duplicate of bug 7100 *** -- 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 Aug 4 16:16:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 16:16:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 7817] New: Members of anonymous shall be unique in its scope Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7817 Summary: Members of anonymous shall be unique in its scope Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: schaub-johannes at web.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Clang accepts this: int main() { class f { }; union { int f; }; } But the C++ Standard at 9.5[class.union]p2 says "The names of the members of an anonymous union shall be distinct from the names of any other entity in the scope in which the anonymous union is declared." -- 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 Aug 4 17:41:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 17:41:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 7814] possible integer wrong code bug on x64 In-Reply-To: References: Message-ID: <20100804224121.AA0242A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7814 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2010-08-04 17:41:21 CDT --- Fixed in r110268. -- 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 Aug 4 19:14:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 19:14:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 7821] New: llc crashes on an unimplemented constant expression Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7821 Summary: llc crashes on an unimplemented constant expression 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: actong88 at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5328) --> (http://llvm.org/bugs/attachment.cgi?id=5328) test case Constant expressions in the form of a pointer to integer and then back to pointer conversion, where the integer size does not match the pointer size, cause llc to crash. Output from compiling the attached test case on a 64bit machine: $ ~/src/llvm/Debug+Asserts/bin/llc test.bc i64 zext (i32 ptrtoint (i32* @val to i32) to i64) FIXME: Don't support this constant expr UNREACHABLE executed at AsmPrinter.cpp:1268! 0 llc 0x0000000001308c78 1 llc 0x0000000001308b3c 2 libpthread.so.0 0x00007f5fded278f0 3 libc.so.6 0x00007f5fde016a75 gsignal + 53 4 libc.so.6 0x00007f5fde01a5c0 abort + 384 5 llc 0x00000000012e51d1 6 llc 0x0000000000eb8ee8 7 llc 0x0000000000eb9136 8 llc 0x0000000000eba5ef 9 llc 0x0000000000eba68d llvm::AsmPrinter::EmitGlobalConstant(llvm::Constant const*, unsigned int) + 109 10 llc 0x0000000000eb4754 llvm::AsmPrinter::EmitGlobalVariable(llvm::GlobalVariable const*) + 2656 11 llc 0x0000000000eb66d6 llvm::AsmPrinter::doFinalization(llvm::Module&) + 164 12 llc 0x000000000127b6ae llvm::FPPassManager::doFinalization(llvm::Module&) + 76 13 llc 0x000000000127b5be llvm::FPPassManager::runOnModule(llvm::Module&) + 156 14 llc 0x000000000127b8bb llvm::MPPassManager::runOnModule(llvm::Module&) + 459 15 llc 0x000000000127bdfb llvm::PassManagerImpl::run(llvm::Module&) + 125 16 llc 0x000000000127c307 llvm::PassManager::run(llvm::Module&) + 39 17 llc 0x00000000009a7e64 main + 2266 18 libc.so.6 0x00007f5fde001c4d __libc_start_main + 253 19 llc 0x00000000009a6c89 Stack dump: 0. Program arguments: /home/actong/src/llvm/Debug+Asserts/bin/llc test.bc 1. Running pass 'Function Pass Manager' on module 'test.bc'. 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 Wed Aug 4 19:35:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 19:35:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 7790] ARM disassembler disassembles rrx as rrx #0 In-Reply-To: References: Message-ID: <20100805003537.AE9E02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7790 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bob Wilson 2010-08-04 19:35:37 CDT --- Nice catch! I guess we've never generated an rrx operand, because the Darwin assembler won't accept "rrx #0". Fixed in svn 110292. -- 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 Aug 4 19:45:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 19:45:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 7810] Clang rejects const-qualified parameter type for operator delete In-Reply-To: References: Message-ID: <20100805004554.EDBD62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7810 Sebastian Redl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sebastian.redl at getdesigned. | |at Resolution| |FIXED --- Comment #1 from Sebastian Redl 2010-08-04 19:45:54 CDT --- Fixed in r110294. -- 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 Aug 4 19:54:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 19:54:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 7822] New: vmkit: lazy compilation fails when triggered from AOT compiled code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7822 Summary: vmkit: lazy compilation fails when triggered from AOT compiled code Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: actong88 at gmail.com CC: llvmbugs at cs.uiuc.edu Using the default J3 lazy compiler, AOT compiled code that calls a stub and triggers a lazy compilation will crash vmkit. The problem appears to be that the J3 lazy compiler uses debug information of the caller of the stub to determine the constant pool entry that corresponds with the stubbed method. AOT compiled code is missing this debug information, which causes vmkit to crash. Test case I've been using is trying to run the dacapo benchmarks (www.dacapobench.org). Run the following with a precompiled libvmjc.so: $ CLASSPATH=dacapo-9.12-bach.jar vmkit -java Harness -l I received a SIGSEGV: either the VM code or an external native method is bogus. Aborting... Segmentation fault $ Using the LLVM lazy compiler works (as does running without libvmjc.so): $ CLASSPATH=dacapo-9.12-bach.jar vmkit -llvm-lazy -java Harness -l avrora batik eclipse fop h2 jython luindex lusearch pmd sunflow tomcat tradebeans tradesoap xalan $ -- 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 Aug 4 20:21:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 20:21:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7801] Unallowed cast from incomplete type to void* In-Reply-To: References: Message-ID: <20100805012152.7E5662A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7801 Sebastian Redl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Sebastian Redl 2010-08-04 20:21:52 CDT --- Modifying isObjectType didn't break any regression tests, so I just did it. Fixed in r110295. -- 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 Aug 4 20:23:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 4 Aug 2010 20:23:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 7817] Members of anonymous unions shall be unique in their scope In-Reply-To: References: Message-ID: <20100805012343.28B282A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7817 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2010-08-04 20:23:42 CDT --- A class isn't an "entity"; see [basic]. -- 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 Aug 5 01:29:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 01:29:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 7100] "'var' is always NULL in this context" warning doesn't do enough data flow to know that; fires in embarrassing ways. In-Reply-To: References: Message-ID: <20100805062900.6AB982A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7100 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |nicholas at mxc.ca Resolution| |FIXED --- Comment #8 from Nick Lewycky 2010-08-05 01:28:59 CDT --- Removed in r110314. The testcase had some excellent examples of things we really ought to warn for. -- 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 Aug 5 01:40:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 01:40:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 7823] New: warn on use of variable in else clause Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7823 Summary: warn on use of variable in else clause Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu We'd like to warn on uses of the 'tested-as-zero-value' variable declared inside an if-statement. For example: if (x = test()) { ... } else { doSomething(x); } should issue a warning. However, this requires dataflow to do correctly: if (x = test()) { ... } else { x = test2(); doSomething(x); } should not issue a warning. Even more evil: if (x = test()) { ... goto label; } else { label: doSomething(x); } shouldn't issue a warning either. Please see bug 7100 for issues with the previous implementation of this warning and test/SemaCXX/warn-for-var-in-else.cpp for more examples we should warn about. ( http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-for-var-in-else.cpp?revision=91446&view=markup&pathrev=110313 ) -- 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 Aug 5 02:32:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 02:32:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 7824] New: Warning improvement for cv-qualified free functions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7824 Summary: Warning improvement for cv-qualified free functions Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ace2001ac at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Currently if you have a cv-qualified free function, you get the following warning: t.cpp:20:6: error: type qualifier is not allowed on this function void foo() const {} ^ The ^ points at the function name rather than at the const, which it is really complaining about. The text could also be improved to say: const qualifier is not allowed on this function or volatile qualifier is not allowed on this function or const volatile qualifier is not allowed on this function I imagine the errors for & and && in C++0x would be similar. -- 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 Aug 5 03:26:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 03:26:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 7825] New: Linear Scan Register Allocator expensive checks crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7825 Summary: Linear Scan Register Allocator expensive checks crash Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5330) --> (http://llvm.org/bugs/attachment.cgi?id=5330) testcase .ll When built with expensive checks enabled, I see the following with the attached testcase: $ llc regex.bc /usr/include/c++/4.4/debug/safe_iterator.h:460:error: attempt to compare a singular iterator to a singular iterator. Objects involved in the operation: iterator "lhs" @ 0x0x7fff7e091720 { type = N11__gnu_debug14_Safe_iteratorISt23_Rb_tree_const_iteratorISt4pairIKPN4llvm12MachineInstrES2_IjNS3_10VirtRegMap6ModRefEEEENSt7__debug8multimapIS5_S9_St4lessIS5_ESaISA_EEEEE (constant iterator); state = singular; references sequence with type `NSt7__debug8multimapIPN4llvm12MachineInstrESt4pairIjNS1_10VirtRegMap6ModRefEESt4lessIS3_ESaIS4_IKS3_S7_EEEE' @ 0x0x7fff7e091720 } iterator "rhs" @ 0x0x7fff7e0916f0 { type = N11__gnu_debug14_Safe_iteratorISt23_Rb_tree_const_iteratorISt4pairIKPN4llvm12MachineInstrES2_IjNS3_10VirtRegMap6ModRefEEEENSt7__debug8multimapIS5_S9_St4lessIS5_ESaISA_EEEEE (constant iterator); state = singular; references sequence with type `NSt7__debug8multimapIPN4llvm12MachineInstrESt4pairIjNS1_10VirtRegMap6ModRefEESt4lessIS3_ESaIS4_IKS3_S7_EEEE' @ 0x0x7fff7e0916f0 } 0 llc 0x000000000187aab7 1 llc 0x000000000187a97b 2 libc.so.6 0x00007f2d4070ac00 3 libc.so.6 0x00007f2d4070ab85 gsignal + 53 4 libc.so.6 0x00007f2d4070e6d0 abort + 384 5 libstdc++.so.6 0x00007f2d40f57b54 __gnu_debug::_Error_formatter::_M_error() const + 372 6 llc 0x00000000014b3126 bool __gnu_debug::operator!= > >, std::__debug::multimap, std::less, std::allocator > > > >(__gnu_debug::_Safe_iterator > >, std::__debug::multimap, std::less, std::allocator > > > > const&, __gnu_debug::_Safe_iterator > >, std::__debug::multimap, std::less, std::allocator > > > > const&) + 184 7 llc 0x00000000014aa9f8 8 llc 0x00000000014a496f 9 llc 0x0000000001386a13 10 llc 0x000000000132e15d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95 11 llc 0x000000000177972d llvm::FPPassManager::runOnFunction(llvm::Function&) + 405 12 llc 0x000000000177994a llvm::FPPassManager::runOnModule(llvm::Module&) + 102 13 llc 0x0000000001779cac llvm::MPPassManager::runOnModule(llvm::Module&) + 506 14 llc 0x000000000177a221 llvm::PassManagerImpl::run(llvm::Module&) + 125 15 llc 0x000000000177a72d llvm::PassManager::run(llvm::Module&) + 39 16 llc 0x0000000000cb56a0 main + 2368 17 libc.so.6 0x00007f2d406f5d8d __libc_start_main + 253 18 llc 0x0000000000cb4349 Stack dump: 0. Program arguments: llc regex.bc 1. Running pass 'Function Pass Manager' on module 'regex.bc'. 2. Running pass 'Linear Scan Register Allocator' on function '@byte_regex_compile' Aborted (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 Thu Aug 5 05:12:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 05:12:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 6971] Code generation for non-constant __builtin_offsetof In-Reply-To: References: Message-ID: <20100805101253.4BD7A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6971 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2010-08-05 05:12:52 CDT --- Fixed in r110326. -- 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 Aug 5 07:41:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 07:41:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 7826] New: -Xclang forwards to GCC Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7826 Summary: -Xclang forwards to GCC Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: amaury.pouly at gmail.com CC: llvmbugs at cs.uiuc.edu According to the documentation of the -Xclang switch, it 'Pass arg to the clang compiler frontend.'. But then, when used, the arguments are also passed to the assembler and the linker if GCC is used. Example (the -W switch is a random one, I just picked it because clang -cc1 recognizes it): # clang -ccc-echo -Xclang -W -o ioi ioi.c "/home/pamaury/avalon/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name ioi.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /home/pamaury/avalon/lib/clang/2.8 -ferror-limit 19 -fmessage-length 202 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -W -o /tmp/cc-0rvFL5.s -x c ioi.c "/usr/bin/gcc" -Xclang -W -c -m64 -o /tmp/cc-GuWlIA.o -x assembler /tmp/cc-0rvFL5.s gcc: unrecognized option '-Xclang' "/usr/bin/gcc" -Xclang -W -m64 -o ioi /tmp/cc-GuWlIA.o gcc: unrecognized option '-Xclang' Looking at the code, it seems that this is because the generic gcc code in gcc::Common::ConstructJob forwards an argument if the option hasForwardToGCC() and hasForwardToGCC() itself is defined as: bool hasForwardToGCC() const { return !DriverOption && !LinkerInput; } Which seems strange to me because obviously, clang will not use GCC as the compiler itself (that would defeat the point of using clang :)) so when using the -Xclang option which is not a driver option nor a linker input but clearly a compiler related switch, it should not be forwarded to gcc. As far as I understand, there already are options to forward to the linker and assembler (-Wl, and -Wa, should work, I never tried them) so I don't see why the driver would forward other arguments to 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 Thu Aug 5 10:26:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 10:26:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 753] bugpoint should fork/exec opt instead of fork/exec'ing itself to run opt passes In-Reply-To: References: Message-ID: <20100805152627.BEEB52A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=753 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Rafael ?vila de Esp?ndola 2010-08-05 10:26:27 CDT --- Fixed in 110333. -- 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 Aug 5 10:32:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 10:32:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7811] Linker (llvm-ld) lose debug information on global variables even without optimizations enabled In-Reply-To: References: Message-ID: <20100805153216.BFB5C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7811 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |daniel at zuster.org Resolution| |INVALID --- Comment #1 from Daniel Dunbar 2010-08-05 10:32:16 CDT --- llvm-ld runs a whole host of optimizations, which is what is stripping the debug info I imagine. Use llvm-ld --disable-opt to avoid them. -- 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 Aug 5 11:20:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 11:20:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 7827] New: Clang bug with C99 array as parameter Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7827 Summary: Clang bug with C99 array as parameter Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bertsch at iss.rwth-aachen.de CC: llvmbugs at cs.uiuc.edu (as reported on cfe-dev on 08/03/10:) With clang trunk (r110038) the following call fails: clang test.c with test.c: void function(short width, int data[][width]) {} void test() { function(1, 0); } I get an assertion in CodeGen: /clang_trunk/cmake/bin/clang test.c clang: /clang_trunk/llvm/tools/clang/lib/CodeGen/CGExpr.cpp:1167: clang::CodeGen::LValue clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const clang::DeclRefExpr*): Assertion `V && "DeclRefExpr not entered in LocalDeclMap?"' failed. Stack dump: 0. Program arguments: /clang_trunk/cmake/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name test.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /clang_trunk/cmake/lib/clang/2.8 -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-CFGwvn.s -x c test.c 1. parser at end of file 2. test.c:2:6: LLVM IR generation of declaration 'test' 3. test.c:2:6: Generating code for declaration 'test' 4. test.c:2:13: LLVM IR generation of compound statement ('{}') clang: error: clang frontend command failed due to signal 6 (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 Thu Aug 5 12:39:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 12:39:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 7568] linker errors compiling perl from spec2006 In-Reply-To: References: Message-ID: <20100805173931.15D592A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7568 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #3 from Eli Friedman 2010-08-05 12:39:30 CDT --- Expect problems if the __attribute specifications in system headers get #define'ed away; in this case, the "__attribute__ ((__gnu_inline__))" which is supposed to be attached to the inline definition of __signbitf is getting defined 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 Thu Aug 5 12:59:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 12:59:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 7113] Clang should warn on absurd implicit conversions to NULL In-Reply-To: References: Message-ID: <20100805175912.34AC82A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7113 Sebastian Redl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sebastian.redl at getdesigned. | |at Resolution| |FIXED --- Comment #2 from Sebastian Redl 2010-08-05 12:59:11 CDT --- We now have -Wbool-conversion -- 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 Aug 5 13:13:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 13:13:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 7825] Linear Scan Register Allocator expensive checks crash In-Reply-To: References: Message-ID: <20100805181341.E8A722A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7825 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Jakob Stoklund Olesen 2010-08-05 13:13:41 CDT --- Fixed in r110355. -- 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 Aug 5 13:18:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 13:18:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 7828] New: Check that all paths return the proper (unowned) retain count Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7828 Summary: Check that all paths return the proper (unowned) retain count Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: enhancement Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: tom+bugzilla at omnigroup.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5332) --> (http://llvm.org/bugs/attachment.cgi?id=5332) A .m file showing an undetected under retained return from a method. If a method returns (implicitly or explicitly) NS_RETURNS_RETAINED, the checker could check that the returned object has exactly one unowned retain. For example in the attached test case, if -[RandomResult godOnlyKnows] return NO, we'll probably crash later on due to the missing retain. -- 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 Aug 5 15:00:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 15:00:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7829] New: -loop-extract crash "Invalid DominatorTree info!" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7829 Summary: -loop-extract crash "Invalid DominatorTree info!" Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5333) --> (http://llvm.org/bugs/attachment.cgi?id=5333) testcase .ll I actually think this is a pass manager problem. The loop-extract pass does not preserve dominator info, nonetheless dominator info is not being recalculated after it has run on each loop as far as I can see. Anyway, here's what goes wrong: $ opt -loop-extract enormlz.bc -o /dev/null opt: llvm/lib/VMCore/Dominators.cpp:70: virtual void llvm::DominatorTree::verifyAnalysis() const: Assertion `!compare(OtherDT) && "Invalid DominatorTree info!"' failed. -- 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 Aug 5 15:34:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 15:34:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 7762] OpenSolaris link failure, link commands missing key libraries In-Reply-To: References: Message-ID: <20100805203413.2602D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7762 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #15 from Eric Christopher 2010-08-05 15:34:12 CDT --- Not having the solaris nm I can't tell if it's a bug with that nm or a bug in the configure options being output. I'll be sure to put something into the release notes. -- 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 Aug 5 16:00:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 16:00:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 7830] New: CStringChecker cast assertion Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7830 Summary: CStringChecker cast assertion Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: tcare at apple.com CC: llvmbugs at cs.uiuc.edu, jediknil at belkadan.com, tcare at apple.com Created an attachment (id=5334) --> (http://llvm.org/bugs/attachment.cgi?id=5334) Preprocessed file I've been seeing a casting assertion in CStringChecker in recent builds of clang. STDERR and preprocessed file attached. Stack trace: Assertion failed: (isa(Val) && "cast() argument of incompatible type!"), function cast, file /Volumes/Data/Users/tcare/Projects/llvm/include/llvm/Support/Casting.h, line 202. Program received signal SIGABRT, Aborted. 0x00007fff80a589d6 in __kill () (gdb) bt #0 0x00007fff80a589d6 in __kill () #1 0x00007fff80af8fea in abort () #2 0x00007fff80ae5fb0 in __assert_rtn () #3 0x00000001006c4145 in llvm::cast (Val=@0x7fff5fbf9830) at /Volumes/Data/Users/tcare/Projects/llvm/include/llvm/Support/Casting.h:202 #4 0x00000001006ea64a in (anonymous namespace)::CStringChecker::CheckBufferAccess (this=0x104ce5790, C=@0x7fff5fbf9e30, state=0x1058d9f88, Size=0x10580dc28, FirstBuf=0x10580dee0, SecondBuf=0x10580df18) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/CStringChecker.cpp:240 #5 0x00000001006e9900 in (anonymous namespace)::CStringChecker::EvalCopyCommon (this=0x104ce5790, C=@0x7fff5fbf9e30, state=0x1058d9f88, Size=0x10580dc28, Dest=0x10580dee0, Source=0x10580df18, Restricted=true) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/CStringChecker.cpp:558 #6 0x00000001006e8574 in (anonymous namespace)::CStringChecker::EvalMemcpy (this=0x104ce5790, C=@0x7fff5fbf9e30, CE=0x10580de50) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/CStringChecker.cpp:573 #7 0x00000001006e83d0 in (anonymous namespace)::CStringChecker::EvalCallExpr (this=0x104ce5790, C=@0x7fff5fbf9e30, CE=0x10580de50) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/CStringChecker.cpp:710 #8 0x000000010072dc3c in clang::Checker::GR_EvalCallExpr (this=0x104ce5790, Dst=@0x7fff5fbfa018, Builder=@0x7fff5fbfb5b8, Eng=@0x7fff5fbfb9e0, CE=0x10580de50, Pred=0x1058d8ae0, tag=0x1021f5bc0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/include/clang/Checker/PathSensitive/Checker.h:219 #9 0x00000001007108f4 in clang::GRExprEngine::CheckerEvalCall (this=0x7fff5fbfb9e0, CE=0x10580de50, Dst=@0x7fff5fbfa468, Pred=0x1058d8ae0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:285 #10 0x000000010071a062 in clang::GRExprEngine::VisitCall (this=0x7fff5fbfb9e0, CE=0x10580de50, Pred=0x1058cf390, AI={I = 0x10580de88}, AE={I = 0x10580dea8}, Dst=@0x7fff5fbfb230, asLValue=false) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:1997 #11 0x0000000100714d23 in clang::GRExprEngine::Visit (this=0x7fff5fbfb9e0, S=0x10580de50, Pred=0x1058cf390, Dst=@0x7fff5fbfb230) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:772 #12 0x0000000100713634 in clang::GRExprEngine::ProcessStmt (this=0x7fff5fbfb9e0, CE={Data = {Value = 4387298896}}, builder=@0x7fff5fbfb5b8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:608 #13 0x000000010070bd0a in clang::GRCoreEngine::ProcessStmt (this=0x7fff5fbfb9f0, E={Data = {Value = 4387298896}}, Builder=@0x7fff5fbfb5b8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/include/clang/Checker/PathSensitive/GRCoreEngine.h:90 #14 0x0000000100708606 in clang::GRCoreEngine::HandlePostStmt (this=0x7fff5fbfb9f0, L=@0x7fff5fbfb770, B=0x105823f18, StmtIdx=1, Pred=0x1058cf390) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRCoreEngine.cpp:385 #15 0x0000000100707d40 in clang::GRCoreEngine::ExecuteWorkList (this=0x7fff5fbfb9f0, L=0x104ce36f0, Steps=149496, InitState=0x0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRCoreEngine.cpp:197 #16 0x00000001006590fa in clang::GRExprEngine::ExecuteWorkList (this=0x7fff5fbfb9e0, L=0x104ce36f0, Steps=150000) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/include/clang/Checker/PathSensitive/GRExprEngine.h:117 #17 0x00000001006539b6 in ActionGRExprEngine (C=@0x104c0de90, mgr=@0x104c0f040, D=0x1058077f0, tf=0x104ce0b40) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:354 #18 0x0000000100653746 in ActionObjCMemCheckerAux (C=@0x104c0de90, mgr=@0x104c0f040, D=0x1058077f0, GCEnabled=false) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:375 #19 0x000000010065353f in ActionObjCMemChecker (C=@0x104c0de90, mgr=@0x104c0f040, D=0x1058077f0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:385 #20 0x0000000100657a4b in (anonymous namespace)::AnalysisConsumer::HandleCode (this=0x104c0de90, D=0x1058077f0, actions=@0x104c0dea0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:302 #21 0x0000000100657007 in (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit (this=0x104c0de90, C=@0x105013c00) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:214 #22 0x00000001003a4714 in clang::ParseAST (PP=@0x104c08a10, Consumer=0x104c0de90, Ctx=@0x105013c00, PrintStats=false, CompleteTranslationUnit=true, CompletionConsumer=0x0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Sema/ParseAST.cpp:108 #23 0x00000001000b0b89 in clang::ASTFrontendAction::ExecuteAction (this=0x104c07e90) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:256 #24 0x00000001000b075d in clang::FrontendAction::Execute (this=0x104c07e90) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:184 #25 0x000000010007ce64 in clang::CompilerInstance::ExecuteAction (this=0x104c076c0, Act=@0x104c07e90) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:505 #26 0x0000000100009e7b in cc1_main (ArgBegin=0x7fff5fbfe720, ArgEnd=0x7fff5fbfe8e0, Argv0=0x104c04438 "/Volumes/Data/Users/tcare/Projects/llvm-eclipse/bin/clang", MainAddr=0x100001640) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/tools/driver/cc1_main.cpp:281 #27 0x000000010000193c in main (argc_=58, argv_=0x7fff5fbfefa8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/tools/driver/driver.cpp:267 -- 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 Aug 5 16:07:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 16:07:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 7831] New: Assertion in StreamChecker::CheckDoubleClose Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7831 Summary: Assertion in StreamChecker::CheckDoubleClose Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: tcare at apple.com CC: xuzhongxing at gmail.com, llvmbugs at cs.uiuc.edu, ioripolo at gmail.com, tcare at apple.com Created an attachment (id=5336) --> (http://llvm.org/bugs/attachment.cgi?id=5336) Preprocessed file Appearing frequently in scan-build over git trunk. Trace: ANALYZE: builtin/merge.c merge_name Assertion failed: (SS), function CheckDoubleClose, file /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/StreamChecker.cpp, line 376. Program received signal SIGABRT, Aborted. 0x00007fff80a589d6 in __kill () (gdb) bt #0 0x00007fff80a589d6 in __kill () #1 0x00007fff80af8fea in abort () #2 0x00007fff80ae5fb0 in __assert_rtn () #3 0x00000001007c284b in (anonymous namespace)::StreamChecker::CheckDoubleClose (this=0x104cea7d0, CE=0x1058bcf98, state=0x1059990c0, C=@0x7fff5fbf9e40) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/StreamChecker.cpp:376 #4 0x00000001007c16c1 in (anonymous namespace)::StreamChecker::Fclose (this=0x104cea7d0, C=@0x7fff5fbf9e40, CE=0x1058bcf98) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/StreamChecker.cpp:250 #5 0x00000001007c116c in (anonymous namespace)::StreamChecker::EvalCallExpr (this=0x104cea7d0, C=@0x7fff5fbf9e40, CE=0x1058bcf98) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/StreamChecker.cpp:165 #6 0x000000010072dc3c in clang::Checker::GR_EvalCallExpr (this=0x104cea7d0, Dst=@0x7fff5fbfa028, Builder=@0x7fff5fbfb5c8, Eng=@0x7fff5fbfb9f0, CE=0x1058bcf98, Pred=0x1059990e8, tag=0x1021f5c60) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/include/clang/Checker/PathSensitive/Checker.h:219 #7 0x00000001007108f4 in clang::GRExprEngine::CheckerEvalCall (this=0x7fff5fbfb9f0, CE=0x1058bcf98, Dst=@0x7fff5fbfa478, Pred=0x1059990e8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:285 #8 0x000000010071a062 in clang::GRExprEngine::VisitCall (this=0x7fff5fbfb9f0, CE=0x1058bcf98, Pred=0x105959610, AI={I = 0x1058bcfd0}, AE={I = 0x1058bcfd8}, Dst=@0x7fff5fbfb240, asLValue=false) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:1997 #9 0x0000000100714d23 in clang::GRExprEngine::Visit (this=0x7fff5fbfb9f0, S=0x1058bcf98, Pred=0x105959610, Dst=@0x7fff5fbfb240) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:772 #10 0x0000000100713634 in clang::GRExprEngine::ProcessStmt (this=0x7fff5fbfb9f0, CE={Data = {Value = 4388016024}}, builder=@0x7fff5fbfb5c8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:608 #11 0x000000010070bd0a in clang::GRCoreEngine::ProcessStmt (this=0x7fff5fbfba00, E={Data = {Value = 4388016024}}, Builder=@0x7fff5fbfb5c8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/include/clang/Checker/PathSensitive/GRCoreEngine.h:90 #12 0x0000000100708606 in clang::GRCoreEngine::HandlePostStmt (this=0x7fff5fbfba00, L=@0x7fff5fbfb780, B=0x105908168, StmtIdx=1, Pred=0x105959610) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRCoreEngine.cpp:385 #13 0x0000000100707d40 in clang::GRCoreEngine::ExecuteWorkList (this=0x7fff5fbfba00, L=0x104cea870, Steps=149589, InitState=0x0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRCoreEngine.cpp:197 #14 0x00000001006590fa in clang::GRExprEngine::ExecuteWorkList (this=0x7fff5fbfb9f0, L=0x104cea870, Steps=150000) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/include/clang/Checker/PathSensitive/GRExprEngine.h:117 #15 0x00000001006539b6 in ActionGRExprEngine (C=@0x104c0ded0, mgr=@0x104c0f0e0, D=0x1058b68a0, tf=0x104ce7c90) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:354 #16 0x0000000100653746 in ActionObjCMemCheckerAux (C=@0x104c0ded0, mgr=@0x104c0f0e0, D=0x1058b68a0, GCEnabled=false) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:375 #17 0x000000010065353f in ActionObjCMemChecker (C=@0x104c0ded0, mgr=@0x104c0f0e0, D=0x1058b68a0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:385 #18 0x0000000100657a4b in (anonymous namespace)::AnalysisConsumer::HandleCode (this=0x104c0ded0, D=0x1058b68a0, actions=@0x104c0dee0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:302 #19 0x0000000100657007 in (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit (this=0x104c0ded0, C=@0x105013c00) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:214 #20 0x00000001003a4714 in clang::ParseAST (PP=@0x104c08a60, Consumer=0x104c0ded0, Ctx=@0x105013c00, PrintStats=false, CompleteTranslationUnit=true, CompletionConsumer=0x0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Sema/ParseAST.cpp:108 #21 0x00000001000b0b89 in clang::ASTFrontendAction::ExecuteAction (this=0x104c07ee0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:256 #22 0x00000001000b075d in clang::FrontendAction::Execute (this=0x104c07ee0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:184 #23 0x000000010007ce64 in clang::CompilerInstance::ExecuteAction (this=0x104c07710, Act=@0x104c07ee0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:505 #24 0x0000000100009e7b in cc1_main (ArgBegin=0x7fff5fbfe730, ArgEnd=0x7fff5fbfe8e8, Argv0=0x104c04438 "/Volumes/Data/Users/tcare/Projects/llvm-eclipse/bin/clang", MainAddr=0x100001640) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/tools/driver/cc1_main.cpp:281 #25 0x000000010000193c in main (argc_=57, argv_=0x7fff5fbfefb8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/tools/driver/driver.cpp:267 -- 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 Aug 5 17:28:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 17:28:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 7809] TargetSelect.h shouldn't include llvm/Config/config.h In-Reply-To: References: Message-ID: <20100805222855.09EF42A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7809 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED AssignedTo|unassignedbugs at nondot.org |echristo at gmail.com --- Comment #3 from Eric Christopher 2010-08-05 17:28:54 CDT --- Looks like the include just isn't necessary. Fixed thusly: [yendi:Data/sources/llvm] echristo% svn ci include/ Sending include/llvm/Target/TargetSelect.h Transmitting file data . Committed revision 110385. -- 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 Aug 5 17:29:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 17:29:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 7832] New: ARM Disassembler: BLX is variously disassembled as B or BL Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7832 Summary: ARM Disassembler: BLX is variously disassembled as B or BL 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: sliedes at cc.hut.fi CC: llvmbugs at cs.uiuc.edu (trunk r110360) I think the ARM disassembler does not produce the BLX instruction ever. Instead, it is variously (and wrongly) disassembled as B or BL. B is defined as cond 1010 imm24 BL as cond 1011 imm24 and BLX as 1111 101H imm24 There's no contradiction in this, because 1111 is not a valid condition code. However, llvm-mc disassembles blx instructions as b or bl: $ echo '0x3a 0x9f 0xb5 0xfa' |Release+Asserts/bin/llvm-mc --disassemble --triple=arm b #-19497744 (This is BLX 0xfed69dc8) $ echo '0x00 0x00 0x68 0xfb' |Release+Asserts/bin/llvm-mc --disassemble --triple=arm bl #27262984 (This is BLX 0x1a02492) -- 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 Aug 5 17:46:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 17:46:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 7809] TargetSelect.h shouldn't include llvm/Config/config.h In-Reply-To: References: Message-ID: <20100805224639.909FB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7809 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED 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 Thu Aug 5 18:20:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 18:20:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 7830] CStringChecker cast assertion In-Reply-To: References: Message-ID: <20100805232051.47FD02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7830 Jordy Rose changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Jordy Rose 2010-08-05 18:20:50 CDT --- Checking whether a buffer access a valid wasn't stopping to make sure we actually knew anything about the buffer -- if it was an expression we couldn't handle, it ends up as UnknownVal. Should be fixed in r110390. -- 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 Aug 5 18:24:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 18:24:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7831] Assertion in StreamChecker::CheckDoubleClose In-Reply-To: References: Message-ID: <20100805232447.092A92A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7831 Zhongxing Xu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Zhongxing Xu 2010-08-05 18:24:46 CDT --- Fixed in r110392. -- 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 Aug 5 21:55:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 21:55:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 5390] Problems in __builtin_offsetof locations In-Reply-To: References: Message-ID: <20100806025541.DCCCC2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5390 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #5 from Eli Friedman 2010-08-05 21:55:41 CDT --- Should be fixed by the switch to OffsetOfExpr; please re-open or file a new bug if there are still issues. -- 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 Aug 5 23:34:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 5 Aug 2010 23:34:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 7833] New: possible integer wrong code bug on x64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7833 Summary: possible integer wrong code bug on x64 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, jxyang at cs.utah.edu [regehr at babel work000]$ clang -O1 small.c -o small [regehr at babel work000]$ ./small -1 [regehr at babel work000]$ clang -O2 small.c -o small [regehr at babel work000]$ ./small 255 [regehr at babel work000]$ clang -v clang version 2.8 (trunk 110342) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at babel work000]$ cat small.c extern int printf (__const char *__restrict __format, ...); static int g_16 = -1; static int g_108; int *g_107 = &g_108; static int **g_106 = &g_107; static int g_252; static int g_263 = 0x79B6A971L; int func_2 (int p_4, int p_5, unsigned long p_6) { g_16 = 0; **g_106 |= 7L; if (!(((&g_16 == 0) & ((7L >= p_4) >= p_6)))) { return p_5; } return p_6; } int main (void) { g_16 = func_2 (-4L, g_16, g_263) | 1; *g_107 = (0 != &g_252); printf("%d\n", g_16); 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 Aug 6 01:32:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 01:32:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 6262] gcc 4.3.3 fails to build with clang In-Reply-To: References: Message-ID: <20100806063200.977F42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6262 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #2 from Eli Friedman 2010-08-06 01:31:59 CDT --- Building gcc with clang appears to work on x86-64 Linux; please reopen if you still run into issues. -- 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 Aug 6 02:30:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 02:30:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 7834] New: clang crashes when compiling c++ code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7834 Summary: clang crashes when compiling c++ code Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: burger.gregor at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com this is the output of the compiler. compiled clang with optimized. cmake was used to generate the makefile for my project. clang: CGExprAgg.cpp:796: void clang::CodeGen::CodeGenFunction::EmitAggregateCopy(llvm::Value*, llvm::Value*, clang::QualType, bool): Assertion `(Record->hasTrivialCopyConstructor() || Record->hasTrivialCopyAssignment()) && "Trying to aggregate-copy a type without a trivial copy " "constructor or assignment operator"' failed. 0 clang 0x000000000161bfcf 1 clang 0x000000000161ddb6 2 libpthread.so.0 0x00002b4ab2c4f8f0 3 libc.so.6 0x00002b4ab3844a75 gsignal + 53 4 libc.so.6 0x00002b4ab38485c0 abort + 384 5 libc.so.6 0x00002b4ab383d941 __assert_fail + 241 6 clang 0x000000000082dc0e clang::CodeGen::CodeGenFunction::EmitAggregateCopy(llvm::Value*, llvm::Value*, clang::QualType, bool) + 2574 7 clang 0x00000000008b8833 clang::CodeGen::CodeGenFunction::EmitNullInitialization(llvm::Value*, clang::QualType) + 339 8 clang 0x0000000000834c1b 9 clang 0x0000000000835617 clang::CodeGen::CodeGenFunction::EmitCXXNewExpr(clang::CXXNewExpr const*) + 2423 10 clang 0x0000000000848edd 11 clang 0x000000000084a90e 12 clang 0x0000000000847480 13 clang 0x000000000084ce99 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 121 14 clang 0x000000000081ec07 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*, bool, bool, bool) + 247 15 clang 0x000000000089a2b4 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 148 16 clang 0x000000000089c57f clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, llvm::Value*, bool) + 223 17 clang 0x000000000089c83c clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 268 18 clang 0x000000000089a23c clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 28 19 clang 0x00000000008d6987 clang::CodeGen::CodeGenFunction::EmitConstructorBody(llvm::SmallVector, 16u>&) + 167 20 clang 0x00000000008b9c3f clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl, llvm::Function*) + 1263 21 clang 0x00000000007f48b3 clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 147 22 clang 0x00000000007cf9fe clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl) + 654 23 clang 0x00000000007cfcea clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 618 24 clang 0x00000000007d00cd clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 365 25 clang 0x00000000007c5891 26 clang 0x00000000007c3fe4 27 clang 0x00000000008dde3e clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 238 28 clang 0x00000000007c4b44 clang::CodeGenAction::ExecuteAction() + 68 29 clang 0x00000000006d93fd clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 349 30 clang 0x00000000006b321c cc1_main(char const**, char const**, char const*, void*) + 3004 31 clang 0x00000000006ba27a main + 4314 32 libc.so.6 0x00002b4ab382fc4d __libc_start_main + 253 33 clang 0x00000000006b10a9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name defaultsimulation.cpp -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -g -resource-dir /usr/lib/clang/2.8 -D nodes_EXPORTS -D QT_NO_KEYWORDS -D QT_DLL -D QT_SVG_LIB -D QT_GUI_LIB -D QT_XML_LIB -D QT_CORE_LIB -D PYTHON_DISABLED -D OPENMP_DISABLED -D DEBUG -D QT_DEBUG -I /usr/include/qt4 -I /usr/include/qt4/QtSvg -I /usr/include/qt4/QtGui -I /usr/include/qt4/QtXml -I /usr/include/qt4/QtCore -I /home/gregor/Work/cd3-1/src/cd3core -I /home/gregor/Work/cd3-1/src/cd3core/qs -Wall -ferror-limit 19 -fmessage-length 237 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-lJHEzQ.s -x c++ /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp 1. /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp:19:1: current parser token 'DefaultSimulation' 2. /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp:15:20: LLVM IR generation of declaration 'DefaultSimulation::DefaultSimulation' 3. /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp:15:20: Generating code for declaration 'DefaultSimulation::DefaultSimulation' 4. /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp:15:56: LLVM IR generation of compound statement ('{}') clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) make[2]: *** [src/nodes/CMakeFiles/nodes.dir/defaultsimulation.cpp.o] Error 250 make[1]: *** [src/nodes/CMakeFiles/nodes.dir/all] Error 2 make: *** [all] Error 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 Aug 6 04:12:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 04:12:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 7835] New: GVN Crashes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7835 Summary: GVN Crashes Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: e_mc_h2 at web.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5338) --> (http://llvm.org/bugs/attachment.cgi?id=5338) Test-case to trigger crash I hit the attached testcase (as reduced by bugpoint) that causes global value numbering to crash: GVN iteration: 0 opt: /home/ness/media/src/llvm-fairy/lib/Transforms/Scalar/GVN.cpp:627: uint32_t::ValueTable::lookup(llvm::Value*) const: Assertion `VI != valueNumbering.end() && "Value not numbered?"' failed. 0 opt 0x0000000000bee6fe 1 opt 0x0000000000beec17 2 libpthread.so.0 0x00007fb22c5e2f60 3 libc.so.6 0x00007fb22b8f5175 gsignal + 53 4 libc.so.6 0x00007fb22b8f7f80 abort + 384 5 libc.so.6 0x00007fb22b8ee2b1 __assert_fail + 241 6 opt 0x000000000085e78d 7 opt 0x000000000085ed25 8 opt 0x0000000000862a19 9 opt 0x0000000000b691a9 llvm::FPPassManager::runOnFunction(llvm::Function&) + 345 10 opt 0x0000000000b6937f llvm::FPPassManager::runOnModule(llvm::Module&) + 81 11 opt 0x0000000000b68e6f llvm::MPPassManager::runOnModule(llvm::Module&) + 381 12 opt 0x0000000000b6a60b llvm::PassManagerImpl::run(llvm::Module&) + 111 13 opt 0x0000000000b6a66d llvm::PassManager::run(llvm::Module&) + 33 14 opt 0x00000000007d3750 main + 3437 15 libc.so.6 0x00007fb22b8e1c4d __libc_start_main + 253 16 opt 0x00000000007c5e19 Stack dump: 0. Program arguments: opt testcase.ll -gvn -debug 1. Running pass 'Function Pass Manager' on module 'testcase.ll'. 2. Running pass 'Global Value Numbering' on function '@cell_alloc' zsh: abort opt testcase.ll -gvn -debug -- 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 Aug 6 04:59:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 04:59:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 6930] clang: invalid input constraint "p" in asm In-Reply-To: References: Message-ID: <20100806095955.623D22A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6930 Roberto Bagnara changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |bagnara at cs.unipr.it Resolution|FIXED | --- Comment #6 from Roberto Bagnara 2010-08-06 04:59:54 CDT --- Here is a testcase coming from Linux 2.6.35: $ cat /tmp/bug2.c struct task_struct; extern __typeof__(struct task_struct *) current_task; struct task_struct *get_current(void) { struct task_struct *pfo_ret__ = 0; switch (sizeof(current_task)) { case 1: asm("mov" "b ""%%""gs"":%P" "1"",%0" : "=q" (pfo_ret__) : "p" (&(current_task))); break; case 2: asm("mov" "w ""%%""gs"":%P" "1"",%0" : "=r" (pfo_ret__) : "p" (&(current_task))); break; case 4: asm("mov" "l ""%%""gs"":%P" "1"",%0" : "=r" (pfo_ret__) : "p" (&(current_task))); break; case 8: asm("mov" "q ""%%""gs"":%P" "1"",%0" : "=r" (pfo_ret__) : "p" (&(current_task))); break; default: break; } return pfo_ret__; } $ ~/llvm.debug/Debug+Asserts/bin/clang /tmp/bug2.c /tmp/bug2.c:11:63: error: invalid input constraint 'p' in asm asm("mov" "b ""%%""gs"":%P" "1"",%0" : "=q" (pfo_ret__) : "p" ... ^ /tmp/bug2.c:14:63: error: invalid input constraint 'p' in asm asm("mov" "w ""%%""gs"":%P" "1"",%0" : "=r" (pfo_ret__) : "p" ... ^ /tmp/bug2.c:17:63: error: invalid input constraint 'p' in asm asm("mov" "l ""%%""gs"":%P" "1"",%0" : "=r" (pfo_ret__) : "p" ... ^ /tmp/bug2.c:20:63: error: invalid input constraint 'p' in asm asm("mov" "q ""%%""gs"":%P" "1"",%0" : "=r" (pfo_ret__) : "p" ... ^ 4 errors generated. $ ~/llvm.debug/Debug+Asserts/bin/clang --version clang version 2.8 (trunk 110191) Target: x86_64-unknown-linux-gnu Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Aug 6 07:10:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 07:10:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 4897] clang doesn't search CWD for include files when reading from stdin In-Reply-To: References: Message-ID: <20100806121029.C51F62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4897 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dgregor at apple.com Resolution| |FIXED --- Comment #4 from Douglas Gregor 2010-08-06 07:10:29 CDT --- (In reply to comment #3) > (In reply to comment #2) > > Created an attachment (id=5017) --> (http://llvm.org/bugs/attachment.cgi?id=5017) [details] [details] > > Self-contained test case for PR 4897. > > > > Attaching a self-contained test case which exhibits the issue. > > I have sent a patch which includes the test case and a fix for > this to the cfe-commits list: > > > http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100607/031219.html I've committed this patch in r110440. -- 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 Aug 6 08:51:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 08:51:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7738] "overloadable" causes assertion failure In-Reply-To: References: Message-ID: <20100806135111.D67B92A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7738 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2010-08-06 08:51:11 CDT --- Fixed in Clang r110443. -- 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 Aug 6 08:58:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 08:58:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 7836] New: clang fails to try template argument deduction on every function in the overload set Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7836 Summary: clang fails to try template argument deduction on every function in the overload set Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chris at bubblescope.net CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5340) --> (http://llvm.org/bugs/attachment.cgi?id=5340) failing testcase The attached code, reduced from a test in boost::filesystem, fails in clang while passing in g++ and comeau, as (from dgregor on IRC) clang fails to try template argument deduction on every function in the overload set -- 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 Aug 6 09:15:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 09:15:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7807] Template deduction assertion with template template parameters In-Reply-To: References: Message-ID: <20100806141542.CF5702A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7807 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-08-06 09:15:42 CDT --- Fixed in Clang r110444. -- 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 Aug 6 09:50:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 09:50:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 7794] Incorrect parsing of pre-increment, pre-decrement operators In-Reply-To: References: Message-ID: <20100806145055.D2EF82A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7794 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-08-06 09:50:55 CDT --- Fixed in Clang r110445. -- 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 Aug 6 11:03:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 11:03:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7837] New: clang segmentation fault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7837 Summary: clang segmentation fault Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: luc_j_bourhis at mac.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5341) --> (http://llvm.org/bugs/attachment.cgi?id=5341) Obtained with clang++ -E ~/Developer/llvm> svn info Path: . URL: http://llvm.org/svn/llvm-project/llvm/trunk Repository Root: http://llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 110444 Note that "make update" was used to update LLVM + CLANG. ~cctbxroot/cctbx_build_clang> clang++ -c ~/Desktop/coordinate_transformers-bug.cpp 0 clang 0x000000010130c2a2 PrintStackTrace(void*) + 34 1 clang 0x000000010130cf43 SignalHandler(int) + 707 2 libSystem.B.dylib 0x00007fff86cbd35a _sigtramp + 26 3 libSystem.B.dylib 0x00007fff86c620aa tiny_malloc_from_free_list + 1196 4 clang 0x00000001001e2710 clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 4416 5 clang 0x00000001001e3069 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 121 6 clang 0x00000001001aa65d clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*, bool, bool, bool) + 77 7 clang 0x00000001002487b3 clang::CodeGen::CodeGenFunction::EmitCXXExprWithTemporaries(clang::CXXExprWithTemporaries const*, llvm::Value*, bool, bool) + 83 8 clang 0x00000001001e2654 clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 4228 9 clang 0x00000001001e3069 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 121 10 clang 0x00000001001aa65d clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*, bool, bool, bool) + 77 11 clang 0x000000010024451d clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 285 12 clang 0x00000001002472eb clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, llvm::Value*, bool) + 267 13 clang 0x0000000100247655 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 405 14 clang 0x0000000100244430 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48 15 clang 0x0000000100270e45 clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl, llvm::Function*) + 1125 16 clang 0x00000001002790e9 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::CodeGen::GlobalDecl) + 761 17 clang 0x000000010027c3ea clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl) + 378 18 clang 0x000000010027d6e3 clang::CodeGen::CodeGenModule::EmitDeferred() + 243 19 clang 0x000000010027d733 clang::CodeGen::CodeGenModule::Release() + 19 20 clang 0x000000010026682a (anonymous namespace)::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 106 21 clang 0x00000001002aaf00 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 832 22 clang 0x000000010026748c clang::CodeGenAction::ExecuteAction() + 60 23 clang 0x000000010004e919 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393 24 clang 0x000000010001f375 cc1_main(char const**, char const**, char const*, void*) + 2949 25 clang 0x00000001000260a4 main + 4740 26 clang 0x000000010001d4c8 start + 52 27 clang 0x0000000000000021 start + 4294847373 Stack dump: 0. Program arguments: /Users/luc/Developer/llvm/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name coordinate_transformers-bug.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -resource-dir /Users/luc/Developer/llvm/Release+Asserts/lib/clang/2.8 -ferror-limit 19 -fmessage-length 104 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o coordinate_transformers-bug.o -x c++ /Users/luc/Desktop/coordinate_transformers-bug.cpp 1. parser at end of file 2. Per-file LLVM IR generation 3. /Users/luc/Developer/cctbx/cctbx_project/cctbx/maptbx/boost_python/coordinate_transformers.cpp:49:15: Generating code for declaration 'cctbx::maptbx::boost_python::::transform_coordinate_wrappers::wrap' 4. /Users/luc/Developer/cctbx/cctbx_project/cctbx/maptbx/boost_python/coordinate_transformers.cpp:49:22: LLVM IR generation of compound statement ('{}') clang: error: clang frontend command failed due to signal 11 (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 Aug 6 18:41:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 18:41:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 7837] clang segmentation fault In-Reply-To: References: Message-ID: <20100806234159.C71792A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7837 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2010-08-06 18:41:59 CDT --- Fixed in r110486. -- 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 Aug 6 19:20:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 19:20:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 7835] GVN Crashes In-Reply-To: References: Message-ID: <20100807002057.F24142A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7835 Owen Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Owen Anderson 2010-08-06 19:20:57 CDT --- Fixed in r110489. -- 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 Aug 6 22:26:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 6 Aug 2010 22:26:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 7838] New: UNREACHABLE executed at LegalizeIntegerTypes.cpp:947! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7838 Summary: UNREACHABLE executed at LegalizeIntegerTypes.cpp:947! 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 Created an attachment (id=5343) --> (http://llvm.org/bugs/attachment.cgi?id=5343) failure-inducing LLVM code Ok, this LLVM code comes from our hacked Clang where we're attempting to use the xxx.with.overflow primitives to create fast overflow checks. So there may be something wrong with it. However, "UNREACHABLE executed" sounds like LLVM is telling me there's a bug. So here it is! This is r110486 on x86. regehr at john-home:~/volatile/bugs/tmp329$ llc small.s ExpandIntegerResult #0: 0xacc13b0: i64,i1 = smulo 0xacc0888, 0xacc0800 [ORD=10] [ID=0] Do not know how to expand the result of this operator! UNREACHABLE executed at LegalizeIntegerTypes.cpp:947! 0 llc 0x08a32078 Stack dump: 0. Program arguments: llc small.s 1. Running pass 'Function Pass Manager' on module 'small.s'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN11StringUtils12str2longlongERKSs' 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 Aug 7 03:21:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 03:21:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 7834] clang crashes when compiling c++ code In-Reply-To: References: Message-ID: <20100807082153.E2B5F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7834 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from John McCall 2010-08-07 03:21:53 CDT --- Fixed in r110511. -- 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 Aug 7 06:53:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 06:53:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 7741] Reference binding with Objective-C objects In-Reply-To: References: Message-ID: <20100807115319.1BB662A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7741 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Summary|assertion failed in |Reference binding with |cDocStore.mm |Objective-C objects --- Comment #5 from Douglas Gregor 2010-08-07 06:53:17 CDT --- Fixed in r110513. -- 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 Aug 7 08:36:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 08:36:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7443] NullToMemberPointer cast used when a regular cast should be used instead In-Reply-To: References: Message-ID: <20100807133652.51C5B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7443 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-08-07 08:36:51 CDT --- Fixed in Clang r110519. -- 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 Aug 7 08:38:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 08:38:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 7055] Constructor is not used for type conversion. In-Reply-To: References: Message-ID: <20100807133853.325D12A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7055 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Douglas Gregor 2010-08-07 08:38:52 CDT --- Closing this bug due to insufficient 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 Aug 7 08:40:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 08:40:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7109] __builtin_offsetof - non-POD type warning In-Reply-To: References: Message-ID: <20100807134033.9BAD32A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7109 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Douglas Gregor 2010-08-07 08:40:33 CDT --- (In reply to comment #2) > Not strictly POD; maybe we should relax the warning by default to match the > C++0x rules, though. I thought this had been discussed before, but I can't > seem to find the discussion... In C++0x, we should only complain if the class isn't standard-layout. For C++98/03, I think we're right to warn (even if it is a bit pedantic to do so). Please re-open if you disagree. -- 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 Aug 7 08:42:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 08:42:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 7130] Clang++ fails to correctly perform ordered initialization per [basic.start.init] In-Reply-To: References: Message-ID: <20100807134243.2663F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7130 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Douglas Gregor 2010-08-07 08:42:42 CDT --- John McCall fixed this a week or two ago. -- 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 Aug 7 13:04:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 13:04:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 7840] New: Loops are not unrolled Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7840 Summary: Loops are not unrolled Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Loop Optimizer AssignedTo: unassignedbugs at nondot.org ReportedBy: asl at math.spbu.ru CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5345) --> (http://llvm.org/bugs/attachment.cgi?id=5345) Test C source Consider the attached ? / .ll source. opt -O3 does not unroll the loops there. For me it seems like a pass ordering issue - additional early run of GVN fixes the problem. Should we consider adding second GVN pass? -- 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 Aug 7 18:12:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 18:12:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 7800] ICE: Sema doesn't consider destructor as used. In-Reply-To: References: Message-ID: <20100807231200.9396D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7800 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2010-08-07 18:11:59 CDT --- Fixed in r110526. -- 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 Aug 7 21:37:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 21:37:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 7841] New: Boost.Python miscompilation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7841 Summary: Boost.Python miscompilation Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: luc_j_bourhis at mac.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5348) --> (http://llvm.org/bugs/attachment.cgi?id=5348) self-contained source code body to reproduce the problem (except for Boost library) I did my best to provide a self-contained reproducible test but since the error manifests itself when executing a Python script loading a compiled Boost.Python extension, it's a bit tricky. So stay with me! I use a brain dead build script because we use SCons to build the libraries where I encountered the problem and I did not want to introduce that dependency to my test. The assert that fails has reliably passed every night for years when using gcc ranging from 3.2 to 4.5, Visual Studio C++ 2008 and 2010, ICC 9 and 11, and more I forget about. So there is definitively something wrong with the clang build. LLVM svn revision is 110511 (trunk). ~> tar xfj clang-boost-python-bug.tbz2 ~> cd clang-boost-python-bug ~> ln -s your-path-to-the-root-of-the-boost-library boost ~> ls boost INSTALL boost bootstrap.bat doc more Jamroot boost-build.jam bootstrap.sh index.htm rst.css LICENSE_1_0.txt boost.css build index.html status bin.v2 boost.png dist libs tools ~> ./build.sh ~> python Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> ^D ~> python test.py Traceback (most recent call last): File "test.py", line 10, in assert err.__class__.__name__ == 'ArgumentError' AssertionError -- 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 Aug 7 21:44:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 7 Aug 2010 21:44:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 7809] TargetSelect.h shouldn't include llvm/Config/config.h In-Reply-To: References: Message-ID: <20100808024447.707BD2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7809 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #14 from Eric Christopher 2010-08-07 21:44:46 CDT --- OK. Fixed here: [issola:~/sources/llvm] echristo% svn ci include/ autoconf/ Sending autoconf/configure.ac Adding include/llvm/Config/llvm-config.h.in Sending include/llvm/Target/TargetSelect.h Sending include/llvm-c/Target.h Transmitting file data .... Committed revision 110532. [issola:~/sources/llvm] echristo% svn ci configure Sending configure Transmitting file data . Committed revision 110533. -- 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 Aug 8 01:12:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 01:12:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 7316] use of memcpy intrinsic causes assertion In-Reply-To: References: Message-ID: <20100808061236.96D632A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7316 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Nick Lewycky 2010-08-08 01:12:36 CDT --- As of r110541 the verifier now rejects them instead of crashing. -- 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 Aug 8 01:46:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 01:46:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 3568] clang arbitrary-width integer types don't calculate size/alignment correctly In-Reply-To: References: Message-ID: <20100808064634.BF58D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3568 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #4 from Eli Friedman 2010-08-08 01:46:34 CDT --- Arbitrary-width integer types were removed because they were unused. -- 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 Aug 8 02:04:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 02:04:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 2876] simplifycfg won't simplify switch to identical blocks In-Reply-To: References: Message-ID: <20100808070427.171A32A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2876 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #3 from Nick Lewycky 2010-08-08 02:04:26 CDT --- Moved to lib/Target/README.txt. -- 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 Aug 8 02:49:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 02:49:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 4897] clang doesn't search CWD for include files when reading from stdin In-Reply-To: References: Message-ID: <20100808074958.B7CBC2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4897 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #5 from Douglas Gregor 2010-08-08 02:49:58 CDT --- Chris claims to have a better way to implement this; reverted in r110544. -- 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 Aug 8 07:25:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 07:25:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7842] New: llvm-prof crash. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7842 Summary: llvm-prof crash. Product: Runtime Libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: libprofile library AssignedTo: unassignedbugs at nondot.org ReportedBy: pluto at agmk.net CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5349) --> (http://llvm.org/bugs/attachment.cgi?id=5349) clang -c cache.c -o cache.bc -O3 -emit-llvm hi, i've noticed the utils/profile.pl crash during some tests. testcase and logs attached. $ ~/src/llvm/utils/profile.pl cache.bc size = 64 res = 15 time = 160000 cps size = 128 res = 31 time = 160000 cps size = 256 res = 63 time = 170000 cps size = 512 res = 127 time = 160000 cps size = 1024 res = 255 time = 160000 cps size = 2048 res = 511 time = 160000 cps size = 4096 res = 1023 time = 160000 cps size = 8192 res = 2047 time = 150000 cps size = 16384 res = 4095 time = 160000 cps size = 32768 res = 8191 time = 150000 cps size = 65536 res = 16383 time = 170000 cps size = 131072 res = 32767 time = 160000 cps size = 262144 res = 65535 time = 170000 cps size = 524288 res = 131071 time = 170000 cps size = 1048576 res = 262143 time = 170000 cps size = 2097152 res = 524287 time = 190000 cps size = 4194304 res = 1048575 time = 490000 cps size = 8388608 res = 2097151 time = 660000 cps size = 16777216 res = 4194303 time = 740000 cps size = 33554432 res = 8388607 time = 780000 cps size = 67108864 res = 16777215 time = 840000 cps size = 134217728 res = 33554431 time = 960000 cps size = 268435456 res = 67108863 time = 1270000 cps size = 536870912 res = 134217727 time = 1810000 cps time = 10 ms ===-------------------------------------------------------------------------=== LLVM profiling output for execution: cache.bc ===-------------------------------------------------------------------------=== Function execution frequencies: ## Frequency 1. 24/25 ram_test 2. 1/25 main ===-------------------------------------------------------------------------=== Top 20 most frequently executed basic blocks: ## %% Frequency 1. 52.7964% 268435440/5.08436e+08 ram_test() - for.body 2. 47.2036% 240000000/5.08436e+08 ram_test() - for.body24 3. 4.72036e-06% 24/5.08436e+08 ram_test() - entry 4. 4.72036e-06% 24/5.08436e+08 ram_test() - for.end123 5. 4.72036e-06% 24/5.08436e+08 main() - for.body 6. 1.96682e-07% 1/5.08436e+08 main() - bb.nph 7. 1.96682e-07% 1/5.08436e+08 main() - for.end While deleting: i8* % Use still stuck around after Def is destroyed: %call137 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds (0 llvm-prof 0x00000000005d583f 1 llvm-prof 0x00000000005d7113 2 libpthread.so.0 0x00007f021756d580 3 llvm-prof 0x0000000000448d98 4 llvm-prof 0x0000000000467efe 5 llvm-prof 0x0000000000464967 6 llvm-prof 0x00000000004657a4 7 llvm-prof 0x0000000000463d23 8 llvm-prof 0x000000000054e974 9 llvm-prof 0x00000000004822c4 10 llvm-prof 0x00000000004f8f88 11 llvm-prof 0x00000000004f0b00 12 llvm-prof 0x00000000004ed2a1 13 llvm-prof 0x00000000004ee09e 14 llvm-prof 0x000000000059dc3e 15 llvm-prof 0x000000000059dca5 16 llvm-prof 0x00000000004087d7 main + 423 17 libc.so.6 0x00007f021686ed3d __libc_start_main + 253 18 llvm-prof 0x0000000000408359 Stack dump: 0. Program arguments: llvm-prof cache.bc -- 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 Aug 8 10:53:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 10:53:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7805] Bad interaction with OpenMP In-Reply-To: References: Message-ID: <20100808155342.84A7D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7805 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Duncan Sands 2010-08-08 10:53:41 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100802/105685.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 Sun Aug 8 11:12:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 11:12:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 7843] New: Enhance mouse-over macro expansion in HTML output Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7843 Summary: Enhance mouse-over macro expansion in HTML output Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: alexei.svitkine at gmail.com CC: llvmbugs at cs.uiuc.edu When mousing over a multi-line macro that is defined using \'s, the indentation of the original macro should be preserved. Currently, the whole macro is put on a single line, which is impossible to read for non-trivial macros. For example, a macro defined as: #define FOO(x) \ do { \ bar(x); \ } while (0) Should preserve the newlines from the source in the macro expansion mouse-over. -- 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 Aug 8 17:14:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 17:14:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 7793] bugpoint should be able to pass args to opt In-Reply-To: References: Message-ID: <20100808221445.9644B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7793 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Rafael ?vila de Esp?ndola 2010-08-08 17:14:45 CDT --- Fixed in 110555. -- 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 Aug 8 20:20:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 20:20:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 7844] New: clang crash due to memory unsafety Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7844 Summary: clang crash due to memory unsafety 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 [regehr at gamow tmp422]$ clang -v clang version 2.8 (trunk 110556) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at gamow tmp422]$ [regehr at gamow tmp422]$ [regehr at gamow tmp422]$ [regehr at gamow tmp422]$ [regehr at gamow tmp422]$ cat small.c typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; typedef long int int64_t; typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef unsigned long int uint64_t; static int8_t (safe_unary_minus_) (int8_t si) { return -si; } static int8_t (safe_add_func_int8_t_s_s) (int8_t si1, int8_t si2) { return (si1 + si2); } static int32_t (safe_mod_) (int32_t si1, int32_t si2) { return ((si2) || ((si1 == (1)) && (si2 == (0)))) ? ((si1)) : (si1 + si2); } static int64_t (safe_add_func_int64_t_s_s) (int64_t si1, int64_t si2) { return (((si1 > 0) && (si2 > 0) && (si1 > ((0) - si2))) || ((si1 < 0) && (si2 < 0) && (si1 < ((1) - si2)))) ? ((si1)) : (si1 + si2); } struct S0 { int32_t f0; const unsigned f1:9; signed:0; unsigned f2:6; const unsigned f3:8; const uint32_t f4; unsigned f5:29; signed f6:28; }; int32_t g_3; struct S0 g_23 = { -1L, 424, 30, 243, 4L, 361344876, -3543 }; int32_t *g_34 = &g_3; int32_t g_68[2][10] = { 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L }; int32_t *g_108 = &g_68[1][8]; const struct S0 *g_143; int32_t **g_163 = &g_34; int32_t g_180; struct S0 *g_223; int32_t *const g_285[3][1][8][4] = { {}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,}, }; int32_t func_65 (uint16_t p_66) { uint8_t l_67[5][8][1]; struct S0 *l_73 = &g_23; int32_t *l_81[3][3][6][1]; uint32_t l_199; int32_t ***l_200 = &g_163; int32_t *l_222[4]; struct S0 l_224 = { 0xAC423974L, 369, 12, 61, 0xEA04E116L, 411432885, -12369 }; int8_t l_254; const struct S0 *l_271 = &g_23; const int32_t *l_277; uint32_t l_341; int i, j, k, l; l_67[i][j][k]; l_81[i][j][k][l] = &g_3; l_222[i]; lbl_343:l_67[g_3][p_66][g_68[0][7]]; const int8_t l_115; int32_t l_128; int32_t *l_192 = &g_3; lbl_258:if (0) { int32_t **l_225 = &l_222[3]; struct S0 *l_230[7][4][1][1]; struct S0 l_234 = { 0x00A86ED1L, 353, 39, 221, 0x735A8DBCL, 204544828, -61 }; int i, j, k, l; l_230[i][j][k][l] = &l_224; (0); if (((0) & (0))) { uint64_t l_233; if (((0) || (0))) { int64_t l_240; int32_t l_241; l_241 &= (g_23.f0 < (1)); (0); } else (*g_34) |= 0; goto lbl_244; } else { int32_t *const l_242 = &g_68[0][7]; int32_t *l_243 = &g_68[0][7]; lbl_244:0; if (l_67[0][4][0]); else { int32_t *l_246[9][10]; struct S0 **l_253 = &l_230[6][0][0][0]; int i, j; (0); int32_t *l_255 = &g_3; l_254 ^= (0); (0); }}} else { int32_t l_272[7]; int32_t *l_276; const struct S0 *l_284 = &l_224; uint16_t l_319; uint16_t l_338; int i; l_272[i]; lbl_330:if (0) goto lbl_258; for (0; (p_66); 1) { const struct S0 *l_261 = &g_23; int32_t l_262; struct S0 **l_264[6]; struct S0 ***l_263 = &l_264[3]; int32_t l_293; const struct S0 *l_297[4][4]; const int32_t *l_315[7][3][1]; int i, j, k; l_264[i] = &g_223; l_297[i][j] = &g_23; if (func_103 (l_261, g_68[0][2])) { uint8_t l_270[10]; int32_t *l_275 = &l_272[4]; int32_t **l_278; int32_t **l_279 = &l_222[3]; struct S0 *l_286 = &g_23; const int32_t *l_296 = &l_293; int64_t l_303; int16_t l_322[5]; int i; l_270[i]; l_322[i]; (0); struct S0 l_287 = { 0x6428253FL, 150, 63, 113, 0x15A3E27EL, 165008711, 11238 }; int32_t l_290; (**g_163) |= g_23.f6; l_290 &= (1); lbl_298:(0); (*l_275) &= ((0)); goto lbl_298; (0); int32_t l_307; const int32_t *l_316 = &l_262; int16_t l_327; break; break; continue; const int32_t *l_306 = &g_3; int32_t *l_314; (0); (0); (*l_275) = ((0) | (&g_285[0][0][4][3] == &l_306)); return 0; } else { const int32_t *l_333 = &g_3; int8_t l_334; int32_t l_337; for (0; (l_293); l_293 = safe_add_func_int8_t_s_s (l_293, 0)) { if (p_66) goto lbl_330; if (0) goto lbl_339; l_337 &= ((((0)), (((func_103 (&g_23, 0))) || (func_103 (l_261, 0) && (safe_add_func_int64_t_s_s (p_66, (0))))))); } lbl_339:(*g_34) ^= 0; (*g_34) &= 0; 0; } } if ((0)) { uint32_t l_340; int32_t l_342; l_342 &= (((((((0)) && ((0) <= (0))))))); goto lbl_343; } else { uint32_t l_344; return 0; } } return 0; } int32_t func_103 (const struct S0 * p_104, uint32_t p_105) { return (*g_34); } [regehr at gamow tmp422]$ [regehr at gamow tmp422]$ [regehr at gamow tmp422]$ [regehr at gamow tmp422]$ [regehr at gamow tmp422]$ [regehr at gamow tmp422]$ valgrind -q --trace-children=yes clang -O1 small.c -w -c ==30239== Invalid read of size 1 ==30239== at 0x145023F: llvm::AliasSetTracker::add(llvm::CallSite) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1450F4C: llvm::AliasSetTracker::add(llvm::AliasSetTracker const&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x135B50E: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1479053: llvm::LPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x15655FC: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1449A0A: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x144A174: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565193: llvm::MPPassManager::runOnModule(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565306: llvm::PassManagerImpl::run(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B5AB6: clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B1BFA: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x8CB5CE: clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== Address 0x5fb28f0 is 80 bytes inside a block of size 168 free'd ==30239== at 0x4C24A7A: operator delete(void*) (vg_replace_malloc.c:346) ==30239== by 0x13597FE: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1359F3C: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1359DD4: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1359DD4: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x135B85B: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1479053: llvm::LPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x15655FC: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1449A0A: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x144A174: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565193: llvm::MPPassManager::runOnModule(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565306: llvm::PassManagerImpl::run(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== ==30239== Invalid read of size 1 ==30239== at 0x1450290: llvm::AliasSetTracker::add(llvm::CallSite) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1450F4C: llvm::AliasSetTracker::add(llvm::AliasSetTracker const&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x135B50E: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1479053: llvm::LPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x15655FC: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1449A0A: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x144A174: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565193: llvm::MPPassManager::runOnModule(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565306: llvm::PassManagerImpl::run(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B5AB6: clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B1BFA: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x8CB5CE: clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== Address 0x5fb28f0 is 80 bytes inside a block of size 168 free'd ==30239== at 0x4C24A7A: operator delete(void*) (vg_replace_malloc.c:346) ==30239== by 0x13597FE: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1359F3C: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1359DD4: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1359DD4: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x135B85B: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1479053: llvm::LPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x15655FC: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1449A0A: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x144A174: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565193: llvm::MPPassManager::runOnModule(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565306: llvm::PassManagerImpl::run(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== ==30239== Invalid read of size 8 ==30239== at 0x1450298: llvm::AliasSetTracker::add(llvm::CallSite) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1450F4C: llvm::AliasSetTracker::add(llvm::AliasSetTracker const&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x135B50E: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1479053: llvm::LPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x15655FC: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1449A0A: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x144A174: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565193: llvm::MPPassManager::runOnModule(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565306: llvm::PassManagerImpl::run(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B5AB6: clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B1BFA: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x8CB5CE: clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== Address 0x5fb28d0 is 48 bytes inside a block of size 168 free'd ==30239== at 0x4C24A7A: operator delete(void*) (vg_replace_malloc.c:346) ==30239== by 0x13597FE: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1359F3C: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1359DD4: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1359DD4: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x135B85B: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1479053: llvm::LPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x15655FC: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1449A0A: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x144A174: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565193: llvm::MPPassManager::runOnModule(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565306: llvm::PassManagerImpl::run(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== ==30239== Invalid read of size 1 ==30239== at 0x14502A2: llvm::AliasSetTracker::add(llvm::CallSite) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1450F4C: llvm::AliasSetTracker::add(llvm::AliasSetTracker const&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x135B50E: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1479053: llvm::LPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x15655FC: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1449A0A: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x144A174: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565193: llvm::MPPassManager::runOnModule(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565306: llvm::PassManagerImpl::run(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B5AB6: clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B1BFA: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x8CB5CE: clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== Address 0x8 is not stack'd, malloc'd or (recently) free'd ==30239== 0 clang 0x0000000001611f2f 1 clang 0x0000000001613fc2 2 libpthread.so.0 0x0000000004e39190 3 clang 0x00000000014502a2 llvm::AliasSetTracker::add(llvm::CallSite) + 130 4 clang 0x0000000001450f4d llvm::AliasSetTracker::add(llvm::AliasSetTracker const&) + 141 5 clang 0x000000000135b50f 6 clang 0x0000000001479054 llvm::LPPassManager::runOnFunction(llvm::Function&) + 1060 7 clang 0x00000000015655fd llvm::FPPassManager::runOnFunction(llvm::Function&) + 557 8 clang 0x0000000001449a0b 9 clang 0x000000000144a175 10 clang 0x0000000001565194 llvm::MPPassManager::runOnModule(llvm::Module&) + 500 11 clang 0x0000000001565307 llvm::PassManagerImpl::run(llvm::Module&) + 167 12 clang 0x00000000007b5ab7 clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 1639 13 clang 0x00000000007b1bfb 14 clang 0x00000000008cb5cf clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 335 15 clang 0x00000000007b2b74 clang::CodeGenAction::ExecuteAction() + 68 16 clang 0x00000000006cdbf5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357 17 clang 0x00000000006a9a1b cc1_main(char const**, char const**, char const*, void*) + 2651 18 clang 0x00000000006b03fd main + 4077 19 libc.so.6 0x0000000005a13abd __libc_start_main + 253 20 clang 0x00000000006a70b9 Stack dump: 0. Program arguments: /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/lib/clang/2.8 -O1 -w -ferror-limit 19 -fmessage-length 99 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-bAyHMs.s -x c small.c 1. parser at end of file 2. Per-module optimization passes 3. Running pass 'CallGraph Pass Manager' on module 'small.c'. 4. Running pass 'Loop Pass Manager' on function '@func_65' 5. Running pass 'Loop Invariant Code Motion' on basic block '%for.cond' ==30239== ==30239== Process terminating with default action of signal 11 (SIGSEGV) ==30239== Access not within mapped region at address 0x8 ==30239== at 0x14502A2: llvm::AliasSetTracker::add(llvm::CallSite) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1450F4C: llvm::AliasSetTracker::add(llvm::AliasSetTracker const&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x135B50E: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1479053: llvm::LPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x15655FC: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1449A0A: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x144A174: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565193: llvm::MPPassManager::runOnModule(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x1565306: llvm::PassManagerImpl::run(llvm::Module&) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B5AB6: clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x7B1BFA: ??? (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== by 0x8CB5CE: clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) (in /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r110556-install/bin/clang) ==30239== If you believe this happened as a result of a stack ==30239== overflow in your program's main thread (unlikely but ==30239== possible), you can try to increase the size of the ==30239== main thread stack using the --main-stacksize= flag. ==30239== The main thread stack size used in this run was 8388608. clang: error: clang frontend command failed due to signal 11 (use -v to see invocation) [regehr at gamow tmp422]$ -- 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 Aug 8 22:03:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 8 Aug 2010 22:03:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 7845] New: wrong code from clang on x86-64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7845 Summary: wrong code from clang on x86-64 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 babel work001]$ clang -O1 small.c -o small [regehr at babel work001]$ ./small 5 [regehr at babel work001]$ clang -O2 small.c -o small [regehr at babel work001]$ ./small 1 [regehr at babel work001]$ clang -v clang version 2.8 (trunk 110555) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at babel work001]$ cat small.c extern int printf (__const char *__restrict __format, ...); short foo (int left) { return left; } int main(void) { int g_4; for (g_4 = 0; g_4 < 5; g_4 += 1) { int l_9 = foo (g_4); if (l_9) continue; if (g_4) break; } printf("%d\n", g_4); 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 Mon Aug 9 00:44:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 00:44:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 7846] New: Certain march flags don't enable expected instruction sets Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7846 Summary: Certain march flags don't enable expected instruction sets Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: lloyd at randombit.net CC: llvmbugs at cs.uiuc.edu As far as I can tell, all Nehalem/Westmere processors implement SSSE3, however clang trunk (r110550) thinks that Nehalem does not have SSSE3: $ cat ssse3.c #include int main() {} $ clang -march=nehalem ssse3.c -o ssse3 In file included from ssse3.c:1: /usr/lib/clang/2.8/include/tmmintrin.h:28:2: error: #error "SSSE3 instruction set not enabled" #error "SSSE3 instruction set not enabled" ^ 1 error generated. Similarly -march=westmere will not work. However using -march=core2 or -march=corei7 will enable SSSE3. This is not just SSSE3 specific though; -march=westmere should allow use of SSE 4.1/4.2 and AES, and all are rejected. SSE 4.1 should also be allowed using -march=nehalem, but it is not. I'd imagine there are other cases along these lines, these are just the ones I've noticed that directly affected software I was trying to build. -- 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 Aug 9 00:47:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 00:47:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 6412] AltiVec-style vector literals In-Reply-To: References: Message-ID: <20100809054709.2E3942A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6412 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2010-08-09 00:47:08 CDT --- I think this got fixed a while back; please reopen if you still see issues. -- 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 Aug 9 04:14:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 04:14:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 7712] psuedo instructions should be removed before code emission In-Reply-To: References: Message-ID: <20100809091431.45A122A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7712 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #8 from Eric Christopher 2010-08-09 04:14:30 CDT --- Tobias said this has been fixed for him. -- 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 Aug 9 07:40:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 07:40:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 4427] LLVM_NATIVE_ARCH in config.h conflicts with compiler/buildsystem platform arch defines In-Reply-To: References: Message-ID: <20100809124053.9F2872A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4427 Xerxes R?nby changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |daniel at zuster.org Resolution|FIXED | --- Comment #7 from Xerxes R?nby 2010-08-09 07:40:52 CDT --- llvm r110109 have reinstalled a variant of this bug http://llvm.org/viewvc/llvm-project?view=rev&revision=110109 If X86 are defined then when calling InitializeNativeTargetAsmPrinter() the macro expands into LLVMInitializeAsmPrinter() that dont exist. instead of LLVMInitializeX86AsmPrinter() that do exist. Error during compilation of OpenJDK: g++ -DLINUX -D_GNU_SOURCE -DCC_INTERP -DZERO -DIA32 -DZERO_LIBARCH=\"i386\" -DPRODUCT -I. -I../generated/adfiles -I../generated/jvmtifiles -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/asm -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/c1 -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/ci -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/classfile -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/code -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/compiler -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/parallelScavenge -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/g1 -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/parNew -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/shared -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_interface -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/interpreter -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/memory -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/oops -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/prims -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/runtime -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/services -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/shark -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/utilities -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/cpu/zero/vm -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/os/linux/vm -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/os_cpu/linux_zero/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"17.0-b16\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"xerxes\"" -DHOTSPOT_LIB_ARCH=\"i386\" -DJRE_RELEASE_VERSION="\"1.6.0_20-b20\"" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DDERIVATIVE_ID="\"IcedTea6 1.9pre+r87f0c2edefcf\"" -DDISTRIBUTION_ID="\"Built on Ubuntu 10.04.1 LTS (Mon Aug 9 12:49:55 CEST 2010)\"" -DSHARK -I/home/xerxes/llvm-configure-shared/../llvm/include -I/home/xerxes/llvm-configure-shared/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DSHARK_LLVM_VERSION=28 -fpic -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -m32 -pipe -g -O3 -fno-strict-aliasing -DVM_LITTLE_ENDIAN -Werror -Wpointer-arith -Wsign-compare -c -o compilerOracle.o /home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/compiler/compilerOracle.cpp In file included from /home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/shark/llvmHeaders.hpp:47, from ../generated/incls/_compileBroker.cpp.incl:8, from /home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/compiler/compileBroker.cpp:26: /home/xerxes/llvm-configure-shared/../llvm/include/llvm/Target/TargetSelect.h: In function 'bool llvm::InitializeNativeTargetAsmPrinter()': /home/xerxes/llvm-configure-shared/../llvm/include/llvm/Target/TargetSelect.h:125: error: 'LLVMInitializeAsmPrinter' was not declared in this scope -- 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 Aug 9 10:08:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 10:08:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 7847] New: Cannot use lli's interpreter due to unresolved external __dso_handle Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7847 Summary: Cannot use lli's interpreter due to unresolved external __dso_handle 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: llvmbugs at contacts.eelis.net CC: llvmbugs at cs.uiuc.edu If I do: echo -e "#include \nint main(){}" | clang -cc1 -emit-llvm-bc -x c++ | lli -force-interpreter=true The result is: LLVM ERROR: Could not resolve external global address: __dso_handle Without -force-interpreter=true, it works fine. I'm using LLVM/Clang r110571. -- 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 Aug 9 10:17:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 10:17:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 7848] New: Non trivial vectors crash the JIT with invalid alignment calculation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7848 Summary: Non trivial vectors crash the JIT with invalid alignment calculation 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: ddneff at hotmail.com CC: llvmbugs at cs.uiuc.edu Vectors with alignments over 255 bytes will crash the JIT as a result of trying to allocate a huge amount of memory (as a result of doing a 0 - 1). I'm using <26 x double>, but anything that returns an alignment that doesn't fit inside of an unsigned char will have problems. I believe this started in change 102206, which changed TargetData::getAlignmentInfo to return alignments over 255 for vectors. Unfortunately, TargetData::getAlignment uses this function, but only returns an unsigned char, not an unsigned int. This results in the alignment getting truncated (to 0 in my case), and really bad things resulting. unsigned char TargetData::getAlignment(const Type *Ty, bool abi_or_pref) const; unsigned TargetData::getAlignmentInfo(AlignTypeEnum AlignType, uint32_t BitWidth, bool ABIInfo, const Type *Ty) const; -- 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 Aug 9 10:33:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 10:33:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7849] New: Unnecessary cyclic reference between LLVMX86CodeGen and LLVMX86AsmPrinter Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7849 Summary: Unnecessary cyclic reference between LLVMX86CodeGen and LLVMX86AsmPrinter Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: cmake AssignedTo: unassignedbugs at nondot.org ReportedBy: kiyolee at hotmail.com CC: llvmbugs at cs.uiuc.edu Using svn revision 110572. cmake refused to build with shared libraries as complaining there is cyclic reference between LLVMX86CodeGen and LLVMX86AsmPrinter. But after removed LLVMX86AsmPrinter from the line of target_link_libraries in the file lib/Target/X86/CMakeLists.txt, everything were built and working just fine. So I suspect the cyclic reference is actually unnecessary. -- 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 Aug 9 10:36:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 10:36:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7850] New: check-lit is incompatible with Python 2.4 on CentOS5 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7850 Summary: check-lit is incompatible with Python 2.4 on CentOS5 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: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu CentOS release 5.5 (Final) python-2.4.3-27.el5.x86_64 $ python -V Python 2.4.3 Traceback (most recent call last): File "/home/chapuni/llvm/utils/lit/lit.py", line 4, in ? import lit File "/home/chapuni/llvm/utils/lit/lit/__init__.py", line 3, in ? from lit import main File "/home/chapuni/llvm/utils/lit/lit/lit.py", line 12, in ? import TestRunner File "/home/chapuni/llvm/utils/lit/lit/TestRunner.py", line 523 status = Test.XFAIL if ok else Test.XPASS ^ SyntaxError: invalid syntax make[1]: *** [check-local-lit] Error 1 There are some options; 1) Rewrite python scripts suitable to older version. (is it easier?) 2) Check version with autoconf or tests/Makefile. 3) Require to install expected version of python. omega) Say "Unsupported platform" :( -- 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 Aug 9 11:07:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 11:07:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 7849] Unnecessary cyclic reference between LLVMX86CodeGen and LLVMX86AsmPrinter In-Reply-To: References: Message-ID: <20100809160717.2F6552A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7849 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Chris Lattner 2010-08-09 11:07:16 CDT --- Works fine for me with the makefiles, please try doing a clean build then rebuilding. -- 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 Aug 9 11:13:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 11:13:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 7851] New: clang++ can't compile CryptoPP 5.6.0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7851 Summary: clang++ can't compile CryptoPP 5.6.0 Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: himmes at idev.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The cryptopp makes heavy use of c++ templates. So this might be a good test for clang++. I use following version: $ clang++ -v clang version 2.8 (trunk 110544) Target: x86_64-apple-darwin10 Thread model: posix And make of cryptopp fails with following output: clang++ -DNDEBUG -g -O2 -DCRYPTOPP_DISABLE_ASM -pipe -c 3way.cpp Assertion failed: (S.Context.hasSameUnqualifiedType(T, E->getRHS()->getType()) && "comparison with mismatched types"), function AnalyzeComparison, file SemaChecking.cpp, line 2467. 0 clang 0x000000010130ca82 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::sys::Path const&) + 11570 1 clang 0x000000010130d723 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::sys::Path const&) + 14803 2 libSystem.B.dylib 0x00007fff8685635a _sigtramp + 26 3 clang 0x00000001006a9ade llvm::DenseMap, llvm::DenseMapInfo >::LookupBucketFor(clang::DeclarationName const&, std::pair*&) const + 30 4 libSystem.B.dylib 0x00007fff868d19b4 __pthread_markcancel + 0 5 clang 0x00000001002cdaa2 llvm::cast_retty::ret_type llvm::cast(clang::TemplateDecl* const&) + 32914 6 clang 0x00000001002cdd09 llvm::cast_retty::ret_type llvm::cast(clang::TemplateDecl* const&) + 33529 7 clang 0x00000001002cdeed llvm::cast_retty::ret_type llvm::cast(clang::TemplateDecl* const&) + 34013 8 clang 0x00000001002cdca8 llvm::cast_retty::ret_type llvm::cast(clang::TemplateDecl* const&) + 33432 9 clang 0x00000001002cdbf1 llvm::cast_retty::ret_type llvm::cast(clang::TemplateDecl* const&) + 33249 10 clang 0x00000001002cdbf1 llvm::cast_retty::ret_type llvm::cast(clang::TemplateDecl* const&) + 33249 11 clang 0x00000001002cdbf1 llvm::cast_retty::ret_type llvm::cast(clang::TemplateDecl* const&) + 33249 12 clang 0x00000001002cdbf1 llvm::cast_retty::ret_type llvm::cast(clang::TemplateDecl* const&) + 33249 13 clang 0x00000001002cdbf1 llvm::cast_retty::ret_type llvm::cast(clang::TemplateDecl* const&) + 33249 14 clang 0x00000001003bf694 clang::LookupResult::getFoundDecl() const + 836 15 clang 0x00000001003c49be clang::LookupResult::getFoundDecl() const + 22126 16 clang 0x000000010077027a clang::PragmaWeakHandler::~PragmaWeakHandler() + 10538 17 clang 0x00000001007704c3 clang::PragmaWeakHandler::~PragmaWeakHandler() + 11123 18 clang 0x0000000100770a53 clang::PragmaWeakHandler::~PragmaWeakHandler() + 12547 19 clang 0x000000010076fd37 clang::PragmaWeakHandler::~PragmaWeakHandler() + 9191 20 clang 0x0000000100772fea clang::PragmaWeakHandler::~PragmaWeakHandler() + 22170 21 clang 0x000000010076fee3 clang::PragmaWeakHandler::~PragmaWeakHandler() + 9619 22 clang 0x00000001007704c3 clang::PragmaWeakHandler::~PragmaWeakHandler() + 11123 23 clang 0x000000010077094d clang::PragmaWeakHandler::~PragmaWeakHandler() + 12285 24 clang 0x000000010077f94c llvm::SmallVectorTemplateCommon >::operator[](unsigned int) + 30908 25 clang 0x0000000100776fc2 clang::PragmaWeakHandler::~PragmaWeakHandler() + 38514 26 clang 0x0000000100777586 clang::PragmaWeakHandler::~PragmaWeakHandler() + 39990 27 clang 0x00000001007779c1 clang::PragmaWeakHandler::~PragmaWeakHandler() + 41073 28 clang 0x0000000100743d0c clang::Parser::ConsumeAnyToken() + 68124 29 clang 0x000000010078267f llvm::SmallVectorTemplateCommon >::operator[](unsigned int) + 42479 30 clang 0x0000000100749829 clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope() + 23209 31 clang 0x0000000100743c57 clang::Parser::ConsumeAnyToken() + 67943 32 clang 0x000000010078267f llvm::SmallVectorTemplateCommon >::operator[](unsigned int) + 42479 33 clang 0x00000001007829b8 llvm::SmallVectorTemplateCommon >::operator[](unsigned int) + 43304 34 clang 0x00000001002adeeb llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 667 35 clang 0x000000010026a34c llvm::DenseMap, unsigned long long, llvm::DenseMapInfo >, llvm::DenseMapInfo >::grow(unsigned int) + 4204 36 clang 0x000000010004f279 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 6505 37 clang 0x000000010001fcc5 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert_unique(std::pair const&) + 13909 38 clang 0x00000001000269f4 std::vector >::operator=(std::vector > const&) + 11316 39 clang 0x000000010001ddf8 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert_unique(std::pair const&) + 6024 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -disable-free -main-file-name 3way.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -g -resource-dir /usr/local/lib/clang/2.8 -D NDEBUG -D CRYPTOPP_DISABLE_ASM -O2 -ferror-limit 19 -fmessage-length 124 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o 3way.o -x c++ 3way.cpp 1. ./misc.h:395:3: current parser token 'a' 2. ./misc.h:45:1 : parsing namespace 'CryptoPP' 3. ./misc.h:381:1: parsing function body 'CryptoPP::IntToString' 4. ./misc.h:381:1: in compound statement ('{}') 5. ./misc.h:392:2: in compound statement ('{}') clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) make: *** [3way.o] Error 250 -- 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 Aug 9 12:02:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 12:02:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 7852] New: LLVM_NATIVE_ARCHNAME in llvm-config.h conflicts with compiler/buildsystem platform arch defines Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7852 Summary: LLVM_NATIVE_ARCHNAME in llvm-config.h conflicts with compiler/buildsystem platform arch defines 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: xerxes at zafena.se CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5351) --> (http://llvm.org/bugs/attachment.cgi?id=5351) 9aug-llvm-config-no-arch-macro.patch llvm r110109 defines LLVM_NATIVE_ARCHNAME http://llvm.org/viewvc/llvm-project?view=rev&revision=110109 If X86 are defined then when calling InitializeNativeTargetAsmPrinter() the macro expands into LLVMInitializeAsmPrinter() that dont exist. instead of LLVMInitializeX86AsmPrinter() that do exist. Error during compilation of OpenJDK: g++ -DLINUX -D_GNU_SOURCE -DCC_INTERP -DZERO -DIA32 -DZERO_LIBARCH=\"i386\" -DPRODUCT -I. -I../generated/adfiles -I../generated/jvmtifiles -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/asm -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/c1 -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/ci -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/classfile -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/code -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/compiler -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/parallelScavenge -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/g1 -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/parNew -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_implementation/shared -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/gc_interface -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/interpreter -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/memory -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/oops -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/prims -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/runtime -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/services -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/shark -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/utilities -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/cpu/zero/vm -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/os/linux/vm -I/home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/os_cpu/linux_zero/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"17.0-b16\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"xerxes\"" -DHOTSPOT_LIB_ARCH=\"i386\" -DJRE_RELEASE_VERSION="\"1.6.0_20-b20\"" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DDERIVATIVE_ID="\"IcedTea6 1.9pre+r87f0c2edefcf\"" -DDISTRIBUTION_ID="\"Built on Ubuntu 10.04.1 LTS (Mon Aug 9 12:49:55 CEST 2010)\"" -DSHARK -I/home/xerxes/llvm-configure-shared/../llvm/include -I/home/xerxes/llvm-configure-shared/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DSHARK_LLVM_VERSION=28 -fpic -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -m32 -pipe -g -O3 -fno-strict-aliasing -DVM_LITTLE_ENDIAN -Werror -Wpointer-arith -Wsign-compare -c -o compilerOracle.o /home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/compiler/compilerOracle.cpp In file included from /home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/shark/llvmHeaders.hpp:47, from ../generated/incls/_compileBroker.cpp.incl:8, from /home/xerxes/icedtea6-shark-llvm2.8/openjdk/hotspot/src/share/vm/compiler/compileBroker.cpp:26: /home/xerxes/llvm-configure-shared/../llvm/include/llvm/Target/TargetSelect.h: In function 'bool llvm::InitializeNativeTargetAsmPrinter()': /home/xerxes/llvm-configure-shared/../llvm/include/llvm/Target/TargetSelect.h:125: error: 'LLVMInitializeAsmPrinter' was not declared in this scope I have attached a proposed patch that fixes this behaviour by resolving what LLVMInitialize${NATIVE_ARCH}ASMPrinter and LLVMInitialize${NATIVE_ARCH}TargetInfo to use at config.h generation time. I need help regenerate configure and commiting this by someone who have a working autoconf 2.60 setup. -- 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 Aug 9 12:03:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 12:03:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 4427] LLVM_NATIVE_ARCH in config.h conflicts with compiler/buildsystem platform arch defines In-Reply-To: References: Message-ID: <20100809170309.C7A982A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4427 Xerxes R?nby changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #9 from Xerxes R?nby 2010-08-09 12:03:09 CDT --- (In reply to comment #8) > Xerxes please file new bugs instead of reopening old ones. I have opened a new bug for the new issue with an proposed fix http://llvm.org/bugs/show_bug.cgi?id=7852 closing this one as resolved -- 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 Aug 9 14:48:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 14:48:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 7853] New: unable to build a simple C program with -ftrapv Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7853 Summary: unable to build a simple C program with -ftrapv 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: peterlee at cs.utah.edu CC: llvmbugs at cs.uiuc.edu Hi There This reduced code comes from a bigger program which is unable to build when -ftrapv option is turned on. There might be something wrong with the llvm.sadd.with.overflow intrinsic checks on X64-32. This code can be built without any optimization, but would crash with -O1, -O2, -O3 and -Os. The command we used to build this program is "clang -O1 -ftrapv -c testTrapv.c" And the program is shown as follows: peterlee at bethe:/uusoc/res/embed/users/pengl/test$ cat testTrapv.c void foo(int flags) { 0 + (flags >> 8); } Thanks Peng -- 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 Aug 9 15:50:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 15:50:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 7853] unable to build a simple C program with -ftrapv In-Reply-To: References: Message-ID: <20100809205058.7159A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7853 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2010-08-09 15:50:58 CDT --- Fixed in r110597. -- 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 Aug 9 16:13:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 16:13:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 7854] New: User-definable arithmetic overflow handler Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7854 Summary: User-definable arithmetic overflow handler Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: llvmbugs at contacts.eelis.net CC: llvmbugs at cs.uiuc.edu Clang's -ftrapv used to generate calls to __overflow_handler, which the user could define. I used this functionality in an IRC C++ compilation&execution bot to give nice verbose diagnostics like "Overflow: 2147483647 + 3" that told users exactly what was wrong with their snippets. Unfortunately, this functionality was removed from Clang in revision 110490: http://llvm.org/viewvc/llvm-project?view=rev&revision=110490 Now all we get is an opaque trap with no information about what went wrong. It's really a shame to see useful functionality disappear, hence this enhancement request. However, I do /not/ request that the previous -ftrapv behavior be restored verbatim, because: 1. the "return a replacement value" functionality was awkward and I don't need it anyway; 2. having -ftrapv be compatible with gcc makes sense. Instead, I would suggest making user-definable handlers for overflow detection part of -fcatch-undefined-behavior, with the requirement that the handler must not return. Indeed, the ability to have user-defined handlers would also be welcome for the other instances of undefined behavior detected by -fcatch-undefined-behavior, so that those too can print accurate diagnostics about what went wrong, but that's another story. :-) -- 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 Aug 9 17:42:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 17:42:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7625] 'ResultKind == NotFound && Decls.empty()' assertion on invalid code In-Reply-To: References: Message-ID: <20100809224216.11C872A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7625 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-08-09 17:42:15 CDT --- Fixed in Clang r110615. -- 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 Aug 9 18:13:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 18:13:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 7855] New: Initialization of an anonymous struct within a class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7855 Summary: Initialization of an anonymous struct within a class Product: clang Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sjackman at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Hi, I'm not sure whether an anonymous struct within a class is standard, or a GCC extension that clang attempts to support. In any case, the following code snippet gives this error: anonymous-struct.cc:7:16: error: multiple initializations given for non-static member 'y' Foo() : x(0), y(0) { } ^~~~ anonymous-struct.cc:7:10: note: previous initialization is here Foo() : x(0), y(0) { } ^ 2 diagnostics generated. Thanks, Shaun struct Foo { struct { int x; int y; }; Foo() : x(0), y(0) { } }; #include int main() { Foo foo; std::cout << foo.x << ' ' << foo.y << '\n'; 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 Mon Aug 9 19:15:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 19:15:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 7819] Link error in release mode In-Reply-To: References: Message-ID: <20100810001515.3678B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7819 Gary changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |llvmbugs at cs.uiuc.edu Component|All Bugs |-New Bugs AssignedTo|hhinnant at apple.com |unassignedclangbugs at nondot. | |org Product|libc++ |clang --- Comment #1 from Gary 2010-08-09 19:15:14 CDT --- This was mistakenly assigned to libc++ when it should have been a clang issue. Also, I have discovered the error also occurs in debug mode. See previous submission for attached project example that generates the link error. -- 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 Aug 9 19:34:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 19:34:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 6297] RWMutex.cpp and pthread on mingw In-Reply-To: References: Message-ID: <20100810003453.D459D2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6297 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2010-08-09 19:34:53 CDT --- I applied a patch from NAKAMURA Takumi in r110636 that should fix 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 Mon Aug 9 19:58:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 19:58:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 7856] New: -m32 broken on FreeBSD. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7856 Summary: -m32 broken on FreeBSD. Product: clang Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu This is how as and ld should be called: $ /usr/local/clang+llvm-2.7-amd64-freebsd8/bin/clang -### -m32 a.c clang version 1.1 (branches/release_27) Target: i386-unknown-freebsd8.0 Thread model: posix "/usr/local/clang+llvm-2.7-amd64-freebsd8/bin/clang" "-cc1" "-triple" "i386-unknown-freebsd8.0" "-S" "-disable-free" "-main-file-name" "a.c" "-mrelocation-model" "static" "-mdisable-fp-elim" "-mconstructor-aliases" "-target-cpu" "pentium4" "-resource-dir" "/usr/local/clang+llvm-2.7-amd64-freebsd8/lib/clang/1.1" "-fmessage-length" "80" "-fgnu-runtime" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-o" "/tmp/cc-1caNk8.s" "-x" "c" "a.c" "/usr/bin/as" "--32" "-o" "/tmp/cc-JNwsqV.o" "/tmp/cc-1caNk8.s" "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "-m" "elf_i386_fbsd" "-o" "a.out" "/usr/lib32/crt1.o" "/usr/lib32/crti.o" "/usr/lib32/crtbegin.o" "/tmp/cc-JNwsqV.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib32/crtend.o" "/usr/lib32/crtn.o" This is what happens somewhere after r110006-110096 (probably r110025): $ clang -### -m32 a.c clang version 2.8 (trunk 110620) Target: x86_64-unknown-freebsd8.1 Thread model: posix "/usr/opt/llvm/bin/clang" "-cc1" "-triple" "x86_64-unknown-freebsd8.1" "-S" "-disable-free" "-main-file-name" "a.c" "-mrelocation-model" "static" "-mdisable-fp-elim" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-resource-dir" "/usr/opt/llvm/lib/clang/2.8" "-ferror-limit" "19" "-fmessage-length" "80" "-fgnu-runtime" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-o" "/tmp/cc-oeEs98.s" "-x" "c" "a.c" "/usr/bin/as" "-o" "/tmp/cc-HD6JcU.o" "/tmp/cc-oeEs98.s" "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "/tmp/cc-HD6JcU.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "/usr/lib/crtend.o" "/usr/lib/crtn.o" Adding -ccc-host-triple i386-unknown-freebsd8.1 fixes target-cpu for -cc1 and the --32 argument to as but ld still uses lib instead of lib32 and misses the -m argument. Also: $ clang -m32 -c a.c clang: warning: argument unused during compilation: '-m32' -- 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 Aug 9 21:43:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 9 Aug 2010 21:43:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 7850] check-lit is incompatible with Python 2.4 on CentOS5 In-Reply-To: References: Message-ID: <20100810024351.4AADD2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7850 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |geek4civic at gmail.com Resolution| |FIXED --- Comment #2 from NAKAMURA Takumi 2010-08-09 21:43:50 CDT --- (In reply to comment #1) > Does it work with r110638? It works fine! Thank you! check-dg: # of expected passes 4625 # of unexpected failures 15 # of expected failures 27 check-lit: Expected Passes : 4890 Expected Failures : 27 Unsupported Tests : 548 Unexpected Failures: 15 -- 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 Aug 10 01:55:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 01:55:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 7858] New: a template type parameter name should hide a same-named member of that type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7858 Summary: a template type parameter name should hide a same-named member of that type Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: zhanyong.wan at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com $ cat lookup_test.cc template void f(T* t) { t->T::foo(); } struct S { void foo() {} enum T { SOME_CONSTANT }; }; int main() { S s; f(&s); } $ clang lookup_test.cc lookup_test.cc:2:7: error: expected a class or namespace t->T::foo(); ^ lookup_test.cc:12:3: note: in instantiation of function template specialization 'f' requested here f(&s); ^ Clang seems to think that the name T in "t->T::foo()" resolves to S::T. I tend to think that it should be the template parameter T (and thus the code should be valid). I checked the C++03 standard 14.6 [temp.res] for the rules regarding name resolution in template definitions. Unfortunately I didn't find anything conclusive. The reasons for my belief that the code is valid are: - Both GCC and Comeau accept the code. - It would be a silly design mistake on the C++ standard committee's part if this code is invalid, as the author of f<>() has no knowledge on where it will be used and cannot anticipate whether it will be instantiated with a type that has a member named T. If the code is invalid, regardless of what name the author of f<>() picks for its template parameter, f will fail to instantiate for some type that happens to have a member with the same name. This doesn't make sense and basically makes it impossible to write truly generic functions. -- 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 Aug 10 02:04:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 02:04:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 7859] New: Assertion failed: (OldFn->isDeclaration() && "Shouldn't replace non-declaration") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7859 Summary: Assertion failed: (OldFn->isDeclaration() && "Shouldn't replace non-declaration") Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: wendling at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com >From llvm-gcc's testsuite: This code fails when compiled with clang++. $ cat prototype.C void foo() { } /* { dg-warning "no previous prototype" } */ void foo(int i) { } /* { dg-warning "no previous prototype" } */ void bar(); void bar() { } void bar1(); void bar1(int i); void bar1(int i) { } void bar1(float) { } /* { dg-warning "no previous prototype" } */ extern "C" void bar1(char); extern "C" void bar1(char) { } /* { dg-error "previous declaration" } */ extern "C" void bar1(short); /* { dg-error "conflicts with" } */ extern "C" void bar1(short) { } extern "C" void bar2(char); extern "C" void bar2(char) { } /* { dg-error "previous declaration" } */ extern "C" void bar2(short) { } /* { dg-error "conflicts with" } */ extern "C" void bar3(char); extern "C" void bar3(char) { } /* { dg-error "previous declaration" } */ extern "C" void bar3(short) { } /* { dg-error "conflicts with" } */ struct beef { }; void beef() { } /* { dg-warning "no previous prototype" } */ void dead(); namespace { void dead() { } } void dead4(); namespace A { void dead4() { } /* { dg-warning "no previous prototype" } */ } void dead1(); namespace A { void dead1(int); void dead1() { } /* { dg-warning "no previous prototype" } */ } void dead2(); /* { dg-error "old declaration" } */ int dead2() { } /* { dg-error "new declaration" } */ struct undef; undef meat; /* { dg-error "incomplete type and cannot be defined" } */ double meat() { } static void local() { } int main() { } void exit(float); void exit(int e) { a: goto a; } /* { dg-warning "no previous prototype" } */ void dead3(float); int dead3(int); /* { dg-error "old declaration" } */ void dead3(int e) { a: goto a; }/* { dg-error "new declaration" } */ class A { void m(); }; void A::m() { } namespace { void m() { } }; $ clang++ -Wmissing-prototypes prototype.C -c -o /dev/null prototype.C:4:6: warning: no previous prototype for function 'foo' [-Wmissing-prototypes] void foo() { } /* { dg-warning "no previous prototype" } */ ^ prototype.C:5:6: warning: no previous prototype for function 'foo' [-Wmissing-prototypes] void foo(int i) { } /* { dg-warning "no previous prototype" } */ ^ prototype.C:11:6: warning: no previous prototype for function 'bar1' [-Wmissing-prototypes] void bar1(float) { } /* { dg-warning "no previous prototype" } */ ^ Assertion failed: (OldFn->isDeclaration() && "Shouldn't replace non-declaration"), function EmitGlobalFunctionDefinition, file /Users/void/llvm/llvm.src/tools/clang/lib/Code\ Gen/CodeGenModule.cpp, line 1311. 0 clang 0x000000010130ebf2 PrintStackTrace(void*) + 34 1 clang 0x000000010130f893 SignalHandler(int) + 707 2 libSystem.B.dylib 0x00007fff801f935a _sigtramp + 26 3 clang 0x00000001011d0b5b std::_Rb_tree, std::pair const,\ llvm::ConstantExpr*>, std::_Select1st const, llvm::ConstantExpr*> >, std::less >, std::allocator const, llvm::ConstantExpr*> > >::_M_insert_unique(std::_Rb_tree_iterator const, llvm::ConstantExpr*> >, std::pair const, llvm::ConstantE\ xpr*> const&) + 891 4 libSystem.B.dylib 0x00007fff802749b4 __pthread_markcancel + 0 5 clang 0x000000010027c8c2 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::CodeGen::GlobalDecl) + 1586 6 clang 0x000000010027f89a clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl) + 378 7 clang 0x000000010027fb2f clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 495 8 clang 0x00000001002804e0 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 752 9 clang 0x000000010028069b clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1195 10 clang 0x00000001002992ac (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 60 11 clang 0x0000000100269d0b (anonymous namespace)::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 155 12 clang 0x00000001002ae0a2 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 258 13 clang 0x000000010026a5dc clang::CodeGenAction::ExecuteAction() + 60 14 clang 0x000000010004fc59 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393 15 clang 0x000000010001fc75 cc1_main(char const**, char const**, char const*, void*) + 2949 16 clang 0x00000001000269a4 main + 4740 17 clang 0x000000010001dda8 start + 52 18 clang 0x0000000000000021 start + 4294845101 Stack dump: 0. Program arguments: /Users/void/llvm/llvm-opt.obj/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name\ prototype.C -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -resource-dir /Users/void/llvm/llvm-opt.obj/Release+Asserts/lib/clang/2.8 -Wmissi\ ng-prototypes -ferror-limit 19 -fmessage-length 120 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -o /dev/null -x c++ prototype.C 1. prototype.C:16:1: current parser token 'extern' 2. prototype.C:15:8: LLVM IR generation of declaration 3. prototype.C:15:17: Generating code for declaration 'bar1' clang: error: clang frontend command failed due to signal 6 (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 Aug 10 02:59:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 02:59:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 7860] New: bugpoint should remove unused declares Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7860 Summary: bugpoint should remove unused declares Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: bugpoint AssignedTo: unassignedbugs at nondot.org ReportedBy: grosser at fim.uni-passau.de CC: llvmbugs at cs.uiuc.edu Hi, I just reduced a very big IR file with bugpoint and bugpoint was able to reduce it to just a single tiny function. Unfortunately it leaves all function declarations and type definitions in the file. It would be nice if those could automatically be removed, if not needed to provoke the bug. I attached the big example file bugpoint returned to me. Cheers Tobi -- 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 Aug 10 05:06:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 05:06:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7813] "Cannot yet select" error when using Gallium (Mesa master) In-Reply-To: References: Message-ID: <20100810100646.CF3F12A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7813 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #7 from Bill Wendling 2010-08-10 05:06:46 CDT --- No worries. Thanks, Denis. :-) -- 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 Aug 10 05:34:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 05:34:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 7862] New: implicit instantiation of undefined template... Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7862 Summary: implicit instantiation of undefined template... Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5358) --> (http://llvm.org/bugs/attachment.cgi?id=5358) Source file exhibiting the problem Doing clang++ -c aap.cxx fails: (proof) [425] clang++ -c aap.cxx In file included from stressMathCore.cxx:1: In file included from stressMathCore.cxx:84: In file included from /Users/rdm/rooticc/include/Math/SVector.h:356: In file included from /Users/rdm/rooticc/include/Math/BinaryOperators.h:22: In file included from /Users/rdm/rooticc/include/Math/BinaryOpPolicy.h:22: /Users/rdm/rooticc/include/Math/MatrixRepresentationsStatic.h:295:56: error: implicit instantiation of undefined template 'ROOT::Math::CompileTimeError<0>' ...!= 0)> ERROR_Cannot_assign_general_to_symmetric_matrix_representation; ... ^ In file included from stressMathCore.cxx:1: In file included from stressMathCore.cxx:84: In file included from /Users/rdm/rooticc/include/Math/SVector.h:349: In file included from /Users/rdm/rooticc/include/Math/SVector.icc:38: /Users/rdm/rooticc/include/Math/StaticCheck.h:47:26: note: template is declared here template struct CompileTimeError; ^ etc. etc. While g++ -c aap.cxx compiles fine. Cheers, Fons. -- 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 Aug 10 10:17:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 10:17:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 7055] Constructor is not used for type conversion. In-Reply-To: References: Message-ID: <20100810151704.9B9142A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7055 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #6 from Douglas Gregor 2010-08-10 10:17:04 CDT --- Thank you! Reduced test case: template struct auto_ptr { struct auto_ptr_ref { }; auto_ptr(auto_ptr&); auto_ptr(auto_ptr_ref); explicit auto_ptr(T *); operator auto_ptr_ref(); }; struct X { X(auto_ptr); }; X f() { return X(auto_ptr(new int)); } -- 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 Aug 10 11:22:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 11:22:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7862] implicit instantiation of undefined template... In-Reply-To: References: Message-ID: <20100810162242.7D2442A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7862 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2010-08-10 11:22:42 CDT --- This appears to boil down to the following: template struct X; template void f(T) { X a; } This is a variant of http://clang.llvm.org/compatibility.html#undep_incomplete . -- 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 Aug 10 12:39:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 12:39:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 7856] -m32 broken on FreeBSD. In-Reply-To: References: Message-ID: <20100810173936.5E0D42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7856 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |daniel at zuster.org Resolution| |FIXED --- Comment #1 from Daniel Dunbar 2010-08-10 12:39:35 CDT --- Fixed here: http://llvm.org/viewvc/llvm-project?view=rev&revision=110693 -- 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 Aug 10 13:11:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 13:11:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 7863] New: Function template and ?: causes segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7863 Summary: Function template and ?: causes segfault Product: clang Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sjackman at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The test case and error follow: #include struct Foo { Foo(const char* s) { } }; struct Bar { Bar(const char* s) { } }; template void ook(const char* s) { X x(s); } int main(int argc, const char** argv) { void (*f)(const char*) = argc > 1 ? ook : ook; std::for_each(argv, argv + argc, f); } 0 clang 0x08dc65c8 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name foo.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -resource-dir /usr/lib/clang/1.1 -fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-9UMvWs.s -x c++ foo.cc 1. foo.cc:17:57: current parser token ';' 2. foo.cc:16:1: parsing function body 'main' 3. foo.cc:16:1: in compound statement ('{}') clang: error: compiler command failed due to signal 11 (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 Aug 10 13:11:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 13:11:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 7864] New: Assertion failed: (0 && "Unhandled type!"), function BuildVTablePointer, file CGRTTI.cpp, line 396. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7864 Summary: Assertion failed: (0 && "Unhandled type!"), function BuildVTablePointer, file CGRTTI.cpp, line 396. Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: james at markzware.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com use the file cDocStore.mm supplied for issue 7741: http://llvm.org/bugs/show_bug.cgi?id=7741 The following crash log is generated Assertion failed: (0 && "Unhandled type!"), function BuildVTablePointer, file CGRTTI.cpp, line 396. 0 clang 0x0000000101312082 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::sys::Path const&) + 11602 1 clang 0x0000000101312dd3 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::sys::Path const&) + 15011 2 libSystem.B.dylib 0x00007fff86a4e35a _sigtramp + 26 3 libSystem.B.dylib 0x00007fff869f30aa tiny_malloc_from_free_list + 1196 4 libSystem.B.dylib 0x00007fff86ac99b4 __pthread_markcancel + 0 5 clang 0x000000010021faab llvm::IRBuilder >::CreateCall(llvm::Value*, llvm::Value*, llvm::Twine const&) + 3979 6 clang 0x000000010022034c llvm::IRBuilder >::CreateCall(llvm::Value*, llvm::Value*, llvm::Twine const&) + 6188 7 clang 0x00000001002211b9 llvm::IRBuilder >::CreateCall(llvm::Value*, llvm::Value*, llvm::Twine const&) + 9881 8 clang 0x000000010018b15e std::vector, std::allocator > >::_M_insert_aux(__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >, std::pair const&) + 19454 9 clang 0x0000000100258acc clang::SourceManager::getLocForStartOfFile(clang::FileID) const + 31420 10 clang 0x000000010025966a clang::SourceManager::getLocForStartOfFile(clang::FileID) const + 34394 11 clang 0x0000000100261c59 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 28425 12 clang 0x0000000100264f6a llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 41498 13 clang 0x00000001002651ff llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 42159 14 clang 0x0000000100265bb0 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 44640 15 clang 0x000000010027ec8c llvm::SmallVectorTemplateBase::grow(unsigned long) + 1404 16 clang 0x000000010024f40b llvm::DenseMap, unsigned long long, llvm::DenseMapInfo >, llvm::DenseMapInfo >::grow(unsigned int) + 1947 17 clang 0x00000001002939d2 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 690 18 clang 0x000000010024fcdc llvm::DenseMap, unsigned long long, llvm::DenseMapInfo >, llvm::DenseMapInfo >::grow(unsigned int) + 4204 19 clang 0x0000000100033339 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 6505 20 clang 0x0000000100003205 21 clang 0x0000000100009f34 std::vector >::operator=(std::vector > const&) + 11316 22 clang 0x0000000100001334 23 clang 0x0000000000000037 Stack dump: 0. Program arguments: /opt/bin/clang -cc1 -triple x86_64-apple-darwin9.0.0 -emit-obj -mrelax-all -disable-free -main-file-name cDocStore.mm -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -g -resource-dir /opt/lib/clang/2.8 -isysroot /var/folders/cX/cXKleH18HyiK1CWAuQ836k++-+Y/-Caches-/com.apple.Xcode.1033/CompositeSDKs/MzSDK_1-MacOSX10.5-dlrshlecdsdsoecfswemdozhdpvj -D DEBUG -I /HOME/Documents/work_projects/devel/FC7QuarkReader/build/FC7QuarkReader.build/Debug/libReaderLib_Mac.build/ReaderLib_Mac.hmap -F/HOME/Documents/work_projects/devel/FC7QuarkReader/build/Debug -F"/var/folders/cX/cXKleH18HyiK1CWAuQ836k++-+Y/-Caches-/com.apple.Xcode.1033/CompositeSDKs/MzSDK_1-MacOSX10.5-dlrshlecdsdsoecfswemdozhdpvj/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks" -I /HOME/Documents/work_projects/devel/FC7QuarkReader/build/Debug/include -I /var/folders/cX/cXKleH18HyiK1CWAuQ836k++-+Y/-Caches-/com.apple.Xcode.1033/CompositeSDKs/MzSDK_1-MacOSX10.5-dlrshlecdsdsoecfswemdozhdpvj/usr/local/include -I /HOME/Documents/work_projects/devel/FC7QuarkReader/build/FC7QuarkReader.build/Debug/libReaderLib_Mac.build/DerivedSources/x86_64 -I /HOME/Documents/work_projects/devel/FC7QuarkReader/build/FC7QuarkReader.build/Debug/libReaderLib_Mac.build/DerivedSources -O0 -Wno-trigraphs -Wreturn-type -Wunused-variable -ferror-limit 19 -fmessage-length 0 -fdiagnostics-print-source-range-info -fblocks -fexceptions -fobjc-nonfragile-abi -fobjc-dispatch-method=non-legacy -fpascal-strings -fdiagnostics-show-option -o /HOME/Documents/work_projects/devel/FC7QuarkReader/build/FC7QuarkReader.build/Debug/libReaderLib_Mac.build/Objects-normal/x86_64/cDocStore-1F0AFC4B.o -x objective-c++ /HOME/Documents/work_projects/devel/FC7QuarkReader/mac/cDocStore.mm 1. /HOME/Documents/work_projects/devel/FC7QuarkReader/mac/cDocStore.mm:912:1: current parser token 'NSArray' 2. /HOME/Documents/work_projects/devel/FC7QuarkReader/mac/cDocStore.mm:747:25: LLVM IR generation of declaration 'nmsComMarkzware::nmsReaderLib::cDocStore_Private::resolveRelationshipForAllObjects' 3. /HOME/Documents/work_projects/devel/FC7QuarkReader/mac/cDocStore.mm:747:25: Generating code for declaration 'nmsComMarkzware::nmsReaderLib::cDocStore_Private::resolveRelationshipForAllObjects' clang: error: clang frontend command failed due to signal 6 (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 Aug 10 14:04:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 14:04:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 7865] New: error: indirection to an interface is not supported ('NSOperationQueue' invalid) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7865 Summary: error: indirection to an interface is not supported ('NSOperationQueue' invalid) Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: james at markzware.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following Objc++ code isn't a proper use of boost::call_once, but gcc compiles it and I can't come up with a valid reason why clang shouldn't as well. Though the logic is questionable, I don't think the code is actually invalid. I'll submit this case for analysis. #include #include #include #include void deleteObject(void *anObjectPtr) { NSObject *tmpObjectPtr = (NSObject *)anObjectPtr; [tmpObjectPtr release]; } static NSOperationQueue& throttlingQueue_() throw(std::exception&) { static boost::shared_ptr statTaskQueueSPtr; if(statTaskQueueSPtr.get() == NULL) { statTaskQueueSPtr.reset([[NSOperationQueue alloc] init], deleteObject); [statTaskQueueSPtr.get() setMaxConcurrentOperationCount:1]; [statTaskQueueSPtr.get() setSuspended:true]; } return *statTaskQueueSPtr; } NSOperationQueue& throttlingQueue() throw(std::exception&) { static boost::once_flag tmpOneTimeRunSentinal = BOOST_ONCE_INIT; boost::call_once(tmpOneTimeRunSentinal, throttlingQueue_); return throttlingQueue_(); } int main (int argc, char * const argv[]) { NSOperationQueue& tmpThrottlingQueue = throttlingQueue(); 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 Aug 10 16:52:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 16:52:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 7867] New: indirectbr code gen generates an undefined local symbol Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7867 Summary: indirectbr code gen generates an undefined local symbol Product: libraries Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: wendling at apple.com CC: llvmbugs at cs.uiuc.edu $ llc -o t.s t.ll -relocation-model=pic -disable-fp-elim $ gcc t.s t.s:unknown:Undefined local symbol Ltmp4 The original code (it works at -O0 and -O1, but fails at -O2 and above): long stack[100]; int main(int argc,char**argv,char **envp) { long *esp=stack; static void* jarray[]={ &&KeyCtrlKV }; *++esp=(long)&&_loc0; goto SetTermStruc; _loc0:; *++esp=(long)&&_loc1; _loc1:; *++esp=(long)&&_loc35; _loc35:; goto *(*esp--); *++esp=(long)&&_loc36; _loc36:; *++esp=(long)&&_loc37; _loc37:; KeyCtrlKV: *++esp=(long)&&_loc66; _loc66:; *++esp=(long)&&_loc106; _loc106:; *++esp=(long)&&_loc119; _loc119:; SetTermStruc: goto *(*esp--); } -- 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 Aug 10 18:16:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 18:16:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 7868] New: major missed optimizations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7868 Summary: major missed optimizations Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rwgk at yahoo.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5361) --> (http://llvm.org/bugs/attachment.cgi?id=5361) reduced test case Per request of Douglas Gregor and Chris Lattner, attached is reduced C++ code to demonstrate major missed optimizations. (The original code is from LAPACK 3.2.1, automatically converted to C++.) clang version 2.8 (trunk 108205) clang++ -O3 -ffast-math reduced_dlasr.cpp % time a.out 1.118u 0.005s 0:01.12 99.1% 0+0k 0+0io 0pf+0w g++ (GCC) 4.4.4 20100630 (Red Hat 4.4.4-10) g++ -O3 -ffast-math reduced_dlasr.cpp % time a.out 0.316u 0.005s 0:00.32 96.8% 0+0k 0+0io 0pf+0w See also: cfe-dev at cs.uiuc.edu thread "food for optimizer developers" started 8/9/2010. -- 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 Aug 10 19:02:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 19:02:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 7869] New: clang issues spurious errors on input/output constraints of an inline asm Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7869 Summary: clang issues spurious errors on input/output constraints of an inline asm Product: clang Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: fjahanian at apple.com CC: llvmbugs at cs.uiuc.edu This broke sometimes today in clang's TOT: % cat pr20314-2.c int a, b, c, d, e, f, g, h, i, j, k, l; void f1 (void) { __asm__ volatile ("" : [a] "+r" (a), [b] "+r" (b), [c] "+r" (c), [d] "+r" (d), [e] "+r" (e), [f] "+r" (f), [g] "+r" (g), [h] "+r" (h), [i] "+r" (i), [j] "+r" (j), [k] "+r" (k), [l] "+r" (l)); } void f2 (void) { __asm__ volatile ("" : [a] "+r,m" (a), [b] "+r,m" (b), [c] "+r,m" (c), [d] "+r,m" (d), [e] "+r,m" (e), [f] "+r,m" (f), [g] "+r,m" (g), [h] "+r,m" (h), [i] "+r,m" (i), [j] "+r,m" (j), [k] "+r,m" (k), [l] "+r,m" (l)); } void f3 (void) { __asm__ volatile ("" : [a] "=r" (a), [b] "=r" (b), [c] "=r" (c), [d] "=r" (d), [e] "=r" (e), [f] "=r" (f), [g] "=r" (g), [h] "=r" (h), [i] "=r" (i), [j] "=r" (j), [k] "=r" (k), [l] "=r" (l) : "[a]" (a), "[b]" (b), "[c]" (c), "[d]" (d), "[e]" (e), "[f]" (f), "[g]" (g), "[h]" (h), "[i]" (i), "[j]" (j), "[k]" (k), "[l]" (l)); } void f4 (void) { __asm__ volatile ("" : [a] "=r,m" (a), [b] "=r,m" (b), [c] "=r,m" (c), [d] "=r,m" (d), [e] "=r,m" (e), [f] "=r,m" (f), [g] "=r,m" (g), [h] "=r,m" (h), [i] "=r,m" (i), [j] "=r,m" (j), [k] "=r,m" (k), [l] "=r,m" (l) : "[a],m" (a), "[b],m" (b), "[c],m" (c), "[d],m" (d), "[e],m" (e), "[f],m" (f), "[g],m" (g), "[h],m" (h), "[i],m" (i), "[j],m" (j), "[k],m" (k), "[l],m" (l)); } % c;ang -c pr20314-2.c pr20314-2.c:16:13: error: invalid output constraint '+r,m' in asm : [a] "+r,m" (a), [b] "+r,m" (b), [c] "+r,m" (c), [d] "+r,m" (d), ^ pr20314-2.c:37:13: error: invalid output constraint '=r,m' in asm : [a] "=r,m" (a), [b] "=r,m" (b), [c] "=r,m" (c), [d] "=r,m" (d), ^ 2 errors 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 Tue Aug 10 19:16:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 19:16:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 7870] New: odd error for -O900 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7870 Summary: odd error for -O900 Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: gohman at apple.com CC: llvmbugs at cs.uiuc.edu A user tried to extract an extreme amount of optimization from the compiler: clang -O900 t.c error: invalid value '4' in '-O900' The value should either be silently accepted, or the message should be 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 Aug 10 19:18:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 19:18:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 7845] wrong code from clang on x86-64 In-Reply-To: References: Message-ID: <20100811001805.B70A72A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7845 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Dan Gohman 2010-08-10 19:18:05 CDT --- Fixed in r110758. -- 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 Aug 10 21:18:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 10 Aug 2010 21:18:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 7055] Constructor is not used for type conversion. In-Reply-To: References: Message-ID: <20100811021820.A51B52A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7055 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #10 from Douglas Gregor 2010-08-10 21:18:20 CDT --- Fixed in r110773. -- 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 Aug 11 03:06:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 Aug 2010 03:06:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 7871] New: Make MultiSource/Applications/sqlite3/speedtest.tcl portable. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7871 Summary: Make MultiSource/Applications/sqlite3/speedtest.tcl portable. Product: Test Suite Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Programs Tests AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu FreeBSD installs TCL in /usr/local/bin. Index: MultiSource/Applications/sqlite3/speedtest.tcl =================================================================== --- MultiSource/Applications/sqlite3/speedtest.tcl (revision 110776) +++ MultiSource/Applications/sqlite3/speedtest.tcl (working copy) @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh # # Run this script using TCLSH to do a speed comparison between # various versions of SQLite and PostgreSQL and MySQL -- 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 Aug 11 12:39:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 Aug 2010 12:39:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 7865] error: indirection to an interface is not supported ('NSOperationQueue' invalid) In-Reply-To: References: Message-ID: <20100811173943.8F7222A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7865 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Fariborz Jahanian 2010-08-11 12:39:43 CDT --- (In reply to comment #4) > (In reply to comment #3) > > In file included from > > /HOME/Documents/work_projects/devel/miscTestBed/main.mm:9: > > In file included from /usr/local/include/boost/thread/once.hpp:16: > > /usr/local/include/boost/thread/pthread/once.hpp:67:27: error: indirection to > > an interface is not supported ('NSOperationQueue' invalid) > > f(); > > ^ > > /HOME/Documents/work_projects/devel/miscTestBed/main.mm:39:5: note: in > > instantiation of function template specialization > > 'boost::call_once' requested here > > boost::call_once(tmpOneTimeRunSentinal, throttlingQueue_); > > Thanks for the pre-processed file. Here is a trivial test case: > > @interface NSOperationQueue @end > > void call_once(NSOperationQueue& (*f)()) { > f(); > } > > investigating. Fixed in r110832 -- 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 Aug 11 16:42:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 Aug 2010 16:42:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 7872] New: LSR Does Not Finish Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7872 Summary: LSR Does Not Finish Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Loop Optimizer AssignedTo: unassignedbugs at nondot.org ReportedBy: greened at obbligato.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5362) --> (http://llvm.org/bugs/attachment.cgi?id=5362) bugpoint-reduced testcase Attached is a bugpoint-reduced version of a testcase that's been running in LSR for over 11 minutes. It appears to be a problem with LSR re-analyzing SCEVs over and over again. It does not appear to be an infinite loop, just a very expensive analysis that doesn't scale. The backtrace at an arbitrary point in time compiling the original (large) testcase looks like this: (gdb) where #0 (anonymous namespace)::SCEVComplexityCompare::operator() (this=0x7fff7a564200, LHS=0x1174bb0, RHS=0x1593870) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/ScalarEvolution.cpp:609 #1 0x0000000000b2ad94 in (anonymous namespace)::SCEVComplexityCompare::operator() (this=0x7fff7a564200, LHS=0x1174c80, RHS=0x1593940) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/ScalarEvolution.cpp:613 #2 0x0000000000b2ad94 in (anonymous namespace)::SCEVComplexityCompare::operator() (this=0x7fff7a564200, LHS=0x1174ce0, RHS=0x15939a0) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/ScalarEvolution.cpp:613 #3 0x0000000000b2adbb in (anonymous namespace)::SCEVComplexityCompare::operator() (this=0x7fff7a564200, LHS=0x1594010, RHS=0x1175680) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/ScalarEvolution.cpp:615 #4 0x0000000000b2ad94 in (anonymous namespace)::SCEVComplexityCompare::operator() (this=0x7fff7a564200, LHS=0x1594070, RHS=0x11756e0) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/ScalarEvolution.cpp:613 #5 0x0000000000b2ad94 in (anonymous namespace)::SCEVComplexityCompare::operator() (this=0x7fff7a564200, LHS=0x15b8220, RHS=0x15ad490) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/ScalarEvolution.cpp:613 #6 0x0000000000b2ad94 in (anonymous namespace)::SCEVComplexityCompare::operator() (this=0x7fff7a564200, LHS=0x1a0e4b0, RHS=0x1a0e580) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/ScalarEvolution.cpp:613 #7 0x0000000000b2b509 in std::merge (__first1=0x1400d28, __last1=0x1400d40, __first2=0x13df590, __last2=0x13df5e0, __result=0x13df578, __comp=...) at /usr/include/c++/4.1.2/bits/stl_algo.h:3198 #8 0x0000000000b2b8b1 in std::__merge_adaptive (__first=0x13df540, __middle=0x13df590, __last=0x13df5e0, __len1=10, __len2=10, __buffer=0x1400cf0, __buffer_size=20, __comp=...) at /usr/include/c++/4.1.2/bits/stl_algo.h:3535 #9 0x0000000000b2bbcf in std::__stable_sort_adaptive (__first=0x13df540, __last=0x13df5e0, __buffer=0x1400cf0, __buffer_size=20, __comp=...) at /usr/include/c++/4.1.2/bits/stl_algo.h:3735 #10 0x0000000000b2be5f in std::stable_sort (__first=0x13df540, __last=0x13df5e0, __comp=...) at /usr/include/c++/4.1.2/bits/stl_algo.h:3821 #11 0x0000000000b0aa67 in GroupByComplexity (Ops=..., LI=0x14eeb60) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/ScalarEvolution.cpp:671 #12 0x0000000000b0b328 in llvm::ScalarEvolution::getAddExpr (this=0x14f7470, Ops=..., HasNUW=false, HasNSW=false) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/ScalarEvolution.cpp:1347 #13 0x0000000000962e80 in (anonymous namespace)::LSRInstance::GenerateReassociations (this=0x7fff7a565480, LU=..., LUIdx=0, Base=..., Depth=2) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp:2313 #14 0x0000000000962f4f in (anonymous namespace)::LSRInstance::GenerateReassociations (this=0x7fff7a565480, LU=..., LUIdx=0, Base=..., Depth=1) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp:2322 #15 0x0000000000962f4f in (anonymous namespace)::LSRInstance::GenerateReassociations (this=0x7fff7a565480, LU=..., LUIdx=0, Base=..., Depth=0) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp:2322 #16 0x0000000000963fc8 in (anonymous namespace)::LSRInstance::GenerateAllReuseFormulae (this=0x7fff7a565480) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp:2778 #17 0x000000000096a365 in LSRInstance (this=0x7fff7a565480, tli=0x0, l=0x1309840, P=0x14ed0e0) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp:3634 #18 0x000000000096a5da in (anonymous namespace)::LoopStrengthReduce::runOnLoop (this=0x14ed0e0, L=0x1309840) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp:3777 #19 0x0000000000abe9b0 in llvm::LPPassManager::runOnFunction (this=0x14f7ed0, F=...) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/Analysis/LoopPass.cpp:269 #20 0x0000000000c59c8a in llvm::FPPassManager::runOnFunction (this=0x110b020, F=...) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/VMCore/PassManager.cpp:1450 #21 0x0000000000c59e5f in llvm::FPPassManager::runOnModule (this=0x110b020, M=...) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/VMCore/PassManager.cpp:1470 #22 0x0000000000c5994b in llvm::MPPassManager::runOnModule (this=0x110adc0, M=...) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/VMCore/PassManager.cpp:1524 #23 0x0000000000c5b0d1 in llvm::PassManagerImpl::run (this=0x110cb90, M=...) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/VMCore/PassManager.cpp:1605 #24 0x0000000000c5b133 in llvm::PassManager::run (this=0x7fff7a56adc0, M=...) at /ptmp/dag/llvm-project.official/llvm/trunk/lib/VMCore/PassManager.cpp:1649 #25 0x000000000089e608 in main (argc=12, argv=0x7fff7a56afc8) at /ptmp/dag/llvm-project.official/llvm/trunk/tools/opt/opt.cpp:553 One of the SCEVs being compared look like this: (-1 * (sext i32 %r1313 to i64) * (6 + (2 * (((sext i32 ((-1 * (%r1331 + %r1319)) + %r1328 + %r1316) to i64) * (sext i32 %r1322 to i64)) + ((sext i32 (((1 + %r1322) * ((-1 * %r1331) + %r1328)) + (((-1 * %r1328) + %r1331) * %r1325)) to i64) * (sext i32 %r1316 to i64)) + ((sext i32 (((1 + %r1322) * ((-1 * %r1328) + %r1331)) + (((-1 * %r1331) + %r1328) * %r1325)) to i64) * (sext i32 %r1319 to i64)) + ((sext i32 %r1 325 to i64) * (-1 + ((sext i32 %r1316 to i64) * ((sext i32 %r1331 to i64) + (-1 * (sext i32 %r1328 to i64)))) + ((sext i32 %r1319 to i64) * ((sext i32 %r1328 to i64) + (-1 * (sext i32 %r1331 to i64)))))))) + (-2 * ((sext i32 %r1319 to i64) + ((sext i32 (%r1328 + %r1316) to i6 4) * (sext i32 %r1325 to i64)))) + (-1 * (((sext i32 (((1 + %r1322) * %r1331) + (%r1328 * %r1325)) to i64) * (sext i32 %r1316 to i64)) + ( (sext i32 (((2 + %r1322) * %r1328) + (%r1331 * %r1325)) to i64) * (sext i32 %r1319 to i64)) + ((sext i32 (%r1331 + %r1319) to i64) * (1 + (sext i32 (2 * %r1322) to i64))) + ((sext i32 %r1331 to i64) * (2 + (sext i32 %r1316 to i64))))) + ((sext i32 %r1322 to i64) * (6 + (sext i32 %r1328 to i64) + (2 * (sext i32 %r1319 to i64) * ((sext i32 %r1331 to i64) + (-1 * (sext i32 %r1328 to i64)))) + ((sext i32 %r1316 to i64) * (2 + (sext i32 (2 * ((-1 * %r1331) + %r1328)) to i64))))) + ((sext i32 %r1316 to i64) * (6 + (2 * ((sext i32 %r1322 to i64) + (-1 * (sext i32 %r1325 to i64)))))) + ((sext i32 %r1328 to i64) * (6 + (-1 * (sext i32 (2 * %r1325) to i64)) + ((sext i32 %r1322 to i64) * (3 + (sext i32 %r1316 to i64))) + ((sext i32 %r1316 to i64) * (4 + (sext i32 %r1322 to i64) + (-1 * (sext i32 %r1325 to i64)))) + ((sext i32 % r1319 to i64) * ((sext i32 (2 * %r1325) to i64) + (-1 * (sext i32 (2 + %r1322) to i64)))))) + ((sext i32 %r1325 to i64) * (-4 + (sext i32 ((3 * (%r1331 + %r1319)) + (-2 * (%r1328 + %r1316))) to i64))) + ((sext i32 %r1319 to i64) * (-3 + (sext i32 (3 * %r1325) to i64) + (-1 * (sext i32 (2 * %r1322) to i64)))) + ((sext i32 %r1331 to i64) * (-3 + (sext i32 (3 * %r1325) to i64) + (-1 * (sext i32 (2 * %r1322) to i64 )) + ((sext i32 %r1319 to i64) * (4 + (2 * (sext i32 %r1322 to i64)) + (-1 * (sext i32 %r1325 to i64)))) + ((sext i32 %r1316 to i64) * ((s ext i32 (2 * %r1325) to i64) + (-1 * (sext i32 (2 + %r1322) to i64)))))))) The other looks similar. So there are some very complex SCEVs that are expensive to analyze due to the recursive nature of the analysis (SCEVComplexityCompare in this case). LSRInstance::GenerateAllReuseFormulae is very expensive as it re-analyzes SCEVs over and over. I hacked in a cache to remember results of SCEVComplexityCompare and that seems to disappear from the profile. But SCEV::properlyDominates takes its place and there doesn't seem to be an easy way to cache those results. I'm sure there are other SCEV analyses that have the same problem when used by LSR. I believe we need a more general solution than simply memoizing all of these analyses. The attached reduced testcase of 136 instructions takes 5 seconds to optimize with a Debug+Asserts 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 Wed Aug 11 17:21:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 Aug 2010 17:21:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 7873] New: clang error points to the wrong place entirely Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7873 Summary: clang error points to the wrong place entirely Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, jyasskin at google.com This testcase has a typo where ':' was used in place of ';'. class Foo { virtual ~Foo(): virtual void ListWidgets(); }; The clang error is Just Wrong: nlewycky at ducttape:~$ clang++ test.cc -fsyntax-only test.cc:3:29: error: expected '{' virtual void ListWidgets(); ^ 1 error generated. No. That's not where the error is. It was on the previous line. -- 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 Aug 11 21:09:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 Aug 2010 21:09:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7819] Link error in release mode In-Reply-To: References: Message-ID: <20100812020916.4A9682A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7819 Gary changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Gary 2010-08-11 21:09:15 CDT --- After updating with svn, this issue no longer occurs. -- 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 Aug 11 21:18:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 Aug 2010 21:18:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 7864] Assertion failed: (0 && "Unhandled type!"), function BuildVTablePointer, file CGRTTI.cpp, line 396. In-Reply-To: References: Message-ID: <20100812021805.8C4C22A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7864 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from John McCall 2010-08-11 21:18:04 CDT --- Thanks, Eli. Implemented in r110900. -- 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 Aug 11 22:05:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 11 Aug 2010 22:05:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 7874] New: LLVM cannot be built w/o pthreads on mingw/msys when pthread.h exists Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7874 Summary: LLVM cannot be built w/o pthreads on mingw/msys when pthread.h exists Product: new-bugs Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu There is no way to build LLVM with ENABLE_THREADS=1 but without pthreads. Some MSYS packages have pthread.h (and pthreads DLL), and some issues on MSYS; - lib/System/Win32/ threading stuff will not be used at all - not able to build LLVM free from pthread.dll. The option --without-pthreads might be needed to configure. It is not an issue on mingw-cross-unixen because (AFAIK) mingw-cross does not have pthreads/w32. -- 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 Aug 12 02:10:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 12 Aug 2010 02:10:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 7859] Assertion failed: (OldFn->isDeclaration() && "Shouldn't replace non-declaration") In-Reply-To: References: Message-ID: <20100812071020.B94002A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7859 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #2 from John McCall 2010-08-12 02:10:20 CDT --- Fixed in r110906. -- 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 Aug 12 05:11:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 12 Aug 2010 05:11:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 7875] New: MSVC Internal Compiler Error - Win64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7875 Summary: MSVC Internal Compiler Error - Win64 Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: cullmann at absint.de CC: llvmbugs at cs.uiuc.edu Hi, I get (using VisualStudio 2008, on x64) the following error: RegionStore.cpp D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/Basic/Diagnostic.h(956) : warning C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/Basic/Diagnostic.h(961) : warning C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/AST/ASTContext.h(1468) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/AST/ASTContext.h(1468) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/AST/ASTContext.h(1502) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/AST/ASTContext.h(1502) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/AST/Expr.h(925) : warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/AST/Expr.h(2858) : warning C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/AST/TemplateBase.h(466) : warning C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/AST/UnresolvedSet.h(157) : warning C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/Analysis/CFG.h(124) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/Analysis/CFG.h(184) : warning C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/Analysis/CFG.h(220) : warning C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data D:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\include\clang/Analysis/CFG.h(223) : warning C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data d:\makefactory\145711\llvm.default.win64.debug\llvm\tools\clang\lib\checker\regionstore.cpp(1533) : fatal error C1001: An internal error has occurred in the compiler. (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c[0x0000000072E4F264:0x0000000000000048]', line 182) To work around this problem, try simplifying or changing the program near the locations listed above. I know, it is not that verbose, but it is persistent ;) -- 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 Aug 12 11:39:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 12 Aug 2010 11:39:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 7876] New: ipsccp change return value to undef without reason Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7876 Summary: ipsccp change return value to undef without reason Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Interprocedural Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: quickslyver at free.fr CC: llvmbugs at cs.uiuc.edu from gcc torture suite: ------------------------------------------------------------------------ reproducer: ----------------------------------------------- $cat pr34768-2.c int x; int __attribute__((noinline)) foo (void) { x = -x; return 0; } int __attribute__((const,noinline)) bar (void) { return 0; } int __attribute__((noinline)) test (int c) { int tmp = x; int res = (c ? foo : bar) (); return tmp + x + res; } extern void abort (void); int main() { x = 1; if (test (1) != 0) abort (); return 0; } $clang -O3 pr34768-2.c -c -emit-llvm -o test.bc $opt test.bc -internalize -ipsccp -o bug.bc $llvm-dis test.bc [...] define i32 @foo() nounwind noinline { entry: %tmp = load i32* @x, align 4 ; [#uses=1] %sub = sub nsw i32 0, %tmp ; [#uses=1] store i32 %sub, i32* @x, align 4 ret i32 0 } [...] define i32 @test(i32 %c) nounwind noinline { entry: %tmp1 = load i32* @x, align 4 ; [#uses=1] %tobool = icmp ne i32 %c, 0 ; [#uses=1] %cond = select i1 %tobool, i32 ()* @foo, i32 ()* @bar ; [#uses=1] %call = tail call i32 %cond() nounwind ; [#uses=1] %tmp5 = load i32* @x, align 4 ; [#uses=1] %add = add nsw i32 %call, %tmp1 ; [#uses=1] %add7 = add nsw i32 %add, %tmp5 ; [#uses=1] ret i32 %add7 } [...] $llvm-dis bug.bc [...] define internal i32 @foo() nounwind noinline { entry: %tmp = load i32* @x, align 4 ; [#uses=1] %sub = sub nsw i32 0, %tmp ; [#uses=1] store i32 %sub, i32* @x, align 4 ret i32 undef } [...] define internal i32 @test(i32 %c) nounwind noinline { entry: %tmp1 = load i32* @x, align 4 ; [#uses=1] %call = tail call i32 @foo() nounwind ; [#uses=1] %tmp5 = load i32* @x, align 4 ; [#uses=1] %add = add nsw i32 %call, %tmp1 ; [#uses=1] %add7 = add nsw i32 %add, %tmp5 ; [#uses=1] ret i32 %add7 } [...] ------------------------------------------------------------------------------- Comments: after internalize and ipsccp passes function "foo" returns "undef" instead of "0" BUT this result is used by function "test" then the test fails. -- 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 Aug 12 15:03:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 12 Aug 2010 15:03:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7877] New: "Dwarf Error: bad offset" when compiling with debugging symbols (-g) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7877 Summary: "Dwarf Error: bad offset" when compiling with debugging symbols (-g) Product: tools Version: 2.7 Platform: PC OS/Version: Windows XP Status: NEW Severity: release blocker Priority: P Component: llvm-gcc AssignedTo: unassignedbugs at nondot.org ReportedBy: antonio at compleasy.com CC: llvmbugs at cs.uiuc.edu Compiling this code #include #include int main() { printf("Hello world!\n"); return 0; } with these commands llvm-gcc.exe -Wall -g \main.c -o \main.o llvm-g++.exe -o \main.exe \main.o on a Windows XP, generates a good executable that I am able to run without any problem. However I cannot debug it, and when I run this command gdb main.exe with a GNU gdb 7.1 I get this complain from gdb .... This GDB was configured as "mingw32". ... Reading symbols from /main.exe...Dwarf Error: bad offset (0x409000) in compilation unit header (offset 0x0 + 6) [in module /firts.exe] Please note, to keep this report more readable I replaced actual directories with . -- 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 Aug 12 17:03:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 12 Aug 2010 17:03:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 7878] New: Relocation error. Absolute 0 assumed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7878 Summary: Relocation error. Absolute 0 assumed 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: wendling at apple.com CC: llvmbugs at cs.uiuc.edu With this testcase: $ cat t.ll target triple = "x86_64-apple-darwin10.4" @ar.1462 = internal constant [2 x i16] [i16 0, i16 sub (i16 ptrtoint (i8* blockaddress(@foo, %l2) to i16), i16 ptrtoint (i8* blockaddres\ s(@foo, %bb) to i16))] ; <[2 x i16]*> [#uses=1] define i32 @foo(i32 %a) nounwind readnone optsize ssp { entry: %0 = sext i32 %a to i64 ; [#uses=1] %1 = getelementptr inbounds [2 x i16]* @ar.1462, i64 0, i64 %0 ; [#uses=1] %2 = load i16* %1, align 2 ; [#uses=1] %3 = sext i16 %2 to i64 ; [#uses=1] %4 = getelementptr inbounds i8* blockaddress(@foo, %bb), i64 %3 ; [#uses=1] indirectbr i8* %4, [label %bb, label %l2] l2: ; preds = %entry ret i32 2 bb: ; preds = %entry ret i32 1 } If you code-gen it and compile, you'll get this error: $ llc -o t.s t.ll $ gcc t.s t.s:24:Relocation error. Absolute 0 assumed t.s:24:Relocation error. Absolute 0 assumed ? -- 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 Aug 12 17:25:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 12 Aug 2010 17:25:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7876] ipsccp change return value to undef without reason In-Reply-To: References: Message-ID: <20100812222542.94FAA2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7876 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-12 17:25:42 CDT --- Fixed in r110962, 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 Thu Aug 12 18:55:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 12 Aug 2010 18:55:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 7879] New: null pointer error when empty StringRef is converted to std::string Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7879 Summary: null pointer error when empty StringRef is converted to std::string Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: jim at thegoodnows.net CC: llvmbugs at cs.uiuc.edu When an empty StringRef is constructed, the Data pointer is set to 0 and the length is set to 0. When that StringRef is converted to a std::string, the 0 is passed to the std::string constructor and the MS STL debug library checks the pointer before checking the length and gives a NULL pointer assertion error. This occurs in Clang in Preprocessor::Preprocessor on the line: PragmaHandlers = new PragmaNamespace(llvm::StringRef()); where PragmaNamespace wants a std::string as it's initializer. -- 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 Aug 12 19:01:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 12 Aug 2010 19:01:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 7880] New: llc with frame pointer elimination disabled generates incorrect epilogue code for the ARM target Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7880 Summary: llc with frame pointer elimination disabled generates incorrect epilogue code for the ARM target Product: libraries Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: release blocker Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel at 32bitmicro.com CC: llvmbugs at cs.uiuc.edu Using stock LVVM-2.7 x86_64 release C file fbench.c is compiled to byte code - fbench.bc /projects/test-suite/SingleSource/Benchmarks/Misc/fbench.c llc is then used to produce assembly with the following options: llc -O0 -regalloc=local -relocation-model=pic -f -disable-fp-elim fbench.bc -o fbench.bc.s fbench.bc.s is assembled and linked for Linux armel machine. Running the executable results in segfault at the stack adjustment code in @ BB#13 shown below: There seems to be two issues: - r11 (fp) does not have correct value for the stack pointer - "sub" is generated instead of "add" sub sp, r11, #28 ldr r4, [sp] Larger fragment: @ BB#13: ... - bl printf(PLT) mov r0, #0 sub sp, r11, #28 ldr r4, [sp] ldr r5, [sp, #+4] ldr r6, [sp, #+8] ldr r7, [sp, #+12] ldr r8, [sp, #+16] ldr r9, [sp, #+20] ldr r10, [sp, #+24] ldr r11, [sp, #+28] ldr lr, [sp, #+32] add sp, sp, #36 bx lr .LBB2_14: @ %bb29 ldr r0, .LCPI2_62 ldr r1, .LCPI2_63 -- 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 Aug 13 06:47:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 13 Aug 2010 06:47:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 5639] Remove boolean parameters from IRBuilder In-Reply-To: References: Message-ID: <20100813114716.871C32A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5639 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Benjamin Kramer 2010-08-13 06:47:16 CDT --- Yes, our initial analysis was wrong anyway. It was a flaky buildbot, not implicit conversion, causing trouble. -- 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 Aug 13 09:13:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 13 Aug 2010 09:13:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 7881] New: clang++ does not build Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7881 Summary: clang++ does not build Product: clang Version: trunk Platform: PC OS/Version: other Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: fgenolini at hotmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Windows Vista 64-bit VisualStudio 2010 32-bit Build target: ALL_BUILD as MinSizeRel 88 targets build OK clang++ fails to link I only want Objective-C, so I do not really care about C++ failing to build, but I would just like to let you know in case C++ matters to anybody. 3>------ Build started: Project: clang++, Configuration: MinSizeRel Win32 ------ 1> Copying clang's altivec.h... 2>PrintFunctionNames.obj : error LNK2019: unresolved external symbol "private: void __thiscall clang::APValue::MakeUninit(void)" (?MakeUninit at APValue@clang@@AAEXXZ) referenced in function "public: __thiscall clang::APValue::~APValue(void)" (??1APValue at clang@@QAE at XZ) 2>PrintFunctionNames.obj : error LNK2019: unresolved external symbol "public: __thiscall clang::FrontendAction::FrontendAction(void)" (??0FrontendAction at clang@@QAE at XZ) referenced in function "public: __thiscall clang::ASTFrontendAction::ASTFrontendAction(void)" (??0ASTFrontendAction at clang@@QAE at XZ) 2>PrintFunctionNames.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall clang::ASTFrontendAction::ExecuteAction(void)" (?ExecuteAction at ASTFrontendAction@clang@@MAEXXZ) 2>PrintFunctionNames.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall clang::FrontendAction::~FrontendAction(void)" (??1FrontendAction at clang@@UAE at XZ) referenced in function "public: virtual __thiscall clang::ASTFrontendAction::~ASTFrontendAction(void)" (??1ASTFrontendAction at clang@@UAE at XZ) 2>PrintFunctionNames.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall clang::ASTConsumer::HandleTopLevelDecl(class clang::DeclGroupRef)" (?HandleTopLevelDecl at ASTConsumer@clang@@UAEXVDeclGroupRef at 2@@Z) 2>PrintFunctionNames.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall clang::ASTConsumer::HandleInterestingDecl(class clang::DeclGroupRef)" (?HandleInterestingDecl at ASTConsumer@clang@@UAEXVDeclGroupRef at 2@@Z) 2>PrintFunctionNames.obj : error LNK2019: unresolved external symbol "public: bool __thiscall clang::DiagnosticBuilder::Emit(void)" (?Emit at DiagnosticBuilder@clang@@QAE_NXZ) referenced in function "public: __thiscall clang::DiagnosticBuilder::~DiagnosticBuilder(void)" (??1DiagnosticBuilder at clang@@QAE at XZ) 2>PrintFunctionNames.obj : error LNK2019: unresolved external symbol "public: class llvm::raw_ostream & __thiscall llvm::raw_ostream::write(char const *,unsigned int)" (?write at raw_ostream@llvm@@QAEAAV12 at PBDI@Z) referenced in function "public: class llvm::raw_ostream & __thiscall llvm::raw_ostream::operator<<(class llvm::StringRef)" (??6raw_ostream at llvm@@QAEAAV01 at VStringRef@1@@Z) 2>PrintFunctionNames.obj : error LNK2019: unresolved external symbol "public: class std::basic_string,class std::allocator > __thiscall clang::DeclarationName::getAsString(void)const " (?getAsString at DeclarationName@clang@@QBE?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ) referenced in function "public: class std::basic_string,class std::allocator > __thiscall clang::NamedDecl::getNameAsString(void)const " (?getNameAsString at NamedDecl@clang@@QBE?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ) 2>PrintFunctionNames.obj : error LNK2019: unresolved external symbol "class llvm::raw_ostream & __cdecl llvm::errs(void)" (?errs at llvm@@YAAAVraw_ostream at 1@XZ) referenced in function "public: virtual void __thiscall `anonymous namespace'::PrintFunctionsConsumer::HandleTopLevelDecl(class clang::DeclGroupRef)" (?HandleTopLevelDecl at PrintFunctionsConsumer@?A0xb6c0f3d6@@UAEXVDeclGroupRef at clang@@@Z) 2>PrintFunctionNames.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall clang::Diagnostic::getCustomDiagID(enum clang::Diagnostic::Level,class llvm::StringRef)" (?getCustomDiagID at Diagnostic@clang@@QAEIW4Level at 12@VStringRef at llvm@@@Z) referenced in function "protected: virtual bool __thiscall `anonymous namespace'::PrintFunctionNamesAction::ParseArgs(class clang::CompilerInstance const &,class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > const &)" (?ParseArgs at PrintFunctionNamesAction@?A0xb6c0f3d6@@MAE_NABVCompilerInstance at clang@@ABV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@std@@@Z) 2>C:\Projects\ObjectiveC\clangllvm\llvm-build\lib\MinSizeRel\PrintFunctionNames.dll : fatal error LNK1120: 11 unresolved externals -- 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 Aug 13 09:29:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 13 Aug 2010 09:29:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 7882] New: Fast scheduler does not handle inline assembly clobbers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7882 Summary: Fast scheduler does not handle inline assembly clobbers 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: amaury.pouly at gmail.com CC: llvmbugs at cs.uiuc.edu The fast scheduler does not look at the clobbers register of inline assembly instructions. Thus, it can miscompile code if the inline assembly destroys a physical register like a flag. Here is an hand written example that exhibit this behaviour, I'm not a very experienced llvm bitcode written but it exhibit the bug on my computer. ; expected behaviour: ; if main is called with zero or one argument, returns 42, else 13 define i32 @main(i32 %argc, i8** %argv) nounwind { entry: %res = icmp slt i32 1, %argc %tmp = call i32 asm sideeffect alignstack "push $$0 popf mov $$13, $0", "=r,r,~{memory},~{flags}" (i1 %res) %ret = select i1 %res, i32 %tmp, i32 42 ret i32 %ret } It is built to force the scheduler order: compare THEN inline THEN select. On X86 for example, the icmp will store the result in eflags, and select will generate a cmov. But the push;popf will clobber the flags as indicated. The fast scheduler won't see it and thus the flags will always be destroyed. This example is for X86 only but the problem is completely general. For completeness, the problem is located in ScheduleDAGFast::DelayForLiveRegsBottomUp. The fix is simple and is already implemented in the other schedulers (ScheduleDAGRRList::DelayForLiveRegsBottomUp). -- 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 Aug 13 12:31:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 13 Aug 2010 12:31:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 7826] -Xclang forwards to GCC In-Reply-To: References: Message-ID: <20100813173158.7EBE02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7826 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |daniel at zuster.org Resolution| |FIXED --- Comment #1 from Daniel Dunbar 2010-08-13 12:31:58 CDT --- Fixed here: http://llvm.org/viewvc/llvm-project?view=rev&revision=111005 -- 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 Aug 13 17:06:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 13 Aug 2010 17:06:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 7232] clang emits invalid IR on isunordered call with vector operands In-Reply-To: References: Message-ID: <20100813220653.D7AED2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7232 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2010-08-13 17:06:53 CDT --- This got fixed a while ago, r106584 I think. -- 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 Aug 13 17:35:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 13 Aug 2010 17:35:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 7056] Confusion by friend declaration of global template function In-Reply-To: References: Message-ID: <20100813223547.3507A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7056 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |WORKSFORME --- Comment #4 from Eli Friedman 2010-08-13 17:35:46 CDT --- I just tried downloading the project in question, and I don't see the error in question. The remaining issue seems to be a variant of bug 6840. -- 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 Aug 13 19:43:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 13 Aug 2010 19:43:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 7867] [indirectbr] code gen generates an undefined local symbol In-Reply-To: References: Message-ID: <20100814004327.7EA1B2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7867 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Dan Gohman 2010-08-13 19:43:27 CDT --- Fixed in r111061. -- 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 Aug 13 22:15:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 13 Aug 2010 22:15:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 3344] clang unconditionally rejects code with too many braces that is accepted by gcc In-Reply-To: References: Message-ID: <20100814031507.0868E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3344 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2010-08-13 22:15:06 CDT --- Fixed in r111067. -- 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 Aug 14 02:05:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 02:05:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 7883] New: Clang cannot build Erlang/OTP R14A (erts-5.8) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7883 Summary: Clang cannot build Erlang/OTP R14A (erts-5.8) Product: clang Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ttmrichter at gmail.com CC: llvmbugs at cs.uiuc.edu Issuing the following sequence causes compilation of the standard Erlang/OTP distribution, last tested on R14A (erts-5.8), to fail. The precise sequence of commands to replicate this behaviour (checked on several machines) is: CC=clang CXX=clang++ ./configure make The resulting build works fine until the file beam/beam_emu.c is reached. At this point, under gcc, the file compiles in seconds while under clang there is a VERY long period of time where one core plateaus at 100% for well over a minute. It then proceeds to spew the following error messages: ... lots of verbiage ... ... there's dozens of the warnings I've put here at the head as an example ... beam/beam_emu.c:4938:6: warning: incompatible integer to pointer conversion passing 'Uint' (aka 'unsigned long'), expected 'void const *' [-pedantic] Goto(hcc->opcode); ^~~~~~~~~~~~~~~~~ beam/beam_emu.c:55:26: note: instantiated from: # define Goto(Rel) goto *(Rel) ^~~~~~ 57 diagnostics generated. /tmp/cc-dkaevH.s: Assembler messages: /tmp/cc-dkaevH.s:312: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:393: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:1644: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:2464: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:2554: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:3414: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:4235: Error: symbol `.LBA12_process_main_' is already defined ... these messages continue for a long time -- hundreds of lines ... /tmp/cc-dkaevH.s:185467: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:185861: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:185952: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:186389: Error: symbol `.LBA12_process_main_' is already defined /tmp/cc-dkaevH.s:186868: Error: symbol `.LBA12_process_main_' is already defined clang: error: assembler command failed with exit code 1 (use -v to see invocation) make[3]: *** [obj/x86_64-unknown-linux-gnu/opt/smp/beam_emu.o] Error 1 make[3]: Leaving directory `/home/michael/Development/Erlang/otp_src_R14A/erts/emulator' make[2]: *** [opt] Error 2 make[2]: Leaving directory `/home/michael/Development/Erlang/otp_src_R14A/erts/emulator' make[1]: *** [smp] Error 2 make[1]: Leaving directory `/home/michael/Development/Erlang/otp_src_R14A/erts' make: *** [emulator] Error 2 The Erlang/OTP distribution that fails to build can be found at http://www.erlang.org/download/otp_src_R14A.tar.gz and, from my experiences, displays the failure 100% of the time under 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 Sat Aug 14 07:16:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 07:16:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 7886] New: Codegen/X86/sibcall.ll test fails on i686-apple-darwin8 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7886 Summary: Codegen/X86/sibcall.ll test fails on i686-apple-darwin8 Product: new-bugs Version: 2.7 Platform: PC URL: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2206 OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu See $URL. This command (with both LLVM 2.7 and trunk) outputs what is expected by the test: ~/llvm2.7/llvm-2.7/Release/bin/llc http://llvm.org/bugs/show_bug.cgi?id=7889 Summary: Assertion `isSimple()' failed with assignment to bitfield assignment Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { int j: 2; }; int main() { A a; (a.j = 2) = 3; } Crashes with: clang: CGValue.h:211: llvm::Value* clang::CodeGen::LValue::getAddress() const: Assertion `isSimple()' failed. -- 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 Aug 14 17:53:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 17:53:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 7890] New: blackscholes gives incorrect output Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7890 Summary: blackscholes gives incorrect output 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: simmon12 at illinois.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5368) --> (http://llvm.org/bugs/attachment.cgi?id=5368) blackscholes source code and test input blackscholes, a component of the PARSEC test suite, gives incorrect output using LLVM with any of the lli, llc, or cbackend. -- 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 Aug 14 17:54:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 17:54:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 7891] New: Assertion `DRE->getDeclName().getNameKind() == DeclarationName::Identifier && "Unhandled decl name kind!"' failed mangling function referring to member operator Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7891 Summary: Assertion `DRE->getDeclName().getNameKind() == DeclarationName::Identifier && "Unhandled decl name kind!"' failed mangling function referring to member operator Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { int operator+(); }; template struct S {}; template void g (S<&T::operator+ >) {} template void g (S<&A::operator+>); Crashes with: clang: Mangle.cpp:1919: void::CXXNameMangler::mangleExpression(const clang::Expr*): Assertion `DRE->getDeclName().getNameKind() == DeclarationName::Identifier && "Unhandled decl name kind!"' failed. -- 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 Aug 14 18:03:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 18:03:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7892] New: Crash in codegen with __PRETTY_FUNCTION__ in non-constant initializer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7892 Summary: Crash in codegen with __PRETTY_FUNCTION__ in non-constant initializer Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: int foo(const char*); int a = foo(__PRETTY_FUNCTION__); It appears to crash via a null pointer dereference; valgrind trace: ==21518== Invalid read of size 1 ==21518== at 0xB95994: clang::Decl::getTranslationUnitDecl() (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0xB95A88: clang::Decl::getASTContext() const (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0xBBA152: clang::PredefinedExpr::ComputeName(clang::PredefinedExpr::IdentType, clang::Decl const*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0x79CD7D: clang::CodeGen::CodeGenFunction::EmitPredefinedFunctionName(unsigned int) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0x79CF46: clang::CodeGen::CodeGenFunction::EmitPredefinedLValue(clang::PredefinedExpr const*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0x7A6680: clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0x7CD485: (anonymous namespace)::ScalarExprEmitter::EmitCastExpr(clang::CastExpr*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0x7CA951: clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0x7CED06: clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0x7A1726: clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*, bool, bool, bool) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0x7A180D: clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*, bool, bool) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== by 0x7742A0: clang::CodeGen::CodeGenFunction::EmitCallArg(clang::Expr const*, clang::QualType) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==21518== Address 0x1c is not stack'd, malloc'd or (recently) free'd -- 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 Aug 14 18:07:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 18:07:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 7893] New: C++ codegen crash with statement expression and non-trivial copy constructor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7893 Summary: C++ codegen crash with statement expression and non-trivial copy constructor Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { A (int j); A (const A &j); A& operator= (const A &j); }; void foo2() { A b = ({ A a(1); a; }); } Crashes with: clang: CGExprAgg.cpp:798: void clang::CodeGen::CodeGenFunction::EmitAggregateCopy(llvm::Value*, llvm::Value*, clang::QualType, bool): Assertion `(Record->hasTrivialCopyConstructor() || Record->hasTrivialCopyAssignment()) && "Trying to aggregate-copy a type without a trivial copy " "constructor or assignment operator"' failed. -- 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 Aug 14 18:08:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 18:08:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 7894] New: indirectbr with JIT produces segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7894 Summary: indirectbr with JIT produces segfault Product: new-bugs Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: flld0 at greynode.net CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5369) --> (http://llvm.org/bugs/attachment.cgi?id=5369) Code sample which crashes JIT Using indirectbr in JIT doesn't seem to work. With the attached file llvm-as bar.ll -o - | lli - crashes with a segfault, but llvm-as-bar.ll -o - | lli -force-interpreter=true - succeeds (and returns the appropriate value). Static compilation also seems to work. -- 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 Aug 14 18:11:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 18:11:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 7895] New: c++ crash initializing incomplete array type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7895 Summary: c++ crash initializing incomplete array type Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { A() : argv() { }; char* argv[]; int x; } y; Crashes (after printing an error) with: clang: SemaDeclCXX.cpp:1930: bool clang::Sema::SetBaseOrMemberInitializers(clang::CXXConstructorDecl*, clang::CXXBaseOrMemberInitializer**, unsigned int, bool): Assertion `ClassDecl->hasFlexibleArrayMember() && "Incomplete array type is not valid"' failed. -- 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 Aug 14 18:38:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 18:38:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 7896] New: c++ crash with overloading and using decl in class template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7896 Summary: c++ crash with overloading and using decl in class template Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template struct Foo { int k (float); }; struct Baz { int k (int); }; template struct Bar : public Foo, Baz { using Foo::k; using Baz::k; int foo() { return k (1.0f); } }; template int Bar::foo(); Crashes with: clang: SemaTemplateInstantiateDecl.cpp:2688: clang::NamedDecl* clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*, const clang::MultiLevelTemplateArgumentList&): Assertion `(Result || isa(D) || D->isInvalidDecl() || cast(ParentDC)->isInvalidDecl()) && "Unable to find instantiation of declaration!"' failed. -- 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 Aug 14 19:05:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 19:05:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 7897] New: clang c++ crash in asm with temporary with non-trivial destructor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7897 Summary: clang c++ crash in asm with temporary with non-trivial destructor Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { ~A(); }; int& foo(A); void bar() { asm("movl $0, %0" : "=r"(foo(A())) ); } Crashes with: clang: SemaDecl.cpp:4893: clang::OpaquePtr<0> clang::Sema::ActOnFinishFunctionBody(clang::OpaquePtr<0>, clang::ASTOwningPtr<&clang::ActionBase::DeleteStmt>, bool): Assertion `ExprTemporaries.empty() && "Leftover temporaries in function"' failed. -- 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 Aug 14 19:18:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 19:18:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 7898] New: clang c++ crash with invalid reference to member function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7898 Summary: clang c++ crash with invalid reference to member function Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { static int ns (float); int ns (int); void foo(); }; void A::foo () { int (A::*ptr4) (int) = ns; } Crashes with: clang: SemaOverload.cpp:934: bool clang::Sema::IsStandardConversion(clang::Expr*, clang::QualType, bool, clang::StandardConversionSequence&): Assertion `Context.hasSameType(FromType, FixOverloadedFunctionReference(From, AccessPair, Fn)->getType())' failed. Note that Comeau gives "error: nonstandard form for taking the address of a member function". -- 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 Aug 14 19:31:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 19:31:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 7899] New: clang c++ crash with using and friend declaration Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7899 Summary: clang c++ crash with using and friend declaration Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: void foo(); namespace bar { using ::foo; class baz { friend void foo(); }; } Crashes with: clang: IdentifierResolver.cpp:74: void clang::IdentifierResolver::IdDeclInfo::RemoveDecl(clang::NamedDecl*): Assertion `0 && "Didn't find this decl on its identifier's chain!"' failed. -- 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 Aug 14 19:35:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 19:35:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 7900] New: clang c++ crash with invalid explicit destructor call Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7900 Summary: clang c++ crash with invalid explicit destructor call Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { }; struct B : public A { }; void foo() { B b; b.~A(); } Crashes with: clang: /home/eli/llvmgbuild/include/llvm/Support/Casting.h:202: typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X = clang::CXXRecordDecl, Y = clang::DeclContext*]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed. -- 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 Aug 14 19:39:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 19:39:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 7901] New: clang c++ crash with template instantiated with locally-declared extern variable Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7901 Summary: clang c++ crash with template instantiated with locally-declared extern variable Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template struct A { A(); }; void foo() { extern int i01; A<&i01> a01; } Crashes with: clang: SemaTemplateInstantiate.cpp:1654: clang::Decl* clang::Sema::LocalInstantiationScope::getInstantiationOf(const clang::Decl*): Assertion `D->isInvalidDecl() && "declaration was not instantiated in this scope!"' failed. -- 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 Aug 14 19:46:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 19:46:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 7902] New: clang c++ crash with template template parameter with no parameters Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7902 Summary: clang c++ crash with template template parameter with no parameters Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template class C> class D; Crashes with: clang: /home/eli/llvmgbuild/include/llvm/ADT/SmallVector.h:155: T& llvm::SmallVectorTemplateCommon::operator[](unsigned int) [with T = clang::OpaquePtr<0>]: Assertion `begin() + idx < end()' failed. -- 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 Aug 14 20:48:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 20:48:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 7903] New: clang c++ infinite loop with recursive instantiation of virtual method Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7903 Summary: clang c++ infinite loop with recursive instantiation of virtual method Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase (from gcc testsuite): template struct inner {}; template struct parent { virtual void f() { parent > p; }; }; template struct parent; This loops forever in the while(1) in Sema::ActOnEndOfTranslationUnit. -- 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 Aug 14 20:55:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 20:55:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 7904] New: clang c++ missing diagnostic for destructor declared as template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7904 Summary: clang c++ missing diagnostic for destructor declared as template Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct Foo { template ~Foo() {} }; Foo f; Crashes with: clang: /home/eli/llvmgbuild/include/llvm/Support/Casting.h:202: typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X = clang::CXXDestructorDecl, Y = clang::NamedDecl*]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed. -- 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 Aug 14 21:05:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 21:05:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7905] New: clang c++ crash with compound literal with array with templated element type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7905 Summary: clang c++ crash with compound literal with array with templated element type Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template struct M; void foo() { (M []) {{3}}; } Crashes with: clang: /home/eli/llvmgbuild/tools/clang/lib/AST/../../include/clang/AST/DeclCXX.h:382: const clang::CXXRecordDecl::DefinitionData& clang::CXXRecordDecl::data() const: Assertion `DefinitionData && "queried property of class with no definition"' failed. -- 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 Aug 14 21:31:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 21:31:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 7906] New: Assertion failure with invalid use of function template as scope specifier Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7906 Summary: Assertion failure with invalid use of function template as scope specifier Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template void foo() { foo<0>:: Crashes with: clang: ParseExprCXX.cpp:227: bool clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&, void*, bool, bool*): Assertion `false && "FIXME: Only type template names supported here"' failed. -- 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 Aug 14 22:34:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 22:34:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 7907] New: clang c++ crash instantiating value initialization of reference Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7907 Summary: clang c++ crash instantiating value initialization of reference Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com template T f() { T a = T(); } template int& f(); Crashes with: clang: /home/eli/llvmgbuild/tools/clang/lib/CodeGen/../../include/clang/AST/Expr.h:94: void clang::Expr::setType(clang::QualType): Assertion `(t.isNull() || !t->isReferenceType()) && "Expressions can't have reference type"' failed. -- 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 Aug 14 22:41:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 22:41:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 7908] New: clang c++ crash catching an object whose copy constructor has a destructible default argument Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7908 Summary: clang c++ crash catching an object whose copy constructor has a destructible default argument Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct D { ~D(); }; struct S { S(const S&, D = D()); }; void foo() { try {} catch (S s) {} } Crashes with: clang: SemaDecl.cpp:4893: clang::OpaquePtr<0> clang::Sema::ActOnFinishFunctionBody(clang::OpaquePtr<0>, clang::ASTOwningPtr<&clang::ActionBase::DeleteStmt>, bool): Assertion `ExprTemporaries.empty() && "Leftover temporaries in function"' failed. -- 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 Aug 14 22:52:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 14 Aug 2010 22:52:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 7909] New: clang c++ use-after-free with templates Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7909 Summary: clang c++ use-after-free with templates Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template struct A {}; template const T& foo(); invalid(A())>); First valgrind error: ==25464== Invalid read of size 4 ==25464== at 0xC3B9A4: clang::Parser::ParseCastExpression(bool, bool, bool&, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3BC69: clang::Parser::ParseCastExpression(bool, bool, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3BCCD: clang::Parser::ParseAssignmentExpression() (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3BE27: clang::Parser::ParseExpressionList(llvm::SmallVector&, llvm::SmallVector&, void (clang::Action::*)(clang::Scope*, void*, void**, unsigned int), void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3C694: clang::Parser::ParsePostfixExpressionSuffix(clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3B754: clang::Parser::ParseCastExpression(bool, bool, bool&, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3BC69: clang::Parser::ParseCastExpression(bool, bool, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3DCB5: clang::Parser::ParseConstantExpression() (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC4BA91: clang::Parser::ParseTemplateArgument() (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC4BB2A: clang::Parser::ParseTemplateArgumentList(llvm::SmallVector&) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC4BE94: clang::Parser::ParseTemplateIdAfterTemplateName(clang::OpaquePtr<2>, clang::SourceLocation, clang::CXXScopeSpec const*, bool, clang::SourceLocation&, llvm::SmallVector&, clang::SourceLocation&) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC4C515: clang::Parser::AnnotateTemplateIdToken(clang::OpaquePtr<2>, clang::TemplateNameKind, clang::CXXScopeSpec const*, clang::UnqualifiedId&, clang::SourceLocation, bool) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== Address 0x5e20cc0 is 32 bytes inside a block of size 88 free'd ==25464== at 0x4C280BD: free (vg_replace_malloc.c:366) ==25464== by 0xC094C8: clang::UnqualifiedId::clear() (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC41EC1: clang::Parser::ParseCXXIdExpression(bool) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3B14B: clang::Parser::ParseCastExpression(bool, bool, bool&, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3BC69: clang::Parser::ParseCastExpression(bool, bool, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3B450: clang::Parser::ParseCastExpression(bool, bool, bool&, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3BC69: clang::Parser::ParseCastExpression(bool, bool, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3BCCD: clang::Parser::ParseAssignmentExpression() (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3BE27: clang::Parser::ParseExpressionList(llvm::SmallVector&, llvm::SmallVector&, void (clang::Action::*)(clang::Scope*, void*, void**, unsigned int), void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3C694: clang::Parser::ParsePostfixExpressionSuffix(clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3B754: clang::Parser::ParseCastExpression(bool, bool, bool&, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/clang) ==25464== by 0xC3BC69: clang::Parser::ParseCastExpression(bool, bool, void*) (in /home/eli/llvmgbuild/Release+Asserts/bin/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 Sun Aug 15 09:52:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 15 Aug 2010 09:52:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 7913] New: False positive - Assigned value is garbage or undefined Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7913 Summary: False positive - Assigned value is garbage or undefined 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: clang-bugzilla at macspice.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5370) --> (http://llvm.org/bugs/attachment.cgi?id=5370) Code exhibiting issue The attached sample code comprises two versions of a short routine called 'shrink'. They should be equivalent but the second one produces a false positive 'Assigned value is garbage or undefined'. Such a warning would make sense if the value of op->npar was a volatile, but it isn't. Thanks. Charles --------- $ /Developer/usr/bin/clang -v --analyze /Users/X/Documents/clang-bug/main.c -o foo.html Apple clang version 1.5 (tags/Apple/clang-60) Target: x86_64-apple-darwin10 Thread model: posix "/Developer/usr/bin/clang" -cc1 -triple x86_64-apple-darwin10.0.0 -analyze -disable-free -disable-llvm-verifier -main-file-name main.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-check-dead-stores -analyzer-check-objc-mem -analyzer-eagerly-assume -analyzer-check-objc-methodsigs -analyzer-check-objc-unused-ivars -analyzer-output plist -w -pic-level 1 -mdisable-fp-elim -munwind-tables -target-cpu core2 -v -resource-dir /Developer/usr/lib/clang/1.5 -ferror-limit 19 -fmessage-length 103 -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o foo.html -x c /Users/X/Documents/clang-bug/main.c clang -cc1 version 1.5 based upon llvm 2.7svn hosted on x86_64-apple-darwin10 #include "..." search starts here: #include <...> search starts here: /Developer/usr/lib/clang/1.5/include /usr/local/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. /Users/X/Documents/clang-bug/main.c:16:3: warning: Assigned value is garbage or undefined t[i] = s[i]; ^ ~~~~ 1 warning 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 Sun Aug 15 14:41:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 15 Aug 2010 14:41:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 7886] Codegen/X86/sibcall.ll test fails on i686-apple-darwin8 In-Reply-To: References: Message-ID: <20100815194159.EBEEE2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7886 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dalej at apple.com Resolution| |FIXED --- Comment #1 from Dale Johannesen 2010-08-15 14:41:59 CDT --- Codegen is correct, and matches native gcc (darwin8=10.4 linker is not smart enough to synthesize stubs, so the compiler does it). I've marked the test as XFAIL on darwin8. -- 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 Aug 15 16:04:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 15 Aug 2010 16:04:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7915] New: clang c++ crash declaring friend with same name as containing class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7915 Summary: clang c++ crash declaring friend with same name as containing class Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct S { friend void S(); }; Crashes with: clang: SemaOverload.cpp:557: clang::Sema::OverloadKind clang::Sema::CheckOverload(clang::Scope*, clang::FunctionDecl*, const clang::LookupResult&, clang::NamedDecl*&, bool): Assertion `Old.getLookupKind() == LookupUsingDeclName' failed. -- 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 Aug 15 16:13:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 15 Aug 2010 16:13:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 7916] New: clang c++ crash in name lookup with unusual inheritance structure Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7916 Summary: clang c++ crash in name lookup with unusual inheritance structure Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { struct B { }; }; struct C : A, A::B { void foo(B b); }; Crashes with: clang: /home/eli/llvmgbuild/tools/clang/lib/Sema/../../include/clang/Sema/Lookup.h:578: void clang::LookupResult::sanity() const: Assertion `ResultKind != Ambiguous || Decls.size() > 1 || (Decls.size() == 1 && Ambiguity == AmbiguousBaseSubobjects)' failed. -- 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 Aug 15 17:29:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 15 Aug 2010 17:29:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 7917] New: bogus Diagnostic for static const functions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7917 Summary: bogus Diagnostic for static const functions Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bugzilla-clang at sogetthis.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When it encounters a const static function Clang will not only report this but also a 'conflicting types' error that actually does not exist in the source. It looks like Clang just ignores the 'const' in the declaration which then leads to inconsistency with the definition. (Hope I did not mix up declaration and definition...) example: -------- $ cat test.cpp class Foo { static void bar() const; }; void Foo::bar() const {} $ clang++ test.cpp test.cpp:2:15: error: type qualifier is not allowed on this function static void bar() const; ^ test.cpp:5:11: error: conflicting types for 'bar' void Foo::bar() const {} ^ test.cpp:2:15: note: previous declaration is here static void bar() const; ^ 2 errors 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 Sun Aug 15 22:33:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 15 Aug 2010 22:33:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 7919] New: lit: scroll occurs with progress bar on cygwin Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7919 Summary: lit: scroll occurs with progress bar on cygwin Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu Win32 console feeds cursor to next line at last(+80)column. it does not occur with workaround "self.width = 79". example: 0% [-----------------------------------------------------------] ETA: 00:47:49 0% [-----------------------------------------------------------] ETA: 00:48:12 0% [-----------------------------------------------------------] ETA: 00:47:35 0% [-----------------------------------------------------------] ETA: 00:47:23 LLVM :: Analysis/BasicAA/2007-11-05-SizeCrash.ll -- 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 Aug 16 04:40:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 16 Aug 2010 04:40:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 7920] New: Using const wchar_t and compiling with -g causes segfault. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7920 Summary: Using const wchar_t and compiling with -g causes segfault. Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hans at chromium.org CC: llvmbugs at cs.uiuc.edu The following code causes a segfault when compiling it with the -g flag: void foo() { const wchar_t c = L'x'; wchar_t d = c; } Using Clang built from r111120 gives the following output: 0 clang 0x00000000018f32ef 1 clang 0x00000000018f3a77 2 libpthread.so.0 0x00007f62df1af7d0 3 clang 0x00000000016f27f5 llvm::DIDescriptor::getUInt64Field(unsigned int) const + 53 4 clang 0x00000000013faa4c llvm::DwarfDebug::constructGlobalVariableDIE(llvm::MDNode const*) + 2716 5 clang 0x000000000140168f llvm::DwarfDebug::beginModule(llvm::Module*) + 575 6 clang 0x000000000140251d llvm::DwarfDebug::DwarfDebug(llvm::AsmPrinter*, llvm::Module*) + 2653 7 clang 0x00000000013e2ee7 llvm::AsmPrinter::doInitialization(llvm::Module&) + 775 8 clang 0x000000000182f9d5 llvm::FPPassManager::doInitialization(llvm::Module&) + 85 9 clang 0x0000000001834123 llvm::FunctionPassManagerImpl::doInitialization(llvm::Module&) + 115 10 clang 0x0000000001834601 llvm::FunctionPassManager::doInitialization() + 17 11 clang 0x00000000007caa8e clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 1230 12 clang 0x00000000007c6925 13 clang 0x0000000000927278 clang::ParseAST(clang::Sema&, bool) + 680 14 clang 0x00000000007c7312 clang::CodeGenAction::ExecuteAction() + 66 15 clang 0x00000000006929b1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 353 16 clang 0x00000000006ab3b5 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1253 17 clang 0x00000000006884f4 cc1_main(char const**, char const**, char const*, void*) + 484 18 clang 0x000000000068fdd1 main + 5393 19 libc.so.6 0x00007f62de4bf1c4 __libc_start_main + 244 20 clang 0x0000000000686db9 Stack dump: 0. Program arguments: /work/llvm/Release+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name a.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.18.0.20080103 -g -resource-dir /work/llvm/Release+Asserts/lib/clang/2.8 -ferror-limit 19 -fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-GAr20i.s -x c++ a.cc 1. parser at end of file 2. Code generation clang: error: clang frontend command failed due to signal 11 (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 Mon Aug 16 09:01:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 16 Aug 2010 09:01:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 7922] New: Using-declaration cannot refer to a conversion function specialization Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7922 Summary: Using-declaration cannot refer to a conversion function specialization Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: schaub-johannes at web.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This programm is ill-formed according to 14.5.2/7, but clang accepts it: struct A { template operator T(); }; struct B : A { // ill-formed: refers to specialization using A::operator int; }; -- 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 Aug 16 13:53:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 16 Aug 2010 13:53:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 7922] Using-declaration cannot refer to a conversion function specialization In-Reply-To: References: Message-ID: <20100816185308.C22402A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7922 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |DUPLICATE --- Comment #1 from Eli Friedman 2010-08-16 13:53:08 CDT --- *** This bug has been marked as a duplicate of bug 7469 *** -- 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 Aug 16 17:49:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 16 Aug 2010 17:49:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 7924] New: clang does not support family of builtin complex functions (conj, creal, cimag) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7924 Summary: clang does not support family of builtin complex functions (conj, creal, cimag) Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: fjahanian at apple.com CC: llvmbugs at cs.uiuc.edu Attached test fails (with multiple link errors because of the above. [jahan8:fariborz/radars/8315199] fjahania% clang complex-1.c Undefined symbols: "_main", referenced from: start in crt1.10.6.o (maybe you meant: _main_test) "_link_error", referenced from: _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o _main_test in cc-zh5hI3.o ld: symbol(s) not found % llvm-gcc complex-1.c Undefined symbols: "_main", referenced from: start in crt1.10.6.o (maybe you meant: _main_test) ld: symbol(s) not found 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 Mon Aug 16 18:03:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 16 Aug 2010 18:03:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 7925] New: APSInt signedness assertion in BasicValueFactory::EvaluateAPSInt Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7925 Summary: APSInt signedness assertion in BasicValueFactory::EvaluateAPSInt Product: clang Version: unspecified Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: tcare at apple.com CC: llvmbugs at cs.uiuc.edu, jediknil at belkadan.com Ran into this assertion while trying to reduce a test case from WINE. The function I was reducing was DllRegisterServer. Starting program: /Volumes/Data/Users/tcare/Projects/llvm-eclipse/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -analyze -disable-free -main-file-name hlink_main.i -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-check-dead-stores -analyzer-check-objc-mem -analyzer-eagerly-assume -analyzer-check-objc-methodsigs -analyzer-check-objc-unused-ivars -analyzer-check-idempotent-operations -analyzer-output plist -w -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -resource-dir /Volumes/Data/Users/tcare/Projects/llvm-eclipse/lib/clang/2.8 -ferror-limit 19 -fmessage-length 236 -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -analyzer-experimental-checks -o hlink_main.plist -x cpp-output hlink_main.i Reading symbols for shared libraries ++. done In file included from hlink_main.i:22: ../../include/winnt.h:3950:39: warning: Both operands to '-' always have the same value return s - str; ~ ^ ~~~ Assertion failed: (IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!"), function operator-, file /Volumes/Data/Users/tcare/Projects/llvm/include/llvm/ADT/APSInt.h, line 230. Program received signal SIGABRT, Aborted. 0x00007fff824c7676 in __kill () (gdb) bt #0 0x00007fff824c7676 in __kill () #1 0x00007fff82567cba in abort () #2 0x00007fff82554c80 in __assert_rtn () #3 0x00000001009a7c50 in llvm::APSInt::operator- (this=0x105080f88, RHS=@0x105078b00) at /Volumes/Data/Users/tcare/Projects/llvm/include/llvm/ADT/APSInt.h:230 #4 0x000000010069424b in clang::BasicValueFactory::EvaluateAPSInt (this=0x7fff5fbfcb38, Op=Sub, V1=@0x105080f88, V2=@0x105078b00) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/BasicValueFactory.cpp:165 #5 0x00000001007cd23e in clang::nonloc::ConcreteInt::evalBinOp (this=0x7fff5fbfa728, ValMgr=@0x7fff5fbfcb30, Op=Sub, R=@0x7fff5fbfa718) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/SVals.cpp:225 #6 0x00000001007d5cbd in (anonymous namespace)::SimpleSValuator::EvalBinOpNN (this=0x104d123f0, state=0x1050816b8, op=Sub, resultTy={Value = {Value = 4378946600}}, lhs={ = { = { = {Data = 0x7fff5fbfa728, Kind = 1606395704}, }, }, }, rhs={ = { = { = {Data = 0x7fff5fbfa718, Kind = 1606395688}, }, }, }) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/SimpleSValuator.cpp:419 #7 0x0000000100702719 in (anonymous namespace)::CStringChecker::CheckBufferAccess (this=0x104d11f20, C=@0x7fff5fbfae10, state=0x1050816b8, Size=0x105060418, FirstBuf=0x1050603b8, SecondBuf=0x0, FirstIsDestination=false) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/CStringChecker.cpp:269 #8 0x0000000100701052 in (anonymous namespace)::CStringChecker::EvalMemcmp (this=0x104d11f20, C=@0x7fff5fbfae10, CE=0x105060338) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/CStringChecker.cpp:755 #9 0x000000010070034c in (anonymous namespace)::CStringChecker::EvalCallExpr (this=0x104d11f20, C=@0x7fff5fbfae10, CE=0x105060338) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/CStringChecker.cpp:927 #10 0x0000000100749fbc in clang::Checker::GR_EvalCallExpr (this=0x104d11f20, Dst=@0x7fff5fbfaff8, Builder=@0x7fff5fbfc5e8, Eng=@0x7fff5fbfca28, CE=0x105060338, Pred=0x105081450, tag=0x1022479a0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/include/clang/Checker/PathSensitive/Checker.h:223 #11 0x000000010072c824 in clang::GRExprEngine::CheckerEvalCall (this=0x7fff5fbfca28, CE=0x105060338, Dst=@0x7fff5fbfb448, Pred=0x105081450) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:291 #12 0x000000010073685f in clang::GRExprEngine::VisitCall (this=0x7fff5fbfca28, CE=0x105060338, Pred=0x1050805c8, AI={I = 0x105060370}, AE={I = 0x105060388}, Dst=@0x7fff5fbfc220, asLValue=false) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:2116 #13 0x0000000100731523 in clang::GRExprEngine::Visit (this=0x7fff5fbfca28, S=0x105060338, Pred=0x1050805c8, Dst=@0x7fff5fbfc220) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:891 #14 0x000000010072fe42 in clang::GRExprEngine::ProcessStmt (this=0x7fff5fbfca28, CE={Data = {Value = 4379247416}}, builder=@0x7fff5fbfc5e8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRExprEngine.cpp:727 #15 0x0000000100726f8a in clang::GRCoreEngine::ProcessStmt (this=0x7fff5fbfca38, E={Data = {Value = 4379247416}}, Builder=@0x7fff5fbfc5e8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/include/clang/Checker/PathSensitive/GRCoreEngine.h:95 #16 0x0000000100723756 in clang::GRCoreEngine::HandlePostStmt (this=0x7fff5fbfca38, L=@0x7fff5fbfc7a0, B=0x105074580, StmtIdx=1, Pred=0x1050805c8) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRCoreEngine.cpp:386 #17 0x0000000100722e30 in clang::GRCoreEngine::ExecuteWorkList (this=0x7fff5fbfca38, L=0x104d12070, Steps=149982, InitState=0x0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/GRCoreEngine.cpp:197 #18 0x0000000100672e7a in clang::GRExprEngine::ExecuteWorkList (this=0x7fff5fbfca28, L=0x104d12070, Steps=150000) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/include/clang/Checker/PathSensitive/GRExprEngine.h:133 #19 0x000000010066d645 in ActionGRExprEngine (C=@0x104d0d720, mgr=@0x104d0e8c0, D=0x10505f4c0, tf=0x104d148e0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:361 #20 0x000000010066d346 in ActionObjCMemCheckerAux (C=@0x104d0d720, mgr=@0x104d0e8c0, D=0x10505f4c0, GCEnabled=false) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:382 #21 0x000000010066d13f in ActionObjCMemChecker (C=@0x104d0d720, mgr=@0x104d0e8c0, D=0x10505f4c0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:392 #22 0x00000001006716db in (anonymous namespace)::AnalysisConsumer::HandleCode (this=0x104d0d720, D=0x10505f4c0, actions=@0x104d0d730) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:303 #23 0x0000000100670c97 in (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit (this=0x104d0d720, C=@0x105014200) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Checker/AnalysisConsumer.cpp:215 #24 0x000000010039eed4 in clang::ParseAST (S=@0x105025800, PrintStats=false) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Sema/ParseAST.cpp:103 #25 0x00000001000aa2dc in clang::ASTFrontendAction::ExecuteAction (this=0x104d072a0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:264 #26 0x00000001000a9e7d in clang::FrontendAction::Execute (this=0x104d072a0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:184 #27 0x0000000100073b94 in clang::CompilerInstance::ExecuteAction (this=0x104d07360, Act=@0x104d072a0) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:535 #28 0x00000001000a733c in clang::ExecuteCompilerInvocation (Clang=0x104d07360) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/lib/Frontend/ExecuteCompilerInvocation.cpp:147 #29 0x0000000100009993 in cc1_main (ArgBegin=0x7fff5fbfe9a0, ArgEnd=0x7fff5fbfeae8, Argv0=0x104d043b8 "/Volumes/Data/Users/tcare/Projects/llvm-eclipse/bin/clang", MainAddr=0x100001840) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/tools/driver/cc1_main.cpp:160 #30 0x0000000100001b3c in main (argc_=43, argv_=0x7fff5fbff228) at /Volumes/Data/Users/tcare/Projects/llvm/tools/clang/tools/driver/driver.cpp:267 -- 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 Aug 16 18:26:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 16 Aug 2010 18:26:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7925] APSInt signedness assertion in BasicValueFactory::EvaluateAPSInt In-Reply-To: References: Message-ID: <20100816232616.6917E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7925 Jordy Rose changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Jordy Rose 2010-08-16 18:26:15 CDT --- When checking buffer accesses, the "size" being passed around was assumed to be unsigned. Fixed in r111205. -- 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 Aug 16 18:27:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 16 Aug 2010 18:27:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 7924] clang does not support family of builtin complex functions (conj, creal, cimag) In-Reply-To: References: Message-ID: <20100816232715.E8AF22A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7924 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #4 from Chris Lattner 2010-08-16 18:27:15 CDT --- This is a minor optimization that isn't worth tracking in 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 Tue Aug 17 05:05:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 05:05:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 7894] indirectbr with JIT produces segfault In-Reply-To: References: Message-ID: <20100817100525.80C562A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7894 Benjamin S. Scarlet changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Benjamin S. Scarlet 2010-08-17 05:05:25 CDT --- *** This bug has been marked as a duplicate of bug 6744 *** -- 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 Aug 17 07:43:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 07:43:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 7926] New: Clang fails to compile code which uses inline keyword with -O0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7926 Summary: Clang fails to compile code which uses inline keyword with -O0 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hkultala at cs.tut.fi CC: llvmbugs at cs.uiuc.edu very simple functions with just inline keyword don't seem to compile with clang when -O0 is used. with -O1, -O2, -O3 they seem to compile Attachment is a very small&simple c code file which fails to compile with clang with -O0. -- 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 Aug 17 08:01:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 08:01:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7927] New: clang++: extern"C" in namespace cannot be compiled Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7927 Summary: clang++: extern"C" in namespace cannot be compiled Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com enum T {E}; extern "C" void f(int); namespace { extern "C" void f(int); void foo() { f(E); // err f(0); ::f(E); ::f(0); } } void bar() { f(E); // err f(0); // err ::f(E); ::f(0); } //////////////////////////////// * checked on mingw and ppc-f12. * It passes on g++-4.4.0. * It will pass on clang++ when either of extern is commented out. I met this issue when I attempted buiding stage2 clang on mingw. at lib/System/Win32/Program.inc:321 SetInformationJobObject(). //////////////////////////////// $ ../Release+Asserts/bin/clang++.exe p.cc -S p.cc:10:5: error: call to 'f' is ambiguous f(E); // err ^ p.cc:3:17: note: candidate function extern "C" void f(int); ^ p.cc:6:19: note: candidate function extern "C" void f(int); ^ p.cc:19:3: error: call to 'f' is ambiguous f(E); // err ^ p.cc:3:17: note: candidate function extern "C" void f(int); ^ p.cc:6:19: note: candidate function extern "C" void f(int); ^ p.cc:20:3: error: call to 'f' is ambiguous f(0); // err ^ p.cc:3:17: note: candidate function extern "C" void f(int); ^ p.cc:6:19: note: candidate function extern "C" void f(int); ^ 3 errors 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 Tue Aug 17 08:18:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 08:18:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 7926] Clang fails to compile code which uses inline keyword with -O0 In-Reply-To: References: Message-ID: <20100817131827.983A02A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7926 Sylv?re Teissier changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |quickslyver at free.fr Resolution| |INVALID --- Comment #2 from Sylv?re Teissier 2010-08-17 08:18:27 CDT --- That's gnu specific inlining style. Please use --std=gnu89 or use C99 Standard inlining style. -- 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 Aug 17 08:21:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 08:21:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 7706] clang++ produces incorrect outputcode with boost::shared_ptr and -O0 In-Reply-To: References: Message-ID: <20100817132144.EEBA22A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7706 Hermann Kraus changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Hermann Kraus 2010-08-17 08:21:44 CDT --- This bug does no longer appear with clang version 2.8 (trunk 111227). -- 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 Aug 17 09:13:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 09:13:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 6765] [alpha] ../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp error In-Reply-To: References: Message-ID: <20100817141310.C4E212A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6765 Andrew Lenharth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Andrew Lenharth 2010-08-17 09:13:10 CDT --- resolved a while ago -- 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 Aug 17 09:55:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 09:55:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7928] New: if() branches incorrectly with conditional involving temporaries Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7928 Summary: if() branches incorrectly with conditional involving temporaries Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: brad.king at kitware.com CC: llvmbugs at cs.uiuc.edu Tested as of svn revision 110904 of clang and llvm. $ cat test.cxx #include #include int main() { if(std::string("x").size() == (std::strlen("")+1)) { return 0; } else { return 1; } } $ g++ test.cxx ; ./a.out ; echo $? 0 $ clang++ -O0 test.cxx ; ./a.out ; echo $? 1 The result from clang++ should have been 0 also. The problem goes away when optimizations are enabled: $ clang++ -O1 test.cxx ; ./a.out ; echo $? 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 Aug 17 12:24:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 12:24:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 7792] ARM disassembler: rsb, rsc, pkh, ssat instructions emit zero shifts In-Reply-To: References: Message-ID: <20100817172421.A16DE2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7792 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Bob Wilson 2010-08-17 12:24:21 CDT --- Fixed PKH instructions in svn 111251. That's the last of them, so this is completely fixed now. -- 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 Aug 17 13:05:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 13:05:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 7930] New: improve diagnostic note for call to private/protected method Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7930 Summary: improve diagnostic note for call to private/protected method Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bugzilla-clang at sogetthis.com CC: llvmbugs at cs.uiuc.edu example: $ cat test.cpp class Foo { Foo(); }; Foo::Foo() {} int main() { Foo a; return 0; } $ clang++ ./test.cpp ./test.cpp:7:5: error: calling a private constructor of class 'Foo' Foo a; ^ ./test.cpp:4:6: note: declared private here Foo::Foo() {} ^ 1 error generated. This is much better than gcc already, but the note is not correct since it points not to the declaration but the implementation. (Hope I got the terms right.) -- 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 Aug 17 13:10:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 13:10:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 7931] New: __floatsidf output is wrong with INT_MIN as input Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7931 Summary: __floatsidf output is wrong with INT_MIN as input Product: compiler-rt Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: compiler-rt AssignedTo: unassignedbugs at nondot.org ReportedBy: quickslyver at free.fr CC: llvmbugs at cs.uiuc.edu $cat test.c #include #include #include double __floatsidf(int); int main() { double b=(double)INT_MIN; double a=__floatsidf(INT_MIN); printf("a=%f\n",a); printf("b=%f\n",b); printf("a=%x%x\n",*((int*)&a+1),*(int*)&a); printf("b=%x%x\n",*((int*)&b+1),*(int*)&b); assert(a==b); } --------------------------------- $./a.out a=-536870912.000000 b=-2147483648.000000 a=c1c000000 b=c1e000000 a.out: test2.c:14: main: Assertion `a==b' failed. 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 Tue Aug 17 16:22:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 16:22:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 5306] r84987 breaks some simple code In-Reply-To: References: Message-ID: <20100817212206.3C7692A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5306 Sylv?re Teissier changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Sylv?re Teissier 2010-08-17 16:22:05 CDT --- it works on r111011 -- 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 Aug 17 16:47:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 16:47:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 6798] missed optimization on byval argument with memcpy In-Reply-To: References: Message-ID: <20100817214706.F24B52A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6798 Sylv?re Teissier changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Sylv?re Teissier 2010-08-17 16:47:06 CDT --- ok... in fact that's the pinter to the structure that is byval, so there is no problem with this code -- 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 Aug 17 18:27:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 18:27:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 7591] exception Failure("There are two interfaces of module Llvm_executionengine.") In-Reply-To: References: Message-ID: <20100817232726.2351F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7591 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-17 18:27:25 CDT --- This was reported as fixed on llvmdev. -- 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 Aug 17 18:29:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 18:29:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 7875] MSVC Internal Compiler Error - Win64 In-Reply-To: References: Message-ID: <20100817232947.38F602A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7875 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |FIXED --- Comment #6 from Ted Kremenek 2010-08-17 18:29:46 CDT --- (In reply to comment #4) > Created an attachment (id=5365) --> (http://llvm.org/bugs/attachment.cgi?id=5365) [details] > Another way to fix the crash > > ... and this also works. > > Take your pick, I don't know which is more "correct" style-wise. I applied this patch: http://llvm.org/viewvc/llvm-project?view=rev&revision=111327 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 Tue Aug 17 18:37:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 18:37:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 7931] __floatsidf output is wrong with INT_MIN as input In-Reply-To: References: Message-ID: <20100817233726.6175B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7931 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-08-17 18:37:26 CDT --- I think Steve fixed this in r111269 -- 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 Aug 17 18:58:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 18:58:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 7892] Crash in codegen with __PRETTY_FUNCTION__ in non-constant initializer In-Reply-To: References: Message-ID: <20100817235821.17F062A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7892 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-17 18:58:20 CDT --- Fixed in r111330 -- 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 Aug 17 19:08:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 19:08:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 7889] Assertion `isSimple()' failed with assignment to bitfield assignment In-Reply-To: References: Message-ID: <20100818000840.405162A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7889 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-17 19:08:39 CDT --- Fixed in r111331, 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 Tue Aug 17 19:11:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 19:11:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 7879] null pointer error when empty StringRef is converted to std::string In-Reply-To: References: Message-ID: <20100818001135.5635E2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7879 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-17 19:11:35 CDT --- Nice catch, fixed in r111332. -- 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 Aug 17 19:29:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 19:29:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 7778] undefined behavior at BitstreamWriter.h, (92:5) In-Reply-To: References: Message-ID: <20100818002928.7546D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7778 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-08-17 19:29:28 CDT --- Fixed in r111336, 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 Tue Aug 17 19:31:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 19:31:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 7841] Boost.Python miscompilation In-Reply-To: References: Message-ID: <20100818003113.75D5A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7841 Luc Bourhis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Luc Bourhis 2010-08-17 19:31:12 CDT --- As of LLVM trunk revision 111316, the bug is fixed as each of the 2 variants of the test case passes. Thus I am marking this bug as "Fixed". Thanks to he or she has committed the fix! -- 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 Aug 17 19:33:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 19:33:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 7043] Clang error handling crashes following LLVM stream error (in teardown) In-Reply-To: References: Message-ID: <20100818003317.D55352A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7043 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |FIXED --- Comment #2 from Benjamin Kramer 2010-08-17 19:33:17 CDT --- This is fixed now. - The original issue was that boost build made clang's stderr non-blocking, which confused raw_ostream. It was worked around in raw_ostream and boost build was fixed to provide blocking stderr. - The crash with closed stderr (2>&-) was fixed by Chris in r111321. -- 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 Aug 17 19:33:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 19:33:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 7775] undefined behavior at APInt.cpp, (2130:13) In-Reply-To: References: Message-ID: <20100818003358.23B132A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7775 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Chris Lattner 2010-08-17 19:33:57 CDT --- Fixed in r111337 -- 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 Aug 17 20:01:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 20:01:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 4732] codegen pass breaks machine cfg In-Reply-To: References: Message-ID: <20100818010119.E3A3E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4732 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #16 from Dale Johannesen 2010-08-17 20:01:18 CDT --- My recollection is that I posted something to the list but there was no agreement on the right answers or what the rules should be. I guess the current state is OK. The testcase now works with both llvm-gcc and clang at all optimization levels, and produces much better code than shown here. Might as well close 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 Tue Aug 17 20:11:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 20:11:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 7848] Non trivial vectors crash the JIT with invalid alignment calculation In-Reply-To: References: Message-ID: <20100818011145.A768E2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7848 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Dan Gohman 2010-08-17 20:11:45 CDT --- The unsigned char issue was fixed on trunk in r110836. -- 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 Aug 17 20:12:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 20:12:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 1889] clang allows allocating array that is too large In-Reply-To: References: Message-ID: <20100818011219.EFB692A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1889 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dgregor at apple.com Resolution| |FIXED --- Comment #5 from Douglas Gregor 2010-08-17 20:12:19 CDT --- Fixed in Clang r111338. -- 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 Aug 17 22:15:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 22:15:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 7755] JumpThreading: Assertion `i != e && "Didn't find edge?"' failed. In-Reply-To: References: Message-ID: <20100818031501.085862A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7755 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-08-17 22:15:00 CDT --- Fixed in r111349, 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 Tue Aug 17 22:16:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 22:16:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 7761] CPPBackend does not handle metadata In-Reply-To: References: Message-ID: <20100818031657.324B62A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7761 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Chris Lattner 2010-08-17 22:16:56 CDT --- The attached bc file crashes in the bc reader, presumably due to a bc format change since it was generated. This looks ok on ToT. -- 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 Aug 17 23:28:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 17 Aug 2010 23:28:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 7589] GVN incorrectly kills instructions In-Reply-To: References: Message-ID: <20100818042844.5F89C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7589 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-17 23:28:44 CDT --- Fixed in r111352, 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 Wed Aug 18 11:53:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 11:53:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 7932] Assertion failure S.Context.hasSameUnqualifiedType(T, E->getRHS()->getType()) && "comparison with mismatched types") In-Reply-To: References: Message-ID: <20100818165349.366D12A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7932 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dgregor at apple.com, | |llvmbugs at cs.uiuc.edu Component|Frontend |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 Aug 18 13:42:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 13:42:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 7932] Assertion failure S.Context.hasSameUnqualifiedType(T, E->getRHS()->getType()) && "comparison with mismatched types") In-Reply-To: References: Message-ID: <20100818184255.C66F42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7932 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |DUPLICATE --- Comment #1 from Eli Friedman 2010-08-18 13:42:55 CDT --- This is very similar to, if not exactly the same issue as, bug 7851. *** This bug has been marked as a duplicate of bug 7851 *** -- 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 Aug 18 14:19:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 14:19:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 7891] Assertion `DRE->getDeclName().getNameKind() == DeclarationName::Identifier && "Unhandled decl name kind!"' failed mangling function referring to member operator In-Reply-To: References: Message-ID: <20100818191934.50D082A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7891 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John McCall 2010-08-18 14:19:33 CDT --- Fixed in r111395. -- 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 Aug 18 15:18:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 15:18:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7933] New: Loop Index Split pass changes semantics of source program Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7933 Summary: Loop Index Split pass changes semantics of source program Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: tilmann.scheller at googlemail.com CC: llvmbugs at cs.uiuc.edu Running `clang -O3 -c -S -emit-llvm loop.c -o -|opt -loop-index-split -o -|llvm-dis' on the following C code: void bar(void); void foo(long a, long b, long *c) { long i; for (i = 0; i < b; ++i) { if (i == a) { bar(); } } } produces this LLVM IR, changing the semantics of the source program: target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-unknown-linux-gnu" define void @foo(i64 %a, i64 %b, i64* nocapture %c) nounwind { entry: %cmp6 = icmp sgt i64 %b, 0 ; [#uses=1] br i1 %cmp6, label %for.body.preheader, label %for.end for.body.preheader: ; preds = %entry br label %for.body for.body: ; preds = %for.body.preheader %lisplit = icmp uge i64 %a, 0 ; [#uses=1] %lisplit1 = icmp eq i64 %a, %b ; [#uses=1] %lisplit2 = and i1 %lisplit, %lisplit1 ; [#uses=1] br i1 %lisplit2, label %if.then, label %for.inc if.then: ; preds = %for.body tail call void @bar() nounwind br label %for.inc for.inc: ; preds = %if.then, %for.body br label %for.end.loopexit for.end.loopexit: ; preds = %for.inc br label %for.end for.end: ; preds = %for.end.loopexit, %entry ret void } declare void @bar() basically the program gets transformed into: void foo(long a, long b, long *c) { if (b > 0 && (a >= 0 && a == b)) { bar(); } } The correct transformation should be: void foo(long a, long b, long *c) { if (b > 0 && (a >= 0 && a < b)) { bar(); } } >From what I can see, the two integer comparisons are wrong: %lisplit1 = icmp eq i64 %a, %b should be replaced with %lisplit1 = icmp slt i64 %a, %b and %lisplit = icmp uge i64 %a, 0 should also become %lisplit = icmp sge i64 %a, 0 because long is signed. -- 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 Aug 18 16:17:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 16:17:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 7934] New: user-defined conversion sequence wrongly considered ambiguous Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7934 Summary: user-defined conversion sequence wrongly considered ambiguous Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Keywords: compile-fail Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following testcase fails to compile with clang: typedef unsigned char uint8; struct MutablePtr { MutablePtr() : ptr(NULL) {} void *ptr; operator void*() { return ptr; } operator uint8*() { return reinterpret_cast(ptr); } operator const char*() const { return reinterpret_cast(ptr); } }; void fake_memcpy(const void *); void use() { MutablePtr ptr; fake_memcpy(ptr); } which claims that the choice of conversion operator is ambiguous. I disagree, it should be choosing the void* choice which has a rank of exact match while the other two are conversion rank. -- 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 Aug 18 16:23:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 16:23:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 7766] Maybe spurious warnings about multiplying by one In-Reply-To: References: Message-ID: <20100818212340.A1A292A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7766 Tom Care changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Tom Care 2010-08-18 16:23:39 CDT --- We decided to add checking for psuedoconstants, which fixes the issues you were seeing. Committed in r111426. -- 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 Aug 18 16:26:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 16:26:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 7934] user-defined conversion sequence wrongly considered ambiguous In-Reply-To: References: Message-ID: <20100818212619.432692A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7934 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-08-18 16:26:18 CDT --- Fixed in Clang r111428. -- 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 Aug 18 18:48:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 18:48:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 7935] New: Failed template type deduction for multi-dimensional array with const qualifier Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7935 Summary: Failed template type deduction for multi-dimensional array with const qualifier Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com % cat t.cc void f1(const int a[3][3]); template void f2(const T a[3][3]); void f3() { int a[3][3]; f1(a); f2(a); } % ./bin/clang -fsyntax-only t.cc t.cc:9:3: error: no matching function for call to 'f2' f2(a); ^~ t.cc:4:6: note: candidate template ignored: can't deduce a type for 'T' which would make 'T const' equal 'int' void f2(const T a[3][3]); ^ 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 Wed Aug 18 19:28:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 19:28:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 7935] Failed template type deduction for multi-dimensional array with const qualifier In-Reply-To: References: Message-ID: <20100819002813.5E51A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7935 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #1 from John McCall 2010-08-18 19:28:13 CDT --- Fixed in r111486. -- 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 Aug 18 20:19:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 18 Aug 2010 20:19:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 7465] [MC] Reproducible crash on intersegment call/jmp In-Reply-To: References: Message-ID: <20100819011903.68C372A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7465 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Summary|[MC] Reproducible crash on |[MC] Reproducible crash on |some (valid, 1-line) inline |intersegment call/jmp |asm | --- Comment #3 from Chris Lattner 2010-08-18 20:19:02 CDT --- Fixed in r111496 -- 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 Aug 19 06:31:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 06:31:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 7936] New: conversion to objc pointer failed in comparaison. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7936 Summary: conversion to objc pointer failed in comparaison. Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5384) --> (http://llvm.org/bugs/attachment.cgi?id=5384) patch to add a test case to clang test suite for this issue. There is a case where implicit conversion to an objc object type failed. ----- Simple Test Case ------ class Wrapper { public: operator id() const { return (id)_value; } bool Compare(id obj) { return *this == obj; } private: long _value; }; ----- ----- ----- ----- ----- g++ don't have any problem to compile this code, but when compiling with clang, we get this: clang++ -fsyntax-only Test.mm Test.mm:5:39: error: invalid operands to binary expression ('Wrapper' and 'id') bool Compare(id obj) { return *this == obj; } ~~~~~ ^ ~~~ 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 Thu Aug 19 11:57:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 11:57:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 7938] New: llc crashes on certain inputs Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7938 Summary: llc crashes on certain inputs Product: new-bugs Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: iisaev at ispras.ru CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5386) --> (http://llvm.org/bugs/attachment.cgi?id=5386) exploit input A number of bugs discovered in pbc_dump by Avalanche dynamic analysis tool (http://code.google.com/p/avalanche/). llc crashes on certain exploit inputs (attached). user at machine:$ gdb --args llvm-2.7/inst/bin/llc llc_exploits/exploit_0_0 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) run Starting program: /space/iisaev/avalanche5/branches/separate-analysis/llvm-2.7/inst/bin/llc llc_exploits/exploit_0_0 [Thread debugging using libthread_db enabled] [New Thread 0xb7d6d6d0 (LWP 27104)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7d6d6d0 (LWP 27104)] 0x099ab2bf in ?? () (gdb) bt #0 0x099ab2bf in ?? () #1 0x085507de in llvm::ParseIRFile (Filename=@0x910c304, Err=@0xbfc502f4, Context=@0x999dfd8) at /space/iisaev/avalanche5/branches/separate-analysis/llvm-2.7/include/llvm/Support/IRReader.h:105 #2 0x08548e4b in main (argc=2, argv=0xbfc50474) at llc.cpp:228 user at machine:$ gdb --args llvm-2.7/inst/bin/llc llc_exploits/exploit_126_0 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) run Starting program: /space/iisaev/avalanche5/branches/separate-analysis/llvm-2.7/inst/bin/llc llc_exploits/exploit_126_0 [Thread debugging using libthread_db enabled] [New Thread 0xb7dfa6d0 (LWP 27117)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7dfa6d0 (LWP 27117)] 0x0859f834 in llvm::BitstreamCursor::Read (this=0x9ec5780, NumBits=2) at /space/iisaev/avalanche5/branches/separate-analysis/llvm-2.7/include/llvm/Bitcode/BitstreamReader.h:284 284 (NextChar[2] << 16) | (NextChar[3] << 24); (gdb) p NextChar $1 = (const unsigned char *) 0x3c6de80
(gdb) bt #0 0x0859f834 in llvm::BitstreamCursor::Read (this=0x9ec5780, NumBits=2) at /space/iisaev/avalanche5/branches/separate-analysis/llvm-2.7/include/llvm/Bitcode/BitstreamReader.h:284 #1 0x0859fa13 in llvm::BitstreamCursor::ReadCode (this=0x9ec5780) at /space/iisaev/avalanche5/branches/separate-analysis/llvm-2.7/include/llvm/Bitcode/BitstreamReader.h:353 #2 0x08594d47 in llvm::BitcodeReader::ParseBitcodeInto (this=0x9ec5750, M=0x9ec5d38) at BitcodeReader.cpp:1550 #3 0x08594f08 in llvm::getLazyBitcodeModule (Buffer=0x9ec6860, Context=@0x9eb7fd8, ErrMsg=0xbfddcba8) at BitcodeReader.cpp:2416 #4 0x08594fa5 in llvm::ParseBitcodeFile (Buffer=0x9ec6860, Context=@0x9eb7fd8, ErrMsg=0xbfddcba8) at BitcodeReader.cpp:2432 #5 0x08550526 in llvm::ParseIR (Buffer=0x9ec6860, Err=@0xbfddcc74, Context=@0x9eb7fd8) at /space/iisaev/avalanche5/branches/separate-analysis/llvm-2.7/include/llvm/Support/IRReader.h:80 #6 0x085507de in llvm::ParseIRFile (Filename=@0x910c304, Err=@0xbfddcc74, Context=@0x9eb7fd8) at /space/iisaev/avalanche5/branches/separate-analysis/llvm-2.7/include/llvm/Support/IRReader.h:105 #7 0x08548e4b in main (argc=2, argv=0xbfddcdf4) at llc.cpp:228 -- 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 Aug 19 13:34:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 13:34:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 7939] New: invalid start location for anonymous namespace Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7939 Summary: invalid start location for anonymous namespace Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bugzilla-clang at sogetthis.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5388) --> (http://llvm.org/bugs/attachment.cgi?id=5388) 'HandleTranslationUnit' of an ASTConsumer that shows the bug The start SourceLocation of any anonymous namespace declaration is an invalid one. example: cat ../anon.cpp namespace {} Given that the ASTConsumer from the attachment produces: Typedef start::102:15 range::102:15 - :102:15 Namespace start: range: - ../anon.cpp:1:12 UsingDirective start:../anon.cpp:1:11 range:../anon.cpp:1:11 - ../anon.cpp:1:11 -- 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 Aug 19 13:42:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 13:42:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7938] llc crashes on certain inputs In-Reply-To: References: Message-ID: <20100819184247.139D02A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7938 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dalej at apple.com Resolution| |WORKSFORME --- Comment #3 from Dale Johannesen 2010-08-19 13:42:46 CDT --- Both of these fail cleanly with TOT: now what? llc exploit_126_0 llc: exploit_126_0: Malformed BlockInfoBlock now what? llc exploit_0_0 llc: exploit_0_0: Invalid record at top-level -- 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 Aug 19 14:42:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 14:42:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 7940] New: Using -std=c++98 with Clang causes mangled identifiers in resolution errors Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7940 Summary: Using -std=c++98 with Clang causes mangled identifiers in resolution errors 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: llvmbugs at contacts.eelis.net CC: llvmbugs at cs.uiuc.edu If I do: echo "void f(); int main(){ f(); }" | clang -cc1 -emit-llvm-bc -std=c++98 | lli I get an error in which the name of the function is mangled: LLVM ERROR: Program used external function '_Z1fv' which could not be resolved! When I omit the -std=c++98, I get the nicer error: LLVM ERROR: Program used external function 'f' which could not be resolved! It seems a bit weird (and undesirable) for -std=c++98 to have this adverse effect. I'm using Clang r111113. -- 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 Aug 19 14:53:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 14:53:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 7940] Using -std=c++98 with Clang causes mangled identifiers in resolution errors In-Reply-To: References: Message-ID: <20100819195302.4F7C42A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7940 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-08-19 14:53:02 CDT --- This is required by the C++ language. C++ supports overloading (and thus requires mangling) C doesn't. -- 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 Aug 19 15:06:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 15:06:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 7943] New: Violated assertion in clang::TokenLexer::PasteTokens() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7943 Summary: Violated assertion in clang::TokenLexer::PasteTokens() Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bagnara at cs.unipr.it CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5391) --> (http://llvm.org/bugs/attachment.cgi?id=5391) Testcase coming from GCC's testsuite. ******************************************************************* pr30805.c ******************************************************************* [Thread 1] TokenLexer.cpp:388: bool clang::TokenLexer::PasteTokens(clang::Token&): Assertion failed: !isAtEnd() && "No token on the RHS of a paste operator!" Stack dump: 0. pr30805.c:6:3: current parser token '1' Aborted (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 Thu Aug 19 15:25:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 15:25:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 7882] Fast scheduler does not handle inline assembly clobbers In-Reply-To: References: Message-ID: <20100819202500.3B1AD2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7882 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dalej at apple.com Resolution| |FIXED --- Comment #1 from Dale Johannesen 2010-08-19 15:24:59 CDT --- Fixed in 111306. -- 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 Aug 19 15:56:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 15:56:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7939] invalid start location for anonymous namespace In-Reply-To: References: Message-ID: <20100819205642.BFB7E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7939 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-08-19 15:56:42 CDT --- Fixed in Clang r111561. -- 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 Aug 19 18:22:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 18:22:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 7944] New: diagnostic missing source location when used with macro Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7944 Summary: diagnostic missing source location when used with macro Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This unassuming program has a common syntax error: #define MACRO(x) x struct B { int f() { return true; } }; struct A { B* b() { return new B; } }; void g() { A a; MACRO(a.b->f()); } but the diagnostic is missing important information: $ clang++ -fsyntax-only x.cc error: base of member reference has function type 'B *()'; perhaps you meant to call this function with '()'? 1 error generated. No source file, no line number, no caret highlighting. If you remove the macro then it works just 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 Thu Aug 19 19:21:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 19:21:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 7945] New: false positive - The left expression of the compound assignment is an unitialized value. The computed value will also be garbage Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7945 Summary: false positive - The left expression of the compound assignment is an unitialized value. The computed value will also be garbage Product: clang Version: unspecified Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: LetterRip at gmail.com CC: llvmbugs at cs.uiuc.edu following code gives 'The left expression of the compound assignment is an unitialized value. The computed value will also be garbage' Since vec is initialized at the beggining of the function this appears to be a false positive? void test(float rad) { float vec[7][2]= {{0.195, 0.02}, {0.383, 0.067}, {0.55, 0.169}, {0.707, 0.293}, {0.831, 0.45}, {0.924, 0.617}, {0.98, 0.805}}; int a; for(a=0; a<7; a++) { vec[a][0]*= rad; vec[a][1]*= rad; } } -- 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 Aug 19 20:05:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 20:05:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 7946] New: false positive - divide by zero Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7946 Summary: false positive - divide by zero 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: LetterRip at gmail.com CC: llvmbugs at cs.uiuc.edu This is a simplified version of our code - if tot is zero it returns, so the devide by zero never happens. Tested using checker-247 static void ui_litem_layout_split(uiLayout *litem) { uiItem *item; int tot = 0; float test = 0.0f; for(item=litem->items.first; item; item=item->next) tot++; if(tot == 0) return; test = 1/(tot-1); //complaint of divide by zero } -- 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 Aug 19 20:06:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 20:06:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 7945] false positive - The left expression of the compound assignment is an unitialized value. The computed value will also be garbage In-Reply-To: References: Message-ID: <20100820010614.E7C8A2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7945 Jordy Rose changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jediknil at belkadan.com Resolution| |FIXED --- Comment #1 from Jordy Rose 2010-08-19 20:06:14 CDT --- RegionStore::BindArray() wasn't taking multidimensional arrays into account in its handling of compound values. Fixed in r111602. -- 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 Aug 19 20:06:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 20:06:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 7946] false positive - divide by zero In-Reply-To: References: Message-ID: <20100820010639.B82F82A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7946 Tom M changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Tom M 2010-08-19 20:06:39 CDT --- oops didn't search well enough - duplicate. *** This bug has been marked as a duplicate of bug 5141 *** -- 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 Aug 19 20:08:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 20:08:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 7946] false positive - divide by zero In-Reply-To: References: Message-ID: <20100820010855.44FA32A6C132@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7946 Tom M changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | --- Comment #2 from Tom M 2010-08-19 20:08:55 CDT --- reopenning since it isn't close enough to the other bug report after all -- 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 Aug 19 20:12:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 20:12:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 7946] false positive - divide by zero In-Reply-To: References: Message-ID: <20100820011258.DB4372A6C132@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7946 Tom M changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from Tom M 2010-08-19 20:12:58 CDT --- Doh - if tot == 1 is in fact a bug. Closing due to ID=10T error... -- 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 Aug 19 23:38:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 19 Aug 2010 23:38:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 7947] New: crash in DiagnoseEmptyLookup Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7947 Summary: crash in DiagnoseEmptyLookup Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This small testcase crashes: template struct A { static void Work(); }; template struct B : public A { template B(T2 x) { Work(x); } }; void Test() { B b(0); } GCC accepts it of course. Here's the stacktrace: $ clang -cc1 -x c++ 005.c 005.c:6:36: error: use of undeclared identifier 'Work' template B(T2 x) { Work(x); } ^ this-> 005.c:9:22: note: in instantiation of function template specialization 'B::B' requested here void Test() { B b(0); } ^ 0 clang 0x00000000020fd5e0 1 clang 0x00000000020fd4a4 2 libpthread.so.0 0x00007f15fc2df8f0 3 clang 0x0000000000eded42 clang::Decl::getKind() const + 12 4 clang 0x0000000000f3da65 clang::CXXMethodDecl::classof(clang::Decl const*) + 24 5 clang 0x000000000103da13 llvm::isa_impl::doit(clang::FunctionDecl const&) + 24 6 clang 0x000000000103d062 llvm::isa_impl_wrap::doit(clang::FunctionDecl const&) + 24 7 clang 0x000000000103ba3e bool llvm::isa_impl_cl::isa(clang::FunctionDecl const&) + 24 8 clang 0x000000000118ae9b bool llvm::isa_impl_cl::isa(clang::FunctionDecl*) + 24 9 clang 0x000000000118a6ba bool llvm::isa(clang::FunctionDecl* const&) + 27 10 clang 0x0000000001189fa4 llvm::cast_retty::ret_type llvm::cast(clang::FunctionDecl* const&) + 24 11 clang 0x000000000122636f clang::Sema::DiagnoseEmptyLookup(clang::Scope*, clang::CXXScopeSpec&, clang::LookupResult&, clang::Sema::CorrectTypoContext) + 679 12 clang 0x00000000012b8734 13 clang 0x00000000012b8b89 clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*, clang::UnresolvedLookupExpr*, clang::SourceLocation, clang::Expr**, unsigned int, clang::SourceLocation*, clang::SourceLocation) + 613 14 clang 0x0000000001232623 clang::Sema::ActOnCallExpr(clang::Scope*, clang::ASTOwningPtr<&(clang::ActionBase::DeleteExpr(void*))>, clang::SourceLocation, clang::ASTMultiPtr<&(clang::ActionBase::DeleteExpr(void*))>, clang::SourceLocation*, clang::SourceLocation) + 2347 15 clang 0x000000000131f83e 16 clang 0x000000000131ba31 17 clang 0x0000000001318089 18 clang 0x000000000131d9b9 19 clang 0x000000000131d4a6 20 clang 0x00000000013324c0 21 clang 0x000000000132492c 22 clang 0x000000000131d0f4 23 clang 0x000000000131b2bd clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) + 125 24 clang 0x000000000133f777 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool) + 1341 25 clang 0x0000000001341469 clang::Sema::PerformPendingImplicitInstantiations(bool) + 371 26 clang 0x0000000001176340 clang::Sema::ActOnEndOfTranslationUnit() + 62 27 clang 0x00000000015d111b clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 97 28 clang 0x0000000001173a67 clang::ParseAST(clang::Sema&, bool) + 331 29 clang 0x0000000000ec84c8 clang::ASTFrontendAction::ExecuteAction() + 264 30 clang 0x0000000000ec8112 clang::FrontendAction::Execute() + 320 31 clang 0x0000000000eaee86 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 752 32 clang 0x0000000000ec6e14 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 856 33 clang 0x0000000000ea0a4f cc1_main(char const**, char const**, char const*, void*) + 942 34 clang 0x0000000000ea95e2 main + 499 35 libc.so.6 0x00007f15fb5b9c4d __libc_start_main + 253 36 clang 0x0000000000ea0119 Stack dump: 0. Program arguments: /usr/local/google/home/nlewycky/llvm/Debug+Asserts/bin/clang -cc1 -x c++ 005.c 1. parser at end of file 2. 005.c:6:26: instantiating function definition 'B::B' Segmentation fault -- 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 Aug 20 05:14:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 20 Aug 2010 05:14:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7948] New: Explicitly initialized arrays with fewer initializers than elements don't value initialize remaining elements Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7948 Summary: Explicitly initialized arrays with fewer initializers than elements don't value initialize remaining elements Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com % cat t.cc struct S { const int x; }; const S good[2] = { { 42 }, { } }; const S bad[2] = { { 42 } }; % ./bin/clang -fsyntax-only t.cc t.cc:1:8: error: implicit default constructor for 'S' must explicitly initialize the const member 'x' struct S { const int x; }; ^ t.cc:1:22: note: declared here struct S { const int x; }; ^ t.cc:4:18: note: implicit default constructor for 'S' first required here const S bad[2] = { { 42 } }; ^ 1 error generated. As far as I can tell 'good' and 'bad' should be initialized exactly the same way: value initialized. Specifically, C++03 [dcl.init.aggr] 8.5.1/7 says: "If there are fewer initializers in the list than there are members in the aggregate, then each member not explicitly initialized shall be value-initialized (8.5)." It looks like the remaining elements are being default initialized instead of value initialized. -- 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 Aug 20 08:22:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 20 Aug 2010 08:22:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7949] New: LLVM+Clang fails to build when configured with --disable-threads Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7949 Summary: LLVM+Clang fails to build when configured with --disable-threads 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: llvmbugs at contacts.eelis.net CC: llvmbugs at cs.uiuc.edu When I try to build with ./configure --disable-threads make I get (after a while): ... llvm[4]: Linking Debug+Asserts executable clang /home/eelis/sand/llvmtest/nothreads/llvm/Debug+Asserts/lib/libLLVMSupport.a(CrashRecoveryContext.o): In function `llvm::sys::ThreadLocal<(anonymous namespace)::CrashRecoveryContextImpl const>::erase()': /home/eelis/sand/llvmtest/nothreads/llvm/include/llvm/System/ThreadLocal.h:49: undefined reference to `llvm::sys::ThreadLocalImpl::removeInstance()' Without --disable-threads it builds without problems. I also didn't have problems building with --disable-threads a week or two ago, so it's probably a recent commit that's to blame. I'm using r111620. -- 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 Aug 20 12:29:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 20 Aug 2010 12:29:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 7950] New: Crash (pointer being freed was not allocated) when compiling a LLVM example Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7950 Summary: Crash (pointer being freed was not allocated) when compiling a LLVM example Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: release blocker Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tianyicui at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com I was compiling examples/Kaleidoscope/Chapter4/toy.cpp (in LLVM source tree): $ clang++ toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` And the program crashed: $ ./a.out a.out(30913) malloc: *** error for object 0x7fff70b7a500: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap I'm using trunk clang and LLVM. I'm pretty sure this bug is introduced in recent commits because I was always using trunk clang and LLVM it didn't fail when compiling the very same file several days ago. OS is Mac OS X 10.6 x86_64, configure options are --enable-optimized --disable-assertions --enable-bindings=none --enable-shared. Happy to provide any other information if you need. BTW, thank you for such an amazing project! I almost forgot the days I have to read the error output by g++ that I cannot understand. -- 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 Aug 20 12:39:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 20 Aug 2010 12:39:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 4464] clang should support #pragma options align In-Reply-To: References: Message-ID: <20100820173958.7A2702A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4464 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Daniel Dunbar 2010-08-20 12:39:57 CDT --- I fixed 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 Fri Aug 20 13:21:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 20 Aug 2010 13:21:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 7952] New: dyn_cast<> on multi-level pointers causes errors Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7952 Summary: dyn_cast<> on multi-level pointers causes errors Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: rideau3 at gmail.com CC: llvmbugs at cs.uiuc.edu The isa<> template will succesfully work on a multi-level pointer, while the cast<> template will not. This has unfortunate implications for dyn_cast<>, because it performs an isa<> followed immediately by a cast<>. If a multi-level pointer is used and the isa<> succeeds, a garbage value is returned. (A multi-level pointer is something like Base**) -- 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 Aug 20 15:54:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 20 Aug 2010 15:54:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 7949] LLVM+Clang fails to build when configured with --disable-threads In-Reply-To: References: Message-ID: <20100820205458.0784C2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7949 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |daniel at zuster.org Resolution| |FIXED --- Comment #2 from Daniel Dunbar 2010-08-20 15:54:57 CDT --- Fixed here: http://llvm.org/viewvc/llvm-project?view=rev&revision=111676 I hope, although untested. -- 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 Aug 20 19:11:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 20 Aug 2010 19:11:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 7936] conversion to objc pointer failed in comparison. In-Reply-To: References: Message-ID: <20100821001129.2A5FB2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7936 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Fariborz Jahanian 2010-08-20 19:11:28 CDT --- (In reply to comment #1) > (In reply to comment #0) > > Created an attachment (id=5384) --> (http://llvm.org/bugs/attachment.cgi?id=5384) [details] [details] > > patch to add a test case to clang test suite for this issue. > > > > There is a case where implicit conversion to an objc object type failed. > > > > ----- Simple Test Case ------ > > > > class Wrapper { > > public: > > operator id() const { return (id)_value; } > > bool Compare(id obj) { return *this == obj; } > > > > private: > > long _value; > > }; > > > > ----- ----- ----- ----- ----- > > g++ don't have any problem to compile this code, but when compiling with clang, > > we get this: > > > > clang++ -fsyntax-only Test.mm > > Test.mm:5:39: error: invalid operands to binary expression ('Wrapper' and 'id') > > bool Compare(id obj) { return *this == obj; } > > ~~~~~ ^ ~~~ > > 1 error generated. > > clang bug. If conversion to "void *" works, so should conversion to 'id'. I > will take a look. Fixed in r111699 -- 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 Aug 20 19:27:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 20 Aug 2010 19:27:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 7943] Violated assertion in clang::TokenLexer::PasteTokens() In-Reply-To: References: Message-ID: <20100821002712.971752A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7943 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-20 19:27:12 CDT --- Fixed in r111701, 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 Fri Aug 20 23:36:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 20 Aug 2010 23:36:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 7954] New: Clang erronously compiles double initialization of const static int Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7954 Summary: Clang erronously compiles double initialization of const static int Product: clang Version: unspecified Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: prasoonsaurav.nit at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following program erronously compiles on Clang class Prasoon{ static const int dummy = 0; }; int const Prasoon::dummy = 0; int main(){} According to C++-03 (Section 9.4.2-3) If a static data member is of const literal type, its declaration in the class definition can specify a brace-or- equal-initializer in which every initializer-clause that is an assignment-expression is a constant expression. A static data member of literal type can be declared in the class definition with the constexpr specifier; if so, its declaration shall specify a brace-or-equal-initializer in which every initializer-clause that is an assignment-expression is a constant expression. [ Note: In both these cases, the member may appear in constant expressions. ? end note ] The member shall still be defined in a namespace scope if it is used in the program and the namespace scope definition shall not contain an initializer. More discussion here : http://stackoverflow.com/questions/3531296/have-i-found-a-bug-in-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 Sat Aug 21 00:15:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 00:15:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 5598] Clang generate wrong alignment on packed structure In-Reply-To: References: Message-ID: <20100821051509.D94AC2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5598 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Daniel Dunbar 2010-08-21 00:15:08 CDT --- Fixed here: http://llvm.org/viewvc/llvm-project?view=rev&revision=111726 although we still probably have a lot of work to do on alignment. -- 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 Aug 21 03:23:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 03:23:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7912] clang crash computing @encode for interface containing bitfield In-Reply-To: References: Message-ID: <20100821082342.F2D582A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7912 David Chisnall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |llvmbugs at cs.uiuc.edu Component|Frontend |LLVM Codegen Resolution| |WORKSFORME --- Comment #1 from David Chisnall 2010-08-21 03:23:42 CDT --- What revision of clang are you using? I can't reproduce this failure with r111110 with either i386-pc-linux-gnu or x86_64-pc-linux-gnu as the targets. Tentatively closing the bug, unless someone can provide me with enough information to reproduce 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 Sat Aug 21 10:25:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 10:25:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 7955] New: Clang's stddef.h, wint_t and MinGW headers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7955 Summary: Clang's stddef.h, wint_t and MinGW headers Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Headers AssignedTo: unassignedclangbugs at nondot.org ReportedBy: salvois at users.sourceforge.net CC: llvmbugs at cs.uiuc.edu Greetings, in order to function properly with other MinGW headers, it should be possible to include Clang's stddef.h more than once bypassing the __STDDEF_H include guard. For example stdio.h includes stddef.h with __need_wint_t to define wint_t, and it may fail if stddef.h has been included before without __need_wint_t defined. I've solved this issue by moving the whole block defining wint_t outside the __STDDEF_H include guard. It should not have any side effects. BTW, the comment "Some C libraries expect to see a wint_t here. Others (notably MinGW) will use __WINT_TYPE__ directly" is misleading: at least the current MinGW *does* expect wint_t in stddef.h. Thanks, Salvo -- 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 Aug 21 11:03:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 11:03:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 7957] New: The x86-64 backend incorrectly generates 32 bit direct relocations for COFF Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7957 Summary: The x86-64 backend incorrectly generates 32 bit direct relocations for COFF Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5393) --> (http://llvm.org/bugs/attachment.cgi?id=5393) llvm IR and generated assembly While working on adding x86-64 bit support to the COFF object writer, I've run into a bug that I don't know how to solve. A simple hello world example (attached as hello.ll) compiles with: llc -filetype=obj -mtriple x86_64-pc-win32 But the resulting binary cannot be linked with link.exe without passing -largeaddressspaceaware:no. This means that the binary will only have access to the lowest 2GiB of virtual address space. I've reduced this down to the x86-64 backend generating 32 bit direct relocations instead of the proper 64 bit relocations. I've attached the generated assembly code for ELF, MachO, and COFF. You can see that both ELF and MachO use 64 bit instructions and registers, while COFF uses 32 bit. Files generated with llc -mtriple x86_64-pc-win32 hello.ll -o hello-coff.s llc -mtriple x86_64-pc-linux hello.ll -o hello-elf.s llc -mtriple x86_64-apple-darwin hello.ll -o hello-macho.s -- 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 Aug 21 12:21:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 12:21:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 7957] The x86-64 backend incorrectly generates 32 bit direct relocations for COFF In-Reply-To: References: Message-ID: <20100821172145.802472A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7957 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Anton Korobeynikov 2010-08-21 12:21:45 CDT --- Fixed in r111741 -- 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 Aug 21 13:38:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 13:38:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 7912] clang crash computing @encode for interface containing bitfield In-Reply-To: References: Message-ID: <20100821183826.5B6D62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7912 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #2 from Eli Friedman 2010-08-21 13:38:26 CDT --- Just "clang -x objective-c - -o - -S" crashes; I'm on Linux x86-64, using r111674. Note that this only reproduces for the GNU runtime; if you're using just clang -cc1, it won't reproduce without -fgnu-runtime. -- 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 Aug 21 14:07:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 14:07:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 7958] New: debug info assertion failure compiling tramp3d for ARM Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7958 Summary: debug info assertion failure compiling tramp3d for ARM Product: libraries Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: bob.wilson at apple.com CC: llvmbugs at cs.uiuc.edu My thumb2-O0 nightly tester had a regression last night building MultiSource/Benchmarks/tramp3d-v4: Assertion failed: (DirName.empty() == false && "Invalid directory name!"), function GetOrCreateSourceID, file /Volumes/LocalHD/bwilson/alt/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp, line 1745. 0 llc 0x0000000100c2b515 PrintStackTrace(void*) + 53 1 llc 0x0000000100c2ba33 SignalHandler(int) + 371 2 libSystem.B.dylib 0x00007fff875b335a _sigtramp + 26 3 libSystem.B.dylib 0x00007fff5fbfebb8 _sigtramp + 3630479480 4 llc 0x0000000100053338 abort + 40 5 llc 0x0000000100053304 __assert_rtn + 132 6 llc 0x0000000100660996 llvm::DwarfDebug::GetOrCreateSourceID(llvm::StringRef, llvm::StringRef) + 166 7 llc 0x0000000100661194 llvm::DwarfDebug::addSourceLine(llvm::DIE*, llvm::DIType) + 276 8 llc 0x00000001006651b9 llvm::DwarfDebug::constructTypeDIE(llvm::DIE&, llvm::DIDerivedType) + 393 9 llc 0x00000001006634e2 llvm::DwarfDebug::getOrCreateTypeDIE(llvm::DIType) + 658 10 llc 0x00000001006652b3 llvm::DwarfDebug::addType(llvm::DIE*, llvm::DIType) + 211 11 llc 0x00000001006650fa llvm::DwarfDebug::constructTypeDIE(llvm::DIE&, llvm::DIDerivedType) + 202 12 llc 0x00000001006634e2 llvm::DwarfDebug::getOrCreateTypeDIE(llvm::DIType) + 658 13 llc 0x00000001006652b3 llvm::DwarfDebug::addType(llvm::DIE*, llvm::DIType) + 211 14 llc 0x0000000100663ecf llvm::DwarfDebug::createSubprogramDIE(llvm::DISubprogram, bool) + 1919 15 llc 0x0000000100664a91 llvm::DwarfDebug::constructTypeDIE(llvm::DIE&, llvm::DICompositeType) + 1025 16 llc 0x0000000100663418 llvm::DwarfDebug::getOrCreateTypeDIE(llvm::DIType) + 456 17 llc 0x00000001006652b3 llvm::DwarfDebug::addType(llvm::DIE*, llvm::DIType) + 211 18 llc 0x00000001006650fa llvm::DwarfDebug::constructTypeDIE(llvm::DIE&, llvm::DIDerivedType) + 202 19 llc 0x00000001006634e2 llvm::DwarfDebug::getOrCreateTypeDIE(llvm::DIType) + 658 20 llc 0x00000001006652b3 llvm::DwarfDebug::addType(llvm::DIE*, llvm::DIType) + 211 21 llc 0x0000000100663ecf llvm::DwarfDebug::createSubprogramDIE(llvm::DISubprogram, bool) + 1919 22 llc 0x0000000100663186 llvm::DwarfDebug::addToContextOwner(llvm::DIE*, llvm::DIDescriptor) + 326 23 llc 0x0000000100663528 llvm::DwarfDebug::getOrCreateTypeDIE(llvm::DIType) + 728 24 llc 0x00000001006652b3 llvm::DwarfDebug::addType(llvm::DIE*, llvm::DIType) + 211 25 llc 0x0000000100667967 llvm::DwarfDebug::constructVariableDIE(llvm::DbgVariable*, llvm::DbgScope*) + 631 26 llc 0x00000001006686f1 llvm::DwarfDebug::constructScopeDIE(llvm::DbgScope*) + 657 27 llc 0x000000010066878b llvm::DwarfDebug::constructScopeDIE(llvm::DbgScope*) + 811 28 llc 0x000000010066878b llvm::DwarfDebug::constructScopeDIE(llvm::DbgScope*) + 811 29 llc 0x000000010066878b llvm::DwarfDebug::constructScopeDIE(llvm::DbgScope*) + 811 30 llc 0x00000001006733d6 llvm::DwarfDebug::endFunction(llvm::MachineFunction const*) + 1702 31 llc 0x000000010064f760 llvm::AsmPrinter::EmitFunctionBody() + 2352 32 llc 0x00000001001e3f34 llvm::AsmPrinter::runOnMachineFunction(llvm::MachineFunction&) + 52 33 llc 0x000000010021857c (anonymous namespace)::ARMAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) + 76 34 llc 0x00000001007589f1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 97 35 llc 0x0000000100b2be75 llvm::FPPassManager::runOnFunction(llvm::Function&) + 389 36 llc 0x0000000100b2c1f1 llvm::FPPassManager::runOnModule(llvm::Module&) + 129 37 llc 0x0000000100b2c42c llvm::MPPassManager::runOnModule(llvm::Module&) + 476 38 llc 0x0000000100b2cb79 llvm::PassManagerImpl::run(llvm::Module&) + 185 39 llc 0x0000000100b2cfed llvm::PassManager::run(llvm::Module&) + 29 40 llc 0x00000001000549b9 main + 2985 41 llc 0x0000000100053e00 start + 52 I reproduced this with llc from svn trunk @111741. I've attached a bitcode file to reproduce it. (It's big. Sorry, bugpoint crashed on this.) To reproduce run: llc -mtriple=thumbv7-apple-darwin -O0 -relocation-model=pic -mcpu=cortex-a8 tramp3d-v4-llvm.bc -- 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 Aug 21 17:29:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 17:29:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7959] New: Miscompile with gvn Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7959 Summary: Miscompile with gvn Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu Attachments coming up; GVN appears to miscompile the given IDCT function, as shown by different results with/without running GVN. -- 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 Aug 21 19:56:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 19:56:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 7960] New: x86-64 backend generating incorrect fixups for COFF Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7960 Summary: x86-64 backend generating incorrect fixups for COFF Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu The attached program (clanged, bugpointed and hand reduced from lua/lapi.c) fails when compiled with: G:\Users\Michael\temp\lua-5.1.4\src>llc -filetype=obj bugpoint-reduced-simplified.ll Assertion failed: Target.getSymB() == NULL && "Relocation must reference only one symbol!", file ..\..\..\..\llvm\lib\MC\WinCOFFObjectWriter.cpp, line 569 The problem seems to be that the x86-64 backend is generating incorrect fixups for this 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 Sat Aug 21 21:00:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 21 Aug 2010 21:00:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 7961] New: Need to recognize when switch cases cover all possible enum values Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7961 Summary: Need to recognize when switch cases cover all possible enum values Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: dkcat8p2ay at snkmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5399) --> (http://llvm.org/bugs/attachment.cgi?id=5399) Simplified test case demonstrating reported issue When cases in a switch statement over an enum condition cover all possible enum values, the analyzer may still incorrectly conclude "'Default' branch taken." within the switch statement. This was tested against current trunk (r111702). When built with "scan-build gcc -Wall -o clang_1 clang_1.c", the attached test case is found to have an "Undefined or garbage value returned to caller" bug. As the switch cases cover all possible enum values, the variable ret is always assigned a value before func() returns. Although my C++-foo is definitely showing its age, I have found the section in Sema::ActOnFinishSwitchStmt() that claims to "Check to see if switch is over an Enum and handles all of its values." Is it possible to extend that analysis to avoid the bug found in the attached program? -- 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 Aug 22 00:26:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 22 Aug 2010 00:26:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 7962] New: error: expression is not assignable Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7962 Summary: error: expression is not assignable Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: shailesh.mark at gmail.com CC: llvmbugs at cs.uiuc.edu marks the statement "++number2;" as not assignable with a caret underneath the increment. the error really is the missing ; at the end of the previous statement *lngPtr = 2 once that is corrected as *lngPtr = 2; compilation goes smoothly. *lngPtr = 2 ++number2; // error as above ---------------------------- *lngPtr = 2; ++number2; // no error -- 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 Aug 22 00:58:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 22 Aug 2010 00:58:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 7963] New: function attribute '__artificial__' ignored Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7963 Summary: function attribute '__artificial__' ignored Product: clang Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nobled at dreamwidth.org CC: llvmbugs at cs.uiuc.edu Clang doesn't seem to support the 'artificial' function attribute. A warning turned up with this header file: http://cgit.freedesktop.org/mesa/mesa/plain/src/gallium/auxiliary/util/u_sse.h?id=65b9747a54490dd56cd5cee4c2c1b9f51d35f133 ./util/u_sse.h:90:75: warning: '__artificial__' attribute ignored static __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) What it's supposed to do: http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Function-Attributes.html - "This attribute is useful for small inline wrappers which if possible should appear during debugging as a unit, depending on the debug info format it will either mean marking the function as artificial or using the caller location for all instructions within the inlined body." http://gcc.gnu.org/ml/gcc-help/2010-07/msg00295.html - "On a function, it basically means that if the function is inlined, the debugger will not step through the inlined instructions." -- 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 Aug 22 04:41:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 22 Aug 2010 04:41:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 7964] New: Memory leaks in LLVM Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7964 Summary: Memory leaks in LLVM Product: libraries Version: 2.7 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: WheretIB at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5400) --> (http://llvm.org/bugs/attachment.cgi?id=5400) Test file that shows the leaks There are 17 memory leaks in static LLVM objects in my configuration. I use Microsoft Visual Studio 2005 and LLVM is compiled in Debug configuration. Attachment shows an example of a simple leak detector and it's output. (additional include directories: "...\llvm-2.7\install\include;...\llvm-2.7\include;") ("...\llvm-2.7\install\lib\Debug" is in "VC++ Directories"->"Library files") "...\llvm-2.7\install\" is the target directory of CMake. -- 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 Aug 22 06:17:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 22 Aug 2010 06:17:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 7965] New: No way to do a vector [reciprocal] square root Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7965 Summary: No way to do a vector [reciprocal] square root Product: clang Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: baggett.patrick at gmail.com CC: llvmbugs at cs.uiuc.edu I've been working on a raytracer (heavy use of vectors) and I'd like to experiment with dynamic code generation using LLVM. Right now, I'm stuck on trying to do a square root of a 4-valued vector efficiently, though other applications might want general N-valued vectors. On x86 targets, the SQRTPS instruction computes the square root of four FP values at once. It is currently impossible to generate this instruction (and related ones such as RCPPS and RSQRTPS) using vector extensions alone. This is a major killing point for me. I'd like to be able to use them with resorting to ugly intrinsics which aren't portable. Given that this is an extremely common operation (read: not just x86), it would be nice if it was supported. Ideally, __builtin_sqrtvector(), __builtin_rsqrtvector(), and __builtin_rcpvector() for floating point vectors only, where the last two compute the reciprocal square root estimate and reciprocal estimate respectively. Described as having "implementation-dependent" precision. My understanding of the LLVM architecture is that something like this requires clang support and LLVM support. I'm guessing you'd need a vector instruction at the LLVM ISA level to support this, but considering that clang converted sqrtf() -> SQRTSS instruction, that may not be true. I've just started with LLVM, so pardon my ignorance of its backends. :\ Simple case to reproduce both optimal and non-optimal code (x64): ---------------- typedef float float4 __attribute__((ext_vector_type(4))); #include float4 sqrt4(float4 value) { value.x = sqrtf(value.x); value.y = sqrtf(value.y); value.z = sqrtf(value.z); value.w = sqrtf(value.w); return value; } #include float4 sqrt4_sse(float4 value) { return _mm_sqrt_ps(value); } ------------------------------- Output ASM (x86-64) ------------------------------- sqr4: pshufd $3, %xmm0, %xmm1 pshufd $1, %xmm0, %xmm2 sqrtss %xmm1, %xmm1 sqrtss %xmm2, %xmm2 unpcklps %xmm1, %xmm2 sqrtss %xmm0, %xmm1 movhlps %xmm0, %xmm0 sqrtss %xmm0, %xmm0 unpcklps %xmm0, %xmm1 movaps %xmm1, %xmm0 unpcklps %xmm2, %xmm0 ret sqrt4_sse: sqrtps %xmm0, %xmm0 ret -- 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 Aug 22 12:51:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 22 Aug 2010 12:51:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 7954] Clang erronously compiles double initialization of const static int In-Reply-To: References: Message-ID: <20100822175154.0C9B72A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7954 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Douglas Gregor 2010-08-22 12:51:53 CDT --- *** This bug has been marked as a duplicate of bug 6904 *** -- 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 Aug 22 17:07:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 22 Aug 2010 17:07:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7966] New: missing warning about use of virtual member inside destructor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7966 Summary: missing warning about use of virtual member inside destructor Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This small program is dangerous: struct Base { virtual ~Base() { test(); } virtual int test() = 0; }; struct Derived : public Base { int test() { return 0; } }; because the destructor will be called after Derived is destroyed and the lookup for test will always call the pure virtual method. G++ kindly emits a warning here: $ g++ -fsyntax-only vd.cpp vd.cpp: In destructor ?virtual Base::~Base()?: vd.cpp:3: warning: abstract virtual ?virtual int Base::test()? called from destructor but Clang doesn't. We really should! -- 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 Aug 22 17:20:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 22 Aug 2010 17:20:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 7967] New: configure script defines HAVE_GETSECT even if getsect() is not available Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7967 Summary: configure script defines HAVE_GETSECT even if getsect() is not available Product: new-bugs Version: trunk Platform: All 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 In autoconf/configure.ac, there is this fragment that checks for Darwin-specific getsect(): dnl Check for Darwin-specific getsect(). AC_MSG_CHECKING(for getsect()) AC_COMPILE_IFELSE( AC_LANG_SOURCE( [[#include int main() { unsigned long p; return (int)getsect("__DATA","__pass_info", &p); } ]]), AC_MSG_RESULT(yes) AC_DEFINE(HAVE_GETSECT, 1, Have Darwin getsect() support), AC_MSG_RESULT(no) AC_DEFINE(HAVE_GETSECT, 1, Have Darwin getsect() support) ) The "no" case is obviously wrong. -- 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 Aug 22 23:47:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 22 Aug 2010 23:47:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 7960] COFF object emitter assertion on x86-64 bitcode In-Reply-To: References: Message-ID: <20100823044708.CB29E2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7960 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Michael Spencer 2010-08-22 23:47:08 CDT --- Worked around in r111792. -- 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 Aug 23 00:31:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 00:31:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 7965] No way to do a vector [reciprocal] square root In-Reply-To: References: Message-ID: <20100823053110.5E1612A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7965 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clattner at apple.com, | |gohman at apple.com Resolution| |LATER --- Comment #1 from Chris Lattner 2010-08-23 00:31:09 CDT --- You can get this by generating the x86-specific builtin that _mm_sqrt_ps (or any other *mminfo.h function) compiles into. You may have some luck with http://llvm.org/docs/LangRef.html#int_sqrt but I don't know if it has X86 or any other target has optimized support for 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 Mon Aug 23 00:31:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 00:31:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 7964] Memory leaks in LLVM In-Reply-To: References: Message-ID: <20100823053139.2953A2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7964 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-08-23 00:31:38 CDT --- Please upgrade to mainline, llvm 2.7 is really old and lots of leaks have been fixed since then. -- 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 Aug 23 01:17:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 01:17:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 7969] New: tailcallelim not optimizing fib anymore Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7969 Summary: tailcallelim not optimizing fib anymore Product: libraries Version: 1.0 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu Consider this code: int fib(int n) { if (n == 1) return 0; if (n == 2) return 1; return fib(n-1) + fib(n-2); } We compile this into: define i32 @fib(i32 %n) nounwind readnone ssp { entry: switch i32 %n, label %bb3 [ i32 1, label %bb4 i32 2, label %bb2 ] bb2: ; preds = %entry ret i32 1 bb3: ; preds = %entry %0 = add nsw i32 %n, -1 ; [#uses=1] %1 = tail call i32 @fib(i32 %0) nounwind ssp ; [#uses=1] %2 = add nsw i32 %n, -2 ; [#uses=1] %3 = tail call i32 @fib(i32 %2) nounwind ssp ; [#uses=1] %4 = add nsw i32 %3, %1 ; [#uses=1] ret i32 %4 bb4: ; preds = %entry ret i32 0 } The tailcallopt pass used to be able to transform the last call to fib into a loop by eliminating the accumulator. This isn't happening anymore. -- 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 Aug 23 02:07:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 02:07:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 7970] New: clang allows redeclaration of static data member Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7970 Summary: clang allows redeclaration of static data member Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Keywords: accepts-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: akyrtzi at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com struct S { static int val; static int val; }; clang compiles the above sample without complaints. It should say something like: t2.cpp:3:9: error: duplicate member 'val' static int val; ^ t2.cpp:2:9: note: previous declaration is here static int val; ^ -- 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 Aug 23 02:28:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 02:28:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 7960] COFF object emitter assertion on x86-64 bitcode In-Reply-To: References: Message-ID: <20100823072858.4FE6C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7960 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #7 from Anton Korobeynikov 2010-08-23 02:28:57 CDT --- COFF emitter should be fixed, disabling jump tables is not a way -- 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 Aug 23 02:45:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 02:45:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 7971] New: Overload resolution fails when taking the address of a function that is both a static and non-static member Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7971 Summary: Overload resolution fails when taking the address of a function that is both a static and non-static member Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com % cat t.cc void f(bool (*)(int, char)); struct S { void g() { f(&g); } static bool g(int, char); }; % ./bin/clang -fsyntax-only t.cc t.cc:5:5: error: no matching function for call to 'f' f(&g); ^ t.cc:1:6: note: candidate function not viable: no known conversion from ' *' to 'bool (*)(int, char)' for 1st argument void f(bool (*)(int, char)); ^ 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 Mon Aug 23 02:56:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 02:56:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 7948] Explicitly initialized arrays with fewer initializers than elements don't value initialize remaining elements In-Reply-To: References: Message-ID: <20100823075625.3C5F12A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7948 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chandler Carruth 2010-08-23 02:56:24 CDT --- Fixed in r111802. -- 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 Aug 23 08:36:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 08:36:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 7972] New: Memory leaks in LLVM Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7972 Summary: Memory leaks in LLVM Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: WheretIB at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5402) --> (http://llvm.org/bugs/attachment.cgi?id=5402) Test file that shows the leaks There are 29 memory leaks in static LLVM objects in my configuration. I use Microsoft Visual Studio 2005 and LLVM is compiled in Debug configuration. Attachment shows an example of a simple leak detector and its output. The reason for leaks is that PassRegistry object is never freed (PassRegistry.cpp) There is a cleanupPassRegistry function, that is passed to ManagedCleanup object (ManagedCleanup<&cleanupPassRegistry> ManagedCleanup ATTRIBUTE_USED;) but ManagedCleanup overload for function doesn't have a constructor or destructor, and no one's calling the Register method. -- 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 Aug 23 10:47:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 10:47:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 7973] New: objdump: "BFD: Dwarf Error: mangled line number section (bad file number)." Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7973 Summary: objdump: "BFD: Dwarf Error: mangled line number section (bad file number)." 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: jrengdahl at ra.rockwell.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5403) --> (http://llvm.org/bugs/attachment.cgi?id=5403) minimal test case, sources and Makefile I'm not sure I'm using LLVM correctly, but I'm getting code that looks reasonable. My Makefile does the following: -- use GCC 4.2 with --emit-llvm to create .bc file for each C++ source module -- use llc to translate the .bc to a ARM Cortex-A9 Thumb2 assembly .s file -- use arm-none-eabi-gcc to assemble .s to .o -- use arm-none-eabi-gcc to link .o to axf I have tried using the LLVM 2.7 gcc-4.2 front-end and later built my own gcc-4.2 front-end from SVN revision 111549. I built LLVM from SVN revision 111549. I originally used the CodeSourcery Lite arm-none-eabi-2010q1-188 toolchain (which provides gcc 4.4.1 and binutils 2.19) for the assembler, linker, and objdump. I later used crosstool-ng to build a gcc-4.4.2 with binutils 2.20.1 toolchain to provide the asm, linker, and objdump. Regardless of the toolchain versions, I always get the same error. One of the last steps of my build is to use "objdump -dS" to disassemble the .axf file, with inline source. This step results in many error messages, all the same: arm-none-eabi-objdump -dS main.axf > main.disasm BFD: Dwarf Error: mangled line number section (bad file number). BFD: Dwarf Error: mangled line number section (bad file number). ... The disassembly does not contain source for any C++ modules. Also the debugger (Lauterbach TRACE32) cannot find the source. I have attached a minimal test case that demonstrates the problem. I tried several ways to minimize the test case further, but this seems to be the simplest I can make it and still cause the error message. Unpack the tarball, edit the Makefile to point to the toolchain location, and type "make". -- 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 Aug 23 13:07:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 13:07:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 7974] New: extra "field is uninitialized" warning when passing &field to field's ctor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7974 Summary: extra "field is uninitialized" warning when passing &field to field's ctor Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: evan at chromium.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5404) --> (http://llvm.org/bugs/attachment.cgi?id=5404) demo code class Foo { public: Foo() : bar(&bar) {} void* bar; }; g++ Ubuntu 4.4.3-4ubuntu5 with -Wall -Wextra doesn't complain about this code. clang++ r111814 says bug.cc:4:16: warning: field is uninitialized when used here [-Wuninitialized] Foo() : bar(&bar) {} This kind of code *can* be wrong, for example if bar had a ctor that did something with the pointer passed to it. But in any case that warning doesn't really say that. This pattern occurs in Chrome. http://src.chromium.org/viewvc/chrome/trunk/src/base/linked_list.h?view=markup the code looks like: LinkedList() : root_(&root_, &root_) {} -- 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 Aug 23 13:26:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 13:26:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 7920] Using const wchar_t and compiling with -g causes segfault. In-Reply-To: References: Message-ID: <20100823182636.A44882A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7920 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Devang Patel 2010-08-23 13:26:36 CDT --- Fixed. r111820 and r111821. -- 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 Aug 23 14:26:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 14:26:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 7975] New: chained comparisons lacking warning gcc has Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7975 Summary: chained comparisons lacking warning gcc has Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: evan at chromium.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com We were just marveling at the gcc warning on the following code: bool x = 3 < 4 < 5; test.cc:3: warning: comparisons like ?X<=Y<=Z? do not have their mathematical meaning So I thought to see what clang thinks of it. No warning at all! (llvm/clang r111814) -- 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 clattner at apple.com Mon Aug 23 14:44:52 2010 From: clattner at apple.com (Chris Lattner) Date: Mon, 23 Aug 2010 12:44:52 -0700 Subject: [LLVMbugs] [LLVMdev] [Bug 7748] [PATCH] Fix MSVC truncating enums In-Reply-To: References: Message-ID: On Aug 18, 2010, at 8:45 PM, nobled wrote: > I attached a patch to http://llvm.org/bugs/show_bug.cgi?id=7748 that > should fix it; can anybody review? Wow, this is really ugly. I feel bad because I told bruno to go ahead and use 64-bit integers in the enum values. Bruno, how terrible would it be to switch back to 32-bit enumerators? -Chris From bruno.cardoso at gmail.com Mon Aug 23 14:57:13 2010 From: bruno.cardoso at gmail.com (Bruno Cardoso Lopes) Date: Mon, 23 Aug 2010 12:57:13 -0700 Subject: [LLVMbugs] [LLVMdev] [Bug 7748] [PATCH] Fix MSVC truncating enums In-Reply-To: References: Message-ID: On Mon, Aug 23, 2010 at 12:44 PM, Chris Lattner wrote: > > On Aug 18, 2010, at 8:45 PM, nobled wrote: > > > I attached a patch to http://llvm.org/bugs/show_bug.cgi?id=7748 that > > should fix it; can anybody review? > > Wow, this is really ugly. ?I feel bad because I told bruno to go ahead and use 64-bit integers in the enum values. ?Bruno, how terrible would it be to switch back to 32-bit enumerators? Not a problem at all! There's already a patch laying around for that on the bug description, I will give it a try, if it doesn't work I'll switch it back myself soon. -- Bruno Cardoso Lopes http://www.brunocardoso.cc From clattner at apple.com Mon Aug 23 15:04:39 2010 From: clattner at apple.com (Chris Lattner) Date: Mon, 23 Aug 2010 13:04:39 -0700 Subject: [LLVMbugs] [LLVMdev] [Bug 7748] [PATCH] Fix MSVC truncating enums In-Reply-To: References: Message-ID: <90821966-BEB7-49C6-A922-3DD638EA2A7F@apple.com> On Aug 23, 2010, at 12:57 PM, Bruno Cardoso Lopes wrote: > On Mon, Aug 23, 2010 at 12:44 PM, Chris Lattner wrote: >> >> On Aug 18, 2010, at 8:45 PM, nobled wrote: >> >>> I attached a patch to http://llvm.org/bugs/show_bug.cgi?id=7748 that >>> should fix it; can anybody review? >> >> Wow, this is really ugly. I feel bad because I told bruno to go ahead and use 64-bit integers in the enum values. Bruno, how terrible would it be to switch back to 32-bit enumerators? > > Not a problem at all! There's already a patch laying around for that > on the bug description, I will give it a try, if it doesn't work I'll > switch it back myself soon. Awesome, thanks! -Chris From bugzilla-daemon at llvm.org Mon Aug 23 16:05:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 16:05:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 7976] New: llvm always killed immediately at startup Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7976 Summary: llvm always killed immediately at startup Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: autoconf AssignedTo: unassignedbugs at nondot.org ReportedBy: bordel at doxos.eu CC: llvmbugs at cs.uiuc.edu Not sure if this is the right place to report, but it was suggested that I file a bug at IRC; I was not able to google up a similar issue either. I was compiling llvm+clang from SVN (nested checkout as per http://clang.llvm.org/get_started.html) with default configure arguments (both optimized and debug builds) using g++ 4.4 and g++ 4.5. After make && make install, any program (clang, llvmc, ...) from the llvm suite is killed immediately at startup: $ llvmc zsh: killed llvmc $ strace llvmc execve("/usr/local/bin/llvmc", ["/usr/local/bin/llvmc"], [/* 48 vars */] +++ killed by SIGKILL +++ zsh: killed strace llvmc $ gdb /usr/local/bin/llvmc GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/local/bin/llvmc...(no debugging symbols found)...done. (gdb) run Starting program: /usr/local/bin/llvmc During startup program terminated with signal SIGKILL, Killed. (gdb) Executable arch matches the system (`uname -m` = x86_64): $ file /usr/local/bin/llvmc /usr/local/bin/llvmc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped I am running Ubuntu 10.04 at amd64, exact compiler & linker versions are: g++-4.4 (Ubuntu 4.4.3-4ubuntu5) 4.4.3 g++ (Ubuntu 4.5.0-2ubuntu1~ppa2) 4.5.1 20100419 (prerelease) GNU gold (GNU Binutils for Ubuntu 2.20.51-system.20100418) 1.9 If you can suggest further ways to diagnose this problem, let me know. I can provide as much information as needed. -- 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 Aug 23 17:04:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 17:04:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7958] debug info assertion failure compiling tramp3d for ARM In-Reply-To: References: Message-ID: <20100823220434.34D292A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7958 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Dan Gohman 2010-08-23 17:04:33 CDT --- Fixed in r111841. -- 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 Aug 23 20:43:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 23 Aug 2010 20:43:36 -0500 (CDT) Subject: [LLVMbugs] =?utf-8?q?=5BBug_7977=5D_New=3A_clang_complains_about_?= =?utf-8?q?two-byte_wide_char_L=27_=C3=82_=27?= Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7977 Summary: clang complains about two-byte wide char L'?' Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5406) --> (http://llvm.org/bugs/attachment.cgi?id=5406) testcase The attached testcase doesn't seem to be parsed correctly by clang: ~$ g++ widechar.cc -o widechar ~$ ./widechar 194 ~$ llvm/Debug+Asserts/bin/clang++ widechar.cc -o widechar widechar.cc:4:15: warning: extraneous characters in wide character constant ignored wchar_t c = L'?'; ^ 1 warning generated. ~$ ./widechar -126 The two-byte character literal is 0xc3 0x82. -- 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 Aug 24 00:23:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 00:23:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7971] Overload resolution fails when taking the address of a function that is both a static and non-static member In-Reply-To: References: Message-ID: <20100824052333.B89F32A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7971 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2010-08-24 00:23:33 CDT --- Fixed in r111899. -- 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 Aug 24 00:28:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 00:28:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 6904] clang allows redefinition of static const member In-Reply-To: References: Message-ID: <20100824052829.B5C082A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6904 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2010-08-24 00:28:29 CDT --- Fixed (via Faisal Vali's patch) in Clang r111900. -- 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 Aug 24 01:23:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 01:23:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 7978] New: crash emitting diagnostic about initializer order Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7978 Summary: crash emitting diagnostic about initializer order Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5407) --> (http://llvm.org/bugs/attachment.cgi?id=5407) testcase The attached testcase crashes trying to call GetKeyForMember(). $ clang crash_redux.cc -Wall crash_redux.cc:2:34: error: cannot initialize a member subobject of type 'void *' with an lvalue of type 'char const *' template Foo(T* a) : a_(a) { } ^ ~ crash_redux.cc:9:3: note: in instantiation of function template specialization 'Foo::Foo' requested here Foo(""); ^ I'll show the gdb output of the stack trace instead of the clang-generated one since it has more detail: Program received signal SIGSEGV, Segmentation fault. 0x0000000000f307f2 in llvm::PointerIntPair >::getInt (this=0x10) at /usr/local/google/home/nlewycky/llvm/include/llvm/ADT/PointerIntPair.h:73 73 return (IntType)((Value >> IntShift) & IntMask); (gdb) bt #0 0x0000000000f307f2 in llvm::PointerIntPair >::getInt ( this=0x10) at /usr/local/google/home/nlewycky/llvm/include/llvm/ADT/PointerIntPair.h:73 #1 0x0000000000f2fae6 in llvm::PointerUnion::is (this=0x10) at /usr/local/google/home/nlewycky/llvm/include/llvm/ADT/PointerUnion.h:92 #2 0x0000000000f2f494 in clang::Decl::isInSemaDC (this=0x0) at /usr/local/google/home/nlewycky/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclBase.h:191 #3 0x0000000000f2f4f0 in clang::Decl::getDeclContext (this=0x0) at /usr/local/google/home/nlewycky/llvm/tools/clang/lib/Frontend/../../include/clang/AST/DeclBase.h:282 #4 0x0000000001246cc2 in clang::FieldDecl::getParent (this=0x0) at /usr/local/google/home/nlewycky/llvm/tools/clang/lib/Sema/../../include/clang/AST/Decl.h:1669 #5 0x00000000012612f3 in GetKeyForMember (Context=..., Member=0x30dcd50, MemberMaybeAnon=true) at SemaDeclCXX.cpp:1992 #6 0x00000000012615b1 in DiagnoseBaseOrMemInitializerOrder (SemaRef=..., Constructor=0x30daa30, Inits=0x7fffffffbf78, NumInits=1) at SemaDeclCXX.cpp:2052 #7 0x0000000001261ec7 in clang::Sema::ActOnMemInitializers (this=0x30b7390, ConstructorDecl=0x30daa30, ColonLoc=..., meminits=0x7fffffffbf78, NumMemInits=1, AnyErrors=true) at SemaDeclCXX.cpp:2207 #8 0x00000000013a36b1 in clang::Sema::InstantiateMemInitializers ( this=0x30b7390, New=0x30daa30, Tmpl=0x30d9dd0, TemplateArgs=...) at SemaTemplateInstantiateDecl.cpp:2315 #9 0x00000000013a2bbf in clang::Sema::InstantiateFunctionDefinition ( this=0x30b7390, PointOfInstantiation=..., Function=0x30daa30, Recursive=true, DefinitionRequired=false) at SemaTemplateInstantiateDecl.cpp:2105 #10 0x00000000013a489c in clang::Sema::PerformPendingImplicitInstantiations ( this=0x30b7390, LocalOnly=false) at SemaTemplateInstantiateDecl.cpp:2719 #11 0x00000000011ddd9c in clang::Sema::ActOnEndOfTranslationUnit ( this=0x30b7390) at Sema.cpp:292 #12 0x00000000011a054b in clang::Parser::ParseTopLevelDecl ( this=0x7fffffffc750, Result=...) at Parser.cpp:360 #13 0x000000000118a6f7 in clang::ParseAST (S=..., PrintStats=false) at ParseAST.cpp:82 #14 0x0000000000f19384 in clang::ASTFrontendAction::ExecuteAction ( this=0x30928a0) at FrontendAction.cpp:264 #15 0x0000000001037ca0 in clang::CodeGenAction::ExecuteAction (this=0x30928a0) at CodeGenAction.cpp:332 #16 0x0000000000f18fce in clang::FrontendAction::Execute (this=0x30928a0) at FrontendAction.cpp:184 #17 0x0000000000f0368e in clang::CompilerInstance::ExecuteAction ( this=0x308c3b0, Act=...) at CompilerInstance.cpp:526 #18 0x0000000000eba410 in clang::ExecuteCompilerInvocation (Clang=0x308c3b0) at ExecuteCompilerInvocation.cpp:148 #19 0x0000000000ead8ff in cc1_main (ArgBegin=0x7fffffffd228, ArgEnd=0x7fffffffd328, Argv0=0x308b558 "/usr/local/google/home/nlewycky/llvm/Debug+Asserts/bin/clang", MainAddr=0xeb4f28) at cc1_main.cpp:160 #20 0x0000000000eb6206 in main (argc_=34, argv_=0x7fffffffe138) at driver.cpp:268 (gdb) up 5 #5 0x00000000012612f3 in GetKeyForMember (Context=..., Member=0x30dcd50, MemberMaybeAnon=true) at SemaDeclCXX.cpp:1992 1992 RecordDecl *RD = Field->getParent(); (gdb) p Field $1 = (class clang::FieldDecl *) 0x0 (gdb) up #6 0x00000000012615b1 in DiagnoseBaseOrMemInitializerOrder (SemaRef=..., Constructor=0x30daa30, Inits=0x7fffffffbf78, NumInits=1) at SemaDeclCXX.cpp:2052 2052 void *InitKey = GetKeyForMember(SemaRef.Context, Init, true); (gdb) p Init $2 = (class clang::CXXBaseOrMemberInitializer *) 0x30dcd50 (gdb) p Init->Init $3 = (class clang::Stmt *) 0x30dcd10 (gdb) call Init->Init->dump() (CXXConstructExpr 0x30dcd10 'struct Foo::''void (void) throw()' zeroing) (gdb) p Init->BaseOrMember $4 = {Val = {Value = 51224882}} (gdb) p Init->AnonUnionMember $5 = (class clang::FieldDecl *) 0x0 -- 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 Aug 24 02:54:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 02:54:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 7979] New: Clang requires a definition of a member function before it can be explicitly instantiated Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7979 Summary: Clang requires a definition of a member function before it can be explicitly instantiated Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com % cat t.cc template struct S { void f(); }; template void S::f(); template void S::f() {} % ./bin/clang -fsyntax-only t.cc t.cc:5:23: error: explicit instantiation of undefined member function 'f' of class template 'S' template void S::f(); ^ t.cc:2:8: note: explicit instantiation refers here void f(); ^ 1 error generated. [temp.explicit] 14.7.2/3 says only that "A definition of a class template shall be in scope at the point of an explicit instantiation of a member function or a static data member of the class template." No mention is made of the definition of the member function. -- 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 Aug 24 02:59:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 02:59:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 7976] llvmc always killed immediately at startup In-Reply-To: References: Message-ID: <20100824075932.8B8DC2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7976 eudoxos changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #5 from eudoxos 2010-08-24 02:59:31 CDT --- Stripping the (working) Release+Assert/bin/tblgen makes it being killed at startup. $ strip --versiontlucid g++ 4.5 GNU strip (GNU Binutils for Ubuntu) 2.20.51-system.20100418 I upgraded binutils (a development snapshot) to 2.20.51-system.20100813 and it works perfectly now. (I never hadp roblems wiht other programs, though...?!) Thanks for your help. -- 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 Aug 24 04:25:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 04:25:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7980] New: RegAllocFast doesn't set correctly kill flag on implicit use registers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7980 Summary: RegAllocFast doesn't set correctly kill flag on implicit use registers Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Register Allocator AssignedTo: unassignedbugs at nondot.org ReportedBy: quickslyver at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5408) --> (http://llvm.org/bugs/attachment.cgi?id=5408) reproducer source That's bad for later passes, like Register Scavenging. Reproducer: download the attached test.ll file $llc -O0 -debug test.ll -verify-machineinstrs *** Bad machine code: Using an undefined physical register *** - function: compare - basic block: entry 0x93ec8a4 (BB#0) - instruction: JE_4 , %EFLAGS - operand 1: %EFLAGS LLVM ERROR: Found 1 machine code errors. CMP32ri8 %EAX, 1, %EFLAGS %DH = SETGr %EFLAGS <- ****ERROR IS HERE, EFLAGS is not "kill" !!!!***** MOV8mr , 1, %reg0, 0, %reg0, %DH; mem:ST1[FixedStack1] MOV8mr , 1, %reg0, 0, %reg0, %DL; mem:ST1[FixedStack2] JE_4 , %EFLAGS -- 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 Aug 24 06:33:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 06:33:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 7981] New: -Wformat gives erronous warning for %lc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7981 Summary: -Wformat gives erronous warning for %lc Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hans at chromium.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Compiling the following code with -Wformat generates a warning: #include int main() { wchar_t wc = 'x'; printf("%lc\n", wc); return 0; } clang -Wformat a.c /tmp/a.c:5:13: warning: conversion specifies type 'long' but the argument has type 'wchar_t' (aka 'int') [-Wformat] printf("%lc\n", wc); ~~^ ~~ %d 1 warning generated. But AFAIK, the code is correct? -- 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 Aug 24 08:03:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 08:03:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 7982] New: Assertion fires when running TwoAddressInstructionPass more than once Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7982 Summary: Assertion fires when running TwoAddressInstructionPass more than once 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: gergo at complang.tuwien.ac.at CC: llvmbugs at cs.uiuc.edu I am working on a backend (llc) pass that is to be run shortly before register allocation. It uses, and makes some last-minute changes to, some of the analyses used by register allocators. Thus, a number of passes must be run twice: Once before my pass, then again between my pass and register allocation. In particular, pass dependences force TwoAddressInstructionPass to run twice (even if my pass says it will preserve the two-address information). On the second run on some functions, TwoAddressInstructionPass aborts with this assertion: llc: /<...>/TwoAddressInstructionPass.cpp:712: void::TwoAddressInstructionPass::ProcessCopy(llvm::MachineInstr*, llvm::MachineBasicBlock*, llvm::SmallPtrSet&): Assertion `SrcRegMap[NewReg] == DstReg && "Can't map to two src physical registers!"' failed. To reproduce, apply the following quick-and-dirty changes against trunk to force TwoAddressInstructionPass to run twice: Index: lib/CodeGen/LLVMTargetMachine.cpp =================================================================== --- lib/CodeGen/LLVMTargetMachine.cpp (revision 111910) +++ lib/CodeGen/LLVMTargetMachine.cpp (working copy) @@ -387,6 +387,9 @@ if (addPreRegAlloc(PM, OptLevel)) printAndVerify(PM, "After PreRegAlloc passes"); + extern FunctionPass *createTwoAddressInstructionPass(); + PM.add(createTwoAddressInstructionPass()); + // Perform register allocation. PM.add(createRegisterAllocator(OptLevel)); printAndVerify(PM, "After Register Allocation"); Index: lib/CodeGen/TwoAddressInstructionPass.cpp =================================================================== --- lib/CodeGen/TwoAddressInstructionPass.cpp (revision 111910) +++ lib/CodeGen/TwoAddressInstructionPass.cpp (working copy) @@ -1496,3 +1496,7 @@ RegSequences.clear(); return true; } + +FunctionPass *createTwoAddressInstructionPass() { + return new TwoAddressInstructionPass(); +} Then run: > llc -march=x86 get_image.ll on the attached bitcode file get_image.ll (derived from the MiBench suite's susan benchmark). The second time it is run, TwoAddressInstructionPass will abort with the above assertion. (The -march=x86 flag is needed for this to happen.) -- 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 Aug 24 10:00:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 10:00:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 7928] if() branches incorrectly with conditional involving temporaries In-Reply-To: References: Message-ID: <20100824150037.9173C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7928 Brad King changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Brad King 2010-08-24 10:00:37 CDT --- Confirmed. I tested at r111821 but clearly r111709 is the fix. 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 Tue Aug 24 13:38:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 13:38:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 7754] Clang doesn't like extern "C++" followed by a template declaration. In-Reply-To: References: Message-ID: <20100824183843.2F6EB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7754 Francois Pichet changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Francois Pichet 2010-08-24 13:38:42 CDT --- Fixed in r111912 -- 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 Aug 24 15:26:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 15:26:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 7700] bugpoint crashes with Unknown constant!...BitcodeWriter.cpp:905 In-Reply-To: References: Message-ID: <20100824202620.D38E12A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7700 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #5 from Dan Gohman 2010-08-24 15:26:19 CDT --- This is fixed in r111922. -- 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 Aug 24 15:27:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 15:27:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 7689] Crash handling bitcode In-Reply-To: References: Message-ID: <20100824202708.2A3A72A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7689 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #7 from Dan Gohman 2010-08-24 15:27:07 CDT --- Fixed in r111949 and related commits. -- 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 Aug 24 16:07:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 16:07:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 7960] COFF object emitter assertion on x86-64 bitcode In-Reply-To: References: Message-ID: <20100824210724.04A3C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7960 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #10 from Michael Spencer 2010-08-24 16:07:23 CDT --- Correctly fixed and test added in r111963. -- 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 Aug 24 17:25:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 17:25:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 7981] -Wformat gives erronous warning for %lc In-Reply-To: References: Message-ID: <20100824222520.26ECA2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7981 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Ted Kremenek 2010-08-24 17:25:19 CDT --- Fixed: http://llvm.org/viewvc/llvm-project?view=rev&revision=111978 -- 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 Aug 24 17:41:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 17:41:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 7402] Incorrect "initializing multiple members" error, which lacks a SourceLocation In-Reply-To: References: Message-ID: <20100824224109.91D9D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7402 Matt Beaumont-Gay changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |matthewbg at google.com Resolution|FIXED | AssignedTo|unassignedclangbugs at nondot. |chandlerc at gmail.com |org | --- Comment #2 from Matt Beaumont-Gay 2010-08-24 17:41:09 CDT --- Here's a testcase which gives this spurious error with a recent build of clang: struct X { union { struct { int x; int y; }; int v[2]; }; X(int t) : x(t), y(t) {} template X(const T& t) : x(t), y(t) {} }; X a(42); // ok X b(42.0); // error: initializing multiple members of anonymous union -- 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 Aug 24 17:47:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 17:47:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 7985] New: clang ignores candidate template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7985 Summary: clang ignores candidate template Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5410) --> (http://llvm.org/bugs/attachment.cgi?id=5410) testcase I'm not 100% sure, but I think the attached code is valid. Clang rejects it with: b2944243.cc:17:3: error: no matching function for call to 'array_lengthof' array_lengthof(Description::data); ^~~~~~~~~~~~~~ b2944243.cc:2:5: note: candidate template ignored: failed template argument deduction int array_lengthof(T (&x)[N]) { return N; } ^ 1 error generated. Notably, adding the exact length to the array when declared/defined makes it work. So does detemplatizing Description. -- 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 Aug 24 17:59:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 17:59:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 7986] New: poor diagnostic for leading mystery bytes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7986 Summary: poor diagnostic for leading mystery bytes Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5411) --> (http://llvm.org/bugs/attachment.cgi?id=5411) testcase This error took me a while to figure out: nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/clang++ x.cc -fsyntax-only x.cc:1:1: error: expected unqualified-id? // Surprise! ^ 1 error generated. it would've been awesome if clang had pointed out the unprintable characters at the front of the file. I should mention that gcc doesn't mind those characters at all but that's probably part of proper UTF-8 support. Testcase 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 Tue Aug 24 20:17:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 24 Aug 2010 20:17:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 3106] Load/Store through pointer implies it isn't null In-Reply-To: References: Message-ID: <20100825011754.116E32A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3106 Owen Anderson 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 Wed Aug 25 03:27:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 03:27:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 7979] Clang requires a definition of a member function before it can be explicitly instantiated In-Reply-To: References: Message-ID: <20100825082730.3769D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7979 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chandler Carruth 2010-08-25 03:27:29 CDT --- Fixed in r112037. -- 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 Aug 25 03:37:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 03:37:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 7987] New: ELFObjectWriter emits wrong relocation type for PLT symbols Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7987 Summary: ELFObjectWriter emits wrong relocation type for PLT symbols 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: xuzhongxing at gmail.com CC: llvmbugs at cs.uiuc.edu #include int main() { int a; printf("%p\n", &a); return 0; } On x86-64 Linux, the integrated assembler currently emits R_X86_64_PC32 type relocation entry for printf at PLT with pic relocation model. It should emit R_X86_64_PLT32 type relocation entry for it. $clang -cc1 -emit-obj a.c can reproduce the bug. -- 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 Aug 25 03:46:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 03:46:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 7967] configure script defines HAVE_GETSECT even if getsect() is not available In-Reply-To: References: Message-ID: <20100825084619.2DE6B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7967 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Eric Christopher 2010-08-25 03:46:18 CDT --- They really don't appear to be used at all. I think Owen had plans, but he can put them back in when he gets there :) [issola:~/sources/llvm] echristo% svn ci autoconf Sending autoconf/configure.ac Transmitting file data . Committed revision 112041. [issola:~/sources/llvm] echristo% svn ci configure include/ Sending configure Sending include/llvm/Config/config.h.in Transmitting file data .. Committed revision 112042. -- 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 Aug 25 03:53:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 03:53:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 6379] limits.h "#include_next madness" misses include system limits.h In-Reply-To: References: Message-ID: <20100825085301.63D6A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6379 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Eric Christopher 2010-08-25 03:53:00 CDT --- I think this is fixed. Let me know if not. -- 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 Aug 25 09:10:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 09:10:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7988] New: UNREACHABLE executed at NEONPreAllocPass.cpp:471 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7988 Summary: UNREACHABLE executed at NEONPreAllocPass.cpp:471 Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: Edmund.Grimley-Evans at arm.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5412) --> (http://llvm.org/bugs/attachment.cgi?id=5412) Proposed test case I think the attached test case should pass, though I can't be certain. The idea is that splitting and then recombining should be a no op. Is there a better way of testing for that? Currently, with r112047, I get this error: expected a REG_SEQUENCE UNREACHABLE executed at NEONPreAllocPass.cpp:471! -- 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 Aug 25 12:45:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 12:45:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7989] New: access control misapplied to member templates Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7989 Summary: access control misapplied to member templates Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5413) --> (http://llvm.org/bugs/attachment.cgi?id=5413) testcase I think the attached program is valid code. Clang rejects it with: $ clang++ b2936099.cc b2936099.cc:12:13: error: 'ProtectedTemplate' is a protected member of 'Base' Tester< ProtectedTemplate >(); ^~~~~~~~~~~~~~~~~~~~~~~ b2936099.cc:1:30: note: while substituting explicitly-specified template arguments into function template 'Tester' template void Tester() {} ^ b2936099.cc:15:13: error: 'PrivateTemplate' is a private member of 'Base' Tester< PrivateTemplate >(); ^~~~~~~~~~~~~~~~~~~~~ 2 errors 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 Wed Aug 25 13:31:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 13:31:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 7990] New: calling non-const method from a const method produces embarrassing diagnostic Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7990 Summary: calling non-const method from a const method produces embarrassing diagnostic Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com I got this today: /Volumes/Projects/cvs/llvm/include/llvm/Target/TargetLowering.h:227:14: error: cannot initialize object parameter of type 'llvm::TargetLowering::ValueTypeActionImpl' with an expression of type 'llvm::TargetLowering::ValueTypeActionImpl const' As is super obvious from the message, the caller is marked const, but the callee is not. wtf. Here's a testcase: struct foo { void bar(); void bonk() const { bar(); } }; GCC produces: t.cc: In member function ?void foo::bonk() const?: t.cc:6: error: passing ?const foo? as ?this? argument of ?void foo::bar()? discards qualifiers which is better, but it would even be better to special case this and produce a really amazing diagnostic for this common error. -- 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 Aug 25 14:57:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 14:57:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 7991] New: [ms-extensions-undocumented] Flexible array members in union Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7991 Summary: [ms-extensions-undocumented] Flexible array members in union Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu Here's an example from the Windows SDK. typedef struct _PROPERTYINSTEX { WORD Length; union { BYTE Byte[]; WORD Word[]; DWORD Dword[]; LARGE_INTEGER LargeInt[]; SYSTEMTIME SysTime[]; TYPED_STRING TypedString; }; } PROPERTYINSTEX; -- 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 Aug 25 16:16:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 16:16:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 7992] New: illegal operations introduced by DAGCombiner::ReduceLoadWidth Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7992 Summary: illegal operations introduced by DAGCombiner::ReduceLoadWidth Product: new-bugs Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: jpbonn-keyword-llvmbug.a51747 at corniceresearch.com CC: llvmbugs at cs.uiuc.edu Below is the email exchange describing the problem. This is present in the SVN head as of 2010-08-25. In looking at isLoadExtLegal in TargetLowering.h there are number of other similar functions (e.g. isIndexedLoadLegal, isTruncStoreLegal, isIndexedStoreLegal) that could potentially have similar issues. On Mon, Jul 19, 2010 at 5:21 PM, JP Bonn wrote: > > On 7/19/10 10:36 AM, Duncan Sands wrote: >> >> Hi JP, >> >> >> >> >>> >>> DAGCombiner::ReduceLoadWidth() does the following: >>> >>> /// ReduceLoadWidth - If the result of a wider load is shifted to right of N >>> >>> /// bits and then truncated to a narrower type and where N is a multiple >>> >>> /// of number of bits of the narrower type, transform it to a narrower load >>> >>> /// from address + N / num of bits of new type. If the result is to be >>> >>> /// extended, also fold the extension to form a extending load. >>> >>> >>> >>> The problem I'm running into is our loads are custom lowered. Our >>> >>> architecture does not support loads smaller than 32 bits so we change >>> >>> these loads into 32 bit loads. Unfortunately ReduceLoadWidth() then >>> >>> lowers them back into 16 bit loads. >>> >>> >>> >>> Is this a bug in ReduceLoadWidth() or is there something I'm missing? >>> >>> >> >> I think it's a bug. When running after type legalization, the DAG combiner >> >> should not introduce any illegal types. When running after operation >> >> legalization, the DAG combiner should not introduce any illegal operations. >> >> Consider this code from ReduceLoadWidth: >> >> >> >> if (LegalOperations&& !TLI.isLoadExtLegal(ISD::SEXTLOAD, ExtVT)) >> >> return SDValue(); >> >> >> >> Here you see that it checks whether it is only allowed to produce legal >> >> operations, and bails out if it would create an illegal extending load. >> >> However the later logic in ReduceLoadWidth doesn't do any such checking >> >> as far as I can see, which is wrong. >> >> >> >> > > It does appear the same test should be applied to the ZEXTLOAD case too. > > > > For my case where I do custom lowerings TLI.isLoadExtLegal() considers > > custom lowerings as being legal Should these tests exclude custom > > lowerings? TLI.isLoadExtLegal() is not declared as being virtual - > > should it be? Post-legalization, operations with custom lowerings shouldn't be generated by the DAGCombiner; isLoadExtLegal should probably take a "IsAfterLegalization" bool as an argument or something like that. -Eli -- 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 Aug 25 19:32:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 19:32:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 3892] llvm-extract makes all globals internals In-Reply-To: References: Message-ID: <20100826003247.D39452A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3892 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Dan Gohman 2010-08-25 19:32:47 CDT --- I agree with Dale. I decided that several things that ExtractGV was doing weren't actually desirable, so I rewrote it, in r112120. Now, it doesn't change anything to internal. It does make internal things external, though some about of that is unavoidable. -- 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 Aug 25 19:46:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 19:46:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 5417] llvm-extract doesn't strip out dead metadata In-Reply-To: References: Message-ID: <20100826004626.2F9802A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5417 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |gohman at apple.com Resolution| |FIXED --- Comment #2 from Dan Gohman 2010-08-25 19:46:25 CDT --- Fixed in r112120. -- 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 Aug 25 20:04:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 25 Aug 2010 20:04:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 7748] VC++ truncates X86II::VEX enum constants In-Reply-To: References: Message-ID: <20100826010427.1BFB22A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7748 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #10 from Bruno Cardoso Lopes 2010-08-25 20:04:26 CDT --- You actually just missed one TSFlags and I've foreseen! I fixed it myself and commited in r112128! 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 Thu Aug 26 01:56:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 01:56:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7993] New: LegalizeOp produces illegal type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7993 Summary: LegalizeOp produces illegal type Product: libraries Version: 1.0 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu The following example crashes $ llc -march=x86-64 -mattr=-sse2 foo.ll define <4 x i32> @test3(<4 x i16> %a) nounwind { %c = sext <4 x i16> %a to <4 x i32> ; <<4 x i32>> [#uses=1] ret <4 x i32> %c } This is because this code in legalizedag.cpp: case TargetLowering::Expand: if (!TLI.isLoadExtLegal(ISD::EXTLOAD, SrcVT)) { // FIXME: If SrcVT isn't legal, then this introduces an illegal // type. SDValue Load = DAG.getLoad(SrcVT, dl, Tmp1, Tmp2, LD->getSrcValue(), LD->getSrcValueOffset(), LD->isVolatile(), LD->isNonTemporal(), LD->getAlignment()); unsigned ExtendOp; switch (ExtType) { case ISD::EXTLOAD: ExtendOp = (SrcVT.isFloatingPoint() ? ISD::FP_EXTEND : ISD::ANY_EXTEND); break; case ISD::SEXTLOAD: ExtendOp = ISD::SIGN_EXTEND; break; case ISD::ZEXTLOAD: ExtendOp = ISD::ZERO_EXTEND; break; default: llvm_unreachable("Unexpected extend load type!"); } Result = DAG.getNode(ExtendOp, dl, Node->getValueType(0), Load); Tmp1 = LegalizeOp(Result); // Relegalize new nodes. Tmp2 = LegalizeOp(Load.getValue(1)); break; produces a load of the extload's load VT, if that isn't legal, then this produces a node with an invalid type, after type legalization has run. Are the extloads invalid? -- 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 Aug 26 05:18:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 05:18:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 7994] New: LTO:decl/impl type mismatch on lto_module_get_num_symbols() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7994 Summary: LTO:decl/impl type mismatch on lto_module_get_num_symbols() Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu * include/llvm-c/lto.h:148 extern unsigned int lto_module_get_num_symbols(lto_module_t mod); * tools/lto/lto.cpp:135 uint32_t lto_module_get_num_symbols(lto_module_t mod); The type uint32_t is "unsigned long" on Cygwin-1.5. (not on Cygwin-1.7) -- 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 Aug 26 06:01:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 06:01:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 7995] New: test/Scripts/macho-dump is incompatible to python 2.4(CentOS5) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7995 Summary: test/Scripts/macho-dump is incompatible to python 2.4(CentOS5) 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: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu With Python-2.4, Reader::read64 always returns (unexpected) long integer. FileCheck detects failure on test/MC/MachO among '0' and '0L' --- $ Release+Asserts/bin/llvm-lit -v ~/llvm/test/MC/MachO/tbss.s -- Testing: 1 tests, 1 threads -- FAIL: LLVM :: MC/MachO/tbss.s (1 of 1) (snip) Command Output (stderr): -- /home/chapuni/llvm/test/MC/MachO/tbss.s:18:11: error: expected string not found in input // CHECK: ('vm_addr', 0) ^ :13:2: note: scanning from here ('vm_addr', 0L) ^ --- import struct print '%r' % struct.unpack('Q',"\x00\x00\x00\x00\x00\x00\x00\x00")[0] --- Cygwin-1.5 (ok) Python 2.5.2 (r252:60911, Dec 2 2008, 09:26:14) >>> print '%r' % struct.unpack('Q',"\x00\x00\x00\x00\x00\x00\x00\x00")[0] 0 >>> --- * CentOS 5.4 (ng) Python 2.4.3 (#1, Sep 3 2009, 15:37:37) >>> print '%r' % struct.unpack('Q',"\x00\x00\x00\x00\x00\x00\x00\x00")[0] 0L >>> -- 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 Aug 26 06:10:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 06:10:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 7996] New: test/Scripts/coff-dump.py is incompatible to python 2.4(CentOS5) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7996 Summary: test/Scripts/coff-dump.py is incompatible to python 2.4(CentOS5) 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: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu coff-dump.py:400 description = definitions[value] if value in definitions else "unknown" " if else " is not supported on python 2.4. I can see succeeded to rewrite it to traditional 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 Thu Aug 26 06:45:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 06:45:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 7997] New: -ccc-cxx option doesn't work on Linux Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7997 Summary: -ccc-cxx option doesn't work on Linux Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nobled at dreamwidth.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5414) --> (http://llvm.org/bugs/attachment.cgi?id=5414) Have `clang -ccc-cxx` use g++ for linking on Linux Tested with 2.7 (Ubuntu packaging) and SVN r111771. The option -ccc-cxx is supposed to make Clang "Act as a C++ driver", but it only does that on darwin, auroraux, openbsd, freebd, minix, and dragonfly (the platforms with Link::ContructJob methods in lib/Driver/Tools.cpp). The attached patch makes it work on Linux, too (since it seems to do its linking in gcc::Common::ConstructJob with CCCGenericGCCName). -- 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 Aug 26 09:58:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 09:58:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 7998] New: some (all?) intrinsics crashing when using float32 and cross-compiling from darwin -> mingw32 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7998 Summary: some (all?) intrinsics crashing when using float32 and cross-compiling from darwin -> mingw32 Product: libraries Version: 2.7 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: harmonicholas at hotmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5415) --> (http://llvm.org/bugs/attachment.cgi?id=5415) crash report in windows Overview: When cross-compiling from a macintosh platform targetting windows with mingw, using the llvm intrinsics with the float32 type causes a crash during execution of the JIT compiled function calling the intrinsic. Steps to Reproduce: 1. have a working mingw crosscompiler. I used mingw-cross-env-2.15.tar.gz from http://mingw-cross-env.nongnu.org/ which is very easy to install 2. be sure to have i686-pc-mingw32-gcc and i686-pc-mingw32-g++ in the PATH 3. configure llvm-2.7 ./configure --build=i386-apple-darwin --host=i686-pc-mingw32 --target=i686-pc-mingw32 --enable-targets=x86 -enable-optimized=yes 4. build & install llvm 5. compile file IntrinsicProblem.cpp (see below) using the mingw cross compiler. It simply tries to evaluate sinf(pi/2) using the intrinsic Makefile is trivially adapted from examples/HowToUseJIT 6. Execute IntrinsicProblem.exe in a Windows environment, an exception is signalled Actual Results: the application crashed Expected Results: showing a result the result of sinf(pi/2), which is 1 Build Date & Platform: build platform: Darwin xxxx.xxxx.fr 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386 date 26 Aug 2010 on mac os 10.6.4 target platform: Windows XP Professional 32 bits / Windows Version 5.1 (2600.xpsp_sp3.gdr.100427-1636 : Service Pack 3) running in VMWare Fusion Additional Information: intrinsic & double-float works OK double-float and calling the function sin works aswell cat examples/IntrinsicProblem/IntrinsicProblem.cpp // if I use float and intrinsic, the I have a segmentation fault when cross-compiled with build = darwin10 x86_64 and target = mingw32 #define USE_FLOAT 1 #define USE_INTRINSIC 1 //===-- examples/IntrinsicProblem/IntrinsicProblem.cpp - An example use of the JIT --===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This small program provides an example of how to quickly build a small // module with two functions and execute it with the JIT. // // Goal: // The goal of this snippet is to create in the memory // the LLVM module consisting of a functions as follow: // // int foo() { // return sin(pi/2); // } // // then compile the module via JIT, then execute the `foo' // function and return result to a driver, i.e. to a "host program". // // Some remarks and questions: // //===----------------------------------------------------------------------===// #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" #include "llvm/Instructions.h" #include "llvm/ExecutionEngine/JIT.h" #include "llvm/ExecutionEngine/Interpreter.h" #include "llvm/ExecutionEngine/GenericValue.h" #include "llvm/Target/TargetSelect.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Intrinsics.h" using namespace llvm; int main() { InitializeNativeTarget(); LLVMContext Context; #if USE_FLOAT const Type * type = Type::getFloatTy(Context); #else const Type * type = Type::getDoubleTy(Context); #endif // Create some module to put our function into it. Module *M = new Module("test", Context); // arguments. Function *FooF = cast(M->getOrInsertFunction("foo", type, (Type *)0)); // Add a basic block to the FooF function. BasicBlock *BB = BasicBlock::Create(Context, "EntryBlock", FooF); // Get pointers to the constant `2'. Value *Arg = ConstantFP::get(type,M_PI/2.); #if USE_INTRINSIC const Type *Tys[] = { type }; Function *Sine = Intrinsic::getDeclaration(M, Intrinsic::sin,Tys, 1); #else std::vector arguments_types; FunctionType * FT; arguments_types.clear(); arguments_types.push_back(type); FT = FunctionType::get(type,arguments_types, false); char function_name[16] = "sin"; if( type == Type::getFloatTy(Context) ) { strcat(function_name,"f"); } Function * Sine = Function::Create(FT, Function::ExternalLinkage, function_name, M); #endif CallInst *CallRes = CallInst::Create(Sine, Arg, "rslt", BB); // Create the return instruction and add it to the basic block. ReturnInst::Create(Context, CallRes, BB); // Now we create the JIT. ExecutionEngine* EE = EngineBuilder(M).create(); outs() << "We just constructed this LLVM module:\n\n" << *M; outs() << "\n\nRunning foo: "; outs().flush(); // Call the `foo' function with no arguments: std::vector noargs; GenericValue gv = EE->runFunction(FooF, noargs); // Import result of execution: outs() << "Result: " << (type == Type::getFloatTy(Context) ? gv.FloatVal : gv.DoubleVal ) << "\n"; EE->freeMachineCodeForFunction(FooF); delete EE; llvm_shutdown(); return 0; } (o) -- 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 Aug 26 10:48:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 10:48:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 7988] UNREACHABLE executed at NEONPreAllocPass.cpp:471 In-Reply-To: References: Message-ID: <20100826154816.AB8832A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7988 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Bob Wilson 2010-08-26 10:48:16 CDT --- This was fixed by svn 112118. -- 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 Aug 26 11:42:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 11:42:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7999] New: Warning about stack returns doesn't account for reference type members Message-ID: http://llvm.org/bugs/show_bug.cgi?id=7999 Summary: Warning about stack returns doesn't account for reference type members Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This shows up in Boost, here is the reduced test case: template struct S { S(T& t) : value(t) {} T& value; }; struct X {}; X& f(S s) { return s.value; } void test(X& x) { (void)f(x); } And the patch to fix: --- a/trunk/tools/clang/lib/Sema/SemaChecking.cpp +++ b/trunk/tools/clang/lib/Sema/SemaChecking.cpp @@ -2028,10 +2028,15 @@ do { MemberExpr *M = cast(E); // Check for indirect access. We only want direct field accesses. - if (!M->isArrow()) - return EvalVal(M->getBase()); - else + if (M->isArrow()) + return NULL; + + // Check whether the member type is itself a reference, in which case we're + // not going to refer to the member, but to what the member refers to. + if (M->getMemberDecl()->getType()->isReferenceType()) return NULL; + + return EvalVal(M->getBase()); } // Everything else: we simply don't reason about them. -- 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 Aug 26 12:48:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 12:48:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 7994] LTO:decl/impl type mismatch on lto_module_get_num_symbols() In-Reply-To: References: Message-ID: <20100826174805.525662A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7994 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Devang Patel 2010-08-26 12:48:05 CDT --- Thanks for the report. Fixed in r112200. -- 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 Aug 26 12:52:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 12:52:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 8000] New: access control should not apply to template-name Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8000 Summary: access control should not apply to template-name Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5417) --> (http://llvm.org/bugs/attachment.cgi?id=5417) testcase The attached testcase is valid code, but clang gives an error on class A::B being private. This is not correct when used in C per 14.3/3 which specifies that access control is only performed when a template argument is used as a template-argument not when used as a template-name. $ clang++ -fsyntax-only b2952128.cc b2952128.cc:13:11: error: 'B' is a private member of 'A' void C::c() {} ^ b2952128.cc:8:8: note: declared private here class B {}; ^ 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 Thu Aug 26 15:27:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 15:27:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 8001] New: not seeing declaration of constructors for previously declared template class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8001 Summary: not seeing declaration of constructors for previously declared template class Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5418) --> (http://llvm.org/bugs/attachment.cgi?id=5418) testcase The attachment is valid C++ but clang seems to be tripped up by the typedef, as though the typedef were triggering the instantiation before the definition. $ clang++ -fsyntax-only b2953197.cc b2953197.cc:13:16: error: no matching constructor for initialization of 'Foo::Baz' (aka 'Bar') Foo::Baz x; ^ b2953197.cc:3:30: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided template class Bar; ^ 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 Thu Aug 26 16:43:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 16:43:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 8002] New: Dependent conversion function names looked up in dependent bases Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8002 Summary: Dependent conversion function names looked up in dependent bases Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: schaub-johannes at web.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This code is ill-formed. Unqualified names should not be looked up in dependent base classes, no matter whether they are dependent or not, according to the Standard. template struct A { operator int() { return 0; } }; template struct B : A { int f() { return operator T(); } }; int main() { return B().f(); } Clang accepts it, though. And it's easy to construct an rejects-valid for this, just add another non-dependent base that also has an "operator int" declared, and you wrongly get an ambiguity diagnostic. -- 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 Aug 26 16:52:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 16:52:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8003] New: BFD: Dwarf Error: Could not find abbrev number Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8003 Summary: BFD: Dwarf Error: Could not find abbrev number 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: jingl1345 at gmail.com CC: llvmbugs at cs.uiuc.edu With the patch for Bug 7689, I can build the binary with debug information with gold right now. But when I do objdump on that binary, I get a lot of "BFD: Dwarf Error: Could not find abbrev number". I compiled flex-2.5.35 using: ../configure --prefix=/local/install CFLAGS="-O4 -g" CC="llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" CXX="llvm-g++ -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" RANLIB="/bin/true" make I am also attaching the final binary, the whole program bytecode, and those per file bytecode which can be linked to get the final binary by: llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm -O4 -g -o flex ccl.o dfa.o ecs.o scanflags.o gen.o main.o misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o options.o scanopt.o buf.o tables.o tables_shared.o filter.o regex.o -lm After getting the flex, objdump -l -S flex > flex.S will show a lot of "BFD: Dwarf Error: Could not find abbrev number" -- 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 Aug 26 21:02:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 26 Aug 2010 21:02:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 8004] New: diagnostic points to function not keyword Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8004 Summary: diagnostic points to function not keyword Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com, jyasskin at google.com The "const" keyword makes this code invalid: static void func1(int a, int b, int c, int d) const { } but the error from clang doesn't show the const at all, since it's pointing at the func1: $ clang++ -fsyntax-only b2954466.cc b2954466.cc:1:13: error: type qualifier is not allowed on this function static void func1(int a, int b, ^ 1 error generated. It'd be awesome if we pointed to the "const" 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 Fri Aug 27 03:06:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 03:06:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8006] New: Spurious puzzling warning with --analyze Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8006 Summary: Spurious puzzling warning with --analyze 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: listrp at gmail.com CC: llvmbugs at cs.uiuc.edu $ cat test.c void bar( int x ) { } void foo( int n ) { int x[4096], i; for ( i = 0; i < (1 << n); i++ ) { x[i] = i; } for ( i = 0; i < (1 << n); i++ ) { bar( x[i] ); } } $ clang test.c --analyze test.c:15:3: warning: Pass-by-value argument in function call is undefined bar( x[i] ); ^ ~~~~ According to Ted Kremenek, the problem is that '1 << n' is not getting accurately modeled, resulting in a false path that triggers the warning. -- 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 Aug 27 07:03:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 07:03:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 8007] New: friend function either not instantiated or not injected Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8007 Summary: friend function either not instantiated or not injected Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ggreif at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Please compile the attached file, reproduced here too: ########################### #include template struct Streamer { friend std::ostream& operator << (std::ostream& o, const STRUCT_TYPE& f) { Streamer s(f); s(o); return o; } Streamer(const STRUCT_TYPE& s) : s(s) {} const STRUCT_TYPE& s; void operator () (std::ostream&) const; }; typedef struct Foo {} Foo; // this does not help either: template struct Streamer; template <> void Streamer::operator () (std::ostream& o) const { } int main(void) { Foo foo; std::cout << foo; } ########################### I get: friend-instantiate.cpp:36:15: error: invalid operands to binary expression ('ostream' (aka 'basic_ostream') and 'Foo' (aka 'Foo')) std::cout << foo; ~~~~~~~~~ ^ ~~~ gcc (v3.4.6) does compile this. I suppose that the friend operator function is either not instantiated or not injected into the enclosing scope. Even explicitly instantiating the template does nor help (as commented in the code). Offtopic, but funny, how the error message issues an "aka" with the same name. I guess this should be suppressed as it can be quite confusing for long (but identical) names. -- 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 Aug 27 07:45:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 07:45:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 8008] New: provide fixit for removing of extra qualification of members Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8008 Summary: provide fixit for removing of extra qualification of members Product: clang Version: trunk Platform: All URL: http://womble.decadent.org.uk/c++/syntax-errors.html OS/Version: All Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ggreif at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com See second entry ("Extra qualification of members") in the provided link. I suggest to provide a fixit for removing struct foo { foo::foo(); //^^^^^ }; -- 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 Aug 27 12:12:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 12:12:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 5652] eliminate conditional if it protects a region containing a condition that subsumes it In-Reply-To: References: Message-ID: <20100827171253.32D4B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5652 Owen Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |resistor at mac.com Resolution| |FIXED --- Comment #8 from Owen Anderson 2010-08-27 12:12:52 CDT --- Fixed in r112270. -- 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 Aug 27 13:54:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 13:54:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 8011] New: _MM_HINT_T0, 1, 2 defined incorrectly (xmmintrin.h) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8011 Summary: _MM_HINT_T0,1,2 defined incorrectly (xmmintrin.h) Product: clang Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Headers AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jed at 59a2.org CC: llvmbugs at cs.uiuc.edu _mm_prefetch(0,_MM_HINT_T0) compiles to prefetcht2. Since _mm_prefetch() is implemented in terms of __builtin_prefetch, the hints should be defined the same way as GCC: _MM_HINT_T0 3 _MM_HINT_T1 2 _MM_HINT_T2 1 _MM_HINT_NTA 0 This is a 2-line fix in the xmmintrin.h header. -- 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 Aug 27 15:03:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 15:03:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 7237] Clang crash on invalid In-Reply-To: References: Message-ID: <20100827200321.936622A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7237 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |WORKSFORME --- Comment #2 from Eli Friedman 2010-08-27 15:03:20 CDT --- Doesn't appear to crash 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 Aug 27 15:10:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 15:10:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8011] _MM_HINT_T0, 1, 2 defined incorrectly (xmmintrin.h) In-Reply-To: References: Message-ID: <20100827201016.610AE2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8011 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-27 15:10:16 CDT --- Fixed, in r112283, 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 Fri Aug 27 15:26:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 15:26:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 8012] New: clang c++ incorrectly accepts operator name as parameter name Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8012 Summary: clang c++ incorrectly accepts operator name as parameter name Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: void f(void operator+()); I believe [dcl.fct]p10 makes this invalid: operator+ isn't an identifier, and the standard says "An identifier can optionally be provided as a parameter name...". -- 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 Aug 27 17:31:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 17:31:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 8013] New: clang c++ calling address of overload set fails Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8013 Summary: clang c++ calling address of overload set fails Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: void f(int,int); void f(int,int,int); void g() { (&f)(1,2,3); } Valid per [over.match.call]. It's worth noting, though, that the following is not valid: class X { void f(int,int); void f(int,int,int); void g() { (&f)(1,2,3); } }; -- 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 Aug 27 18:22:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 18:22:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 8014] New: Bottom-up FastISel broke tail calls Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8014 Summary: Bottom-up FastISel broke tail calls Product: libraries Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: dalej at apple.com CC: llvmbugs at cs.uiuc.edu The rewrite of FastISel to go bottom-up doesn't work with tail calls. Example: ; ModuleID = '' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-apple-darwin11.0" define i32 @foo() nounwind ssp { entry: %0 = tail call i32 (...)* @bar() nounwind ; [#uses=1] ret i32 %0 } Output: .section __TEXT,__text,regular,pure_instructions .globl _foo .align 4, 0x90 _foo: ## @foo ## BB#0: ## %entry xorb %al, %al #TC_RETURN _bar $0 movl -4(%rsp), %eax ## 4-byte Reload ret Formerly, lowering the tail call set the IsTailCall flag, which caused an early exit from the loop walking instructions, which meant the ret was never selected. emitEpilog lowered the TC_RETURN to TAILJMP, and all was well. Now, we select the RET, which means (a) it's there in the output when it shouldn't be, because nobody ever deletes it, and (b) emitEpilog doesn't lower the TC_RETURN because it's not the terminator. Badness. -- 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 Aug 27 19:19:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 19:19:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 6130] false-positive for -Wunreachable-code In-Reply-To: References: Message-ID: <20100828001937.D3E6F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6130 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Ted Kremenek 2010-08-27 19:19:37 CDT --- Fixed: http://llvm.org/viewvc/llvm-project?view=rev&revision=112334 -- 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 Aug 27 19:22:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 19:22:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8015] New: False use of undefined value warning due to not handling "array[symbolic value]" correctly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8015 Summary: False use of undefined value warning due to not handling "array[symbolic value]" correctly Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: kremenek at apple.com CC: llvmbugs at cs.uiuc.edu We are emitting a false positive for the following snippet: $ cat t.c int getNumber(); void foo() { int number = getNumber(); const char *numbers[] = { "zero" }; if (number == 0) { foo(numbers[number]); } } $ clang --analyze t.c t.c:6:9: warning: Pass-by-value argument in function call is undefined foo(numbers[number]); ^ ~~~~~~~~~~~~~~~ 1 warning 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 Fri Aug 27 19:51:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 27 Aug 2010 19:51:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 8014] Bottom-up FastISel broke tail calls In-Reply-To: References: Message-ID: <20100828005128.604122A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8014 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Dan Gohman 2010-08-27 19:51:28 CDT --- Fixed in r112341. -- 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 baldrick at free.fr Fri Aug 27 21:01:28 2010 From: baldrick at free.fr (Duncan Sands) Date: Sat, 28 Aug 2010 04:01:28 +0200 Subject: [LLVMbugs] LLVM 2.7/OpenSolaris link failure, link commands missing key libraries In-Reply-To: References: Message-ID: <4C786DF8.4060906@free.fr> Hi Laszlo, > The build process fails to link the LLVM tools. Specifically, the > first tool to build is 'opt' which results in 700+ undefined symbols. > > I looked into the Makefiles and found that the "LINK_COMPONENTS" make > variable does not get the correct set of libraries. In fact, at the > top level Makefile.rules, the variable is set to "support system", > however, these do not seem to make it to the 'opt' make context. > > The list of libraries for 'opt' is (from the g++ link command): > > ... -lLLVMipo -lLLVMScalarOpts -lLLVMInstrumentation -lLLVMAsmParser - > lLLVMBitWriter -lLLVMBitReader ... > > It is missing at a minimum LLVMCore, which when added reduces the > unresolved externals to 400+. the list of components to link with is computed automatically. Presumably it is being computed wrong. I suggest you take a look at how tools/llvm-config works. You might want to try LLVM from svn first just in case things work better there. Ciao, Duncan. From bugzilla-daemon at llvm.org Sat Aug 28 09:42:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 28 Aug 2010 09:42:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 8016] New: firefox build problem Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8016 Summary: firefox build problem 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, peterlee at cs.utah.edu Created an attachment (id=5424) --> (http://llvm.org/bugs/attachment.cgi?id=5424) reduced testcase Attached are both a preprocessed file and a reduced version that GCC is happy to compile but Clang++ bombs with a compile error. I'm not sure who's right but wanted to report this. This is from Mozilla's dev head. Intel C++ and Sun C++ are also happy about the reduced testcase. regehr at john-home:~/volatile/bugs/tmp330$ clang++ -v clang version 2.8 (trunk 112350) Target: i386-pc-linux-gnu Thread model: posix regehr at john-home:~/volatile/bugs/tmp330$ clang++ -c -w foo.cc foo.cc:51:3: error: use of undeclared identifier 'RetainCallee' RetainCallee(obj_); ^ this-> foo.cc:58:10: note: in instantiation of member function 'RunnableMethod >::RunnableMethod' requested here return new RunnableMethod >(object, method, MakeTuple(a)); ^ foo.cc:94:154: note: in instantiation of function template specialization 'NewRunnableMethod' requested here ..."/home/regehr/z/mozilla/ipc/chromium/src/chrome/common/ipc_channel_proxy.cc", 67), NewRunnableMethod( ... ^ foo.cc:46:15: note: must qualify identifier to find this declaration in dependent base class static void RetainCallee(T* obj) { ^ foo.cc:51:3: error: no member named 'RetainCallee' in 'RunnableMethod >' RetainCallee(obj_); ^~~~~~~~~~~~ foo.cc:58:10: note: in instantiation of member function 'RunnableMethod >::RunnableMethod' requested here return new RunnableMethod >(object, method, MakeTuple(a)); ^ foo.cc:97:161: note: in instantiation of function template specialization 'NewRunnableMethod' requested here ..."/home/regehr/z/mozilla/ipc/chromium/src/chrome/common/ipc_channel_proxy.cc", 279), NewRunnableMethod( ... ^ 2 errors 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 Aug 28 11:51:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 28 Aug 2010 11:51:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 8016] firefox build problem In-Reply-To: References: Message-ID: <20100828165143.6A1DB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8016 John Regehr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from John Regehr 2010-08-28 11:51:43 CDT --- Nevermind I hadn't read the "firefox meta-bug" all the way until the end. -- 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 Aug 28 15:18:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 28 Aug 2010 15:18:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 7252] clang c++ crash in lookup for ambiguous template base classes In-Reply-To: References: Message-ID: <20100828201800.84C1C2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7252 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John McCall 2010-08-28 15:18:00 CDT --- Fixed in r112383. -- 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 Aug 28 17:15:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 28 Aug 2010 17:15:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 7708] Partial ordering weird behavior In-Reply-To: References: Message-ID: <20100828221554.D57E52A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7708 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #3 from John McCall 2010-08-28 17:15:54 CDT --- We were applying the exact-qualifier-match rules before we noticed that we were in a non-deduced context. Fixed in r112390. -- 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 Aug 28 23:15:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 28 Aug 2010 23:15:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7535] Cannot promote non-promotable alloca! In-Reply-To: References: Message-ID: <20100829041511.841192A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7535 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-28 23:15:10 CDT --- Fixed in r112402, 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 Aug 29 02:03:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 02:03:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 2495] Dominator computation should be lazy - deferred until the first dom query In-Reply-To: References: Message-ID: <20100829070341.F1AB82A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2495 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Chris Lattner 2010-08-29 02:03:41 CDT --- The original JT issue was fixed by ssaupdater. The general design issue may or may not be solved by Dan's rework of the passmanager, but this bug isn't going to make it happen. -- 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 Aug 29 02:08:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 02:08:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 1401] Targets should model flags explicitly In-Reply-To: References: Message-ID: <20100829070802.7C9BD2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1401 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #9 from Chris Lattner 2010-08-29 02:08:01 CDT --- We have the ability to do this, X86 does it at least partially. There is no reason to keep this 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 Sun Aug 29 02:11:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 02:11:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 4421] LICM doesn't preserve AA In-Reply-To: References: Message-ID: <20100829071110.5BC7B2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4421 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-08-29 02:11:10 CDT --- Fixed in r112419 -- 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 Aug 29 08:21:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 08:21:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8017] New: indvars very slow on small testcase Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8017 Summary: indvars very slow on small testcase 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: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5427) --> (http://llvm.org/bugs/attachment.cgi?id=5427) testcase .ll $ opt indvars_slow.ll -indvars -disable-output ... <- wait for a long time -- 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 Aug 29 13:42:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 13:42:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 6889] memory unsafety crash bug In-Reply-To: References: Message-ID: <20100829184240.EC4542A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6889 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-08-29 13:42:40 CDT --- Fixed in r112452 -- 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 Aug 29 14:05:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 14:05:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 8018] New: clang c++ crash on invalid with templates taking enum arguments Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8018 Summary: clang c++ crash on invalid with templates taking enum arguments Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: enum X { L }; template struct Sa { enum E {}; }; template struct Sb { template< typename Sa< x >::E e > class C; C<1> y; }; Sb t; Backtrace: #0 0x0000000000f492fe in clang::BuiltinType::getKind (this=0x0) at /home/eli/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Type.h:1120 #1 0x00000000015abb59 in VisitIntegerLiteral (this=0x7fffffff6750, Node=0x30a6808) at /home/eli/llvm/tools/clang/lib/AST/StmtPrinter.cpp:599 #2 0x00000000015afe8b in Visit (this=0x7fffffff6750, S=0x30a6808) at /home/eli/llvmbin/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:373 #3 0x00000000015a9adc in Visit (this=0x7fffffff6750, S=0x30a6808) at /home/eli/llvm/tools/clang/lib/AST/StmtPrinter.cpp:83 #4 0x00000000015af219 in clang::Stmt::printPretty (this=0x30a6808, OS=..., Context=..., Helper=0x0, Policy=..., Indentation=0) at /home/eli/llvm/tools/clang/lib/AST/StmtPrinter.cpp:1344 #5 0x00000000013f86ff in clang::Stmt::printPretty (this=0x30a6808, OS=..., Helper=0x0, Policy=..., Indentation=0) at /home/eli/llvm/tools/clang/lib/Checker/../../include/clang/AST/Stmt.h:218 #6 0x00000000015cabf0 in PrintTemplateArgument (Buffer=..., Arg=..., Policy=...) at /home/eli/llvm/tools/clang/lib/AST/TypePrinter.cpp:715 #7 0x00000000015cad11 in clang::TemplateSpecializationType::PrintTemplateArgumentList (Args=0x30a69a0, NumArgs=1, Policy=...) at /home/eli/llvm/tools/clang/lib/AST/TypePrinter.cpp:746 #8 0x0000000001595a0e in clang::NestedNameSpecifier::print (this=0x30a69f4, OS=..., Policy=...) ---Type to continue, or q to quit--- at /home/eli/llvm/tools/clang/lib/AST/NestedNameSpecifier.cpp:166 #9 0x00000000015c9f3e in PrintElaborated (this=0x7fffffff6c70, T=0x30a6c00, S=...) at /home/eli/llvm/tools/clang/lib/AST/TypePrinter.cpp:557 #10 0x00000000015c75b0 in Print (this=0x7fffffff6c70, T=..., S=...) at /home/eli/llvm/tools/clang/lib/AST/../../include/clang/AST/TypeNodes.def:89 #11 0x00000000015cb2e0 in clang::QualType::getAsStringInternal ( this=0x7fffffff6cf0, S=..., Policy=...) at /home/eli/llvm/tools/clang/lib/AST/TypePrinter.cpp:856 #12 0x00000000011c8233 in clang::QualType::getAsString (this=0x7fffffff6cf0, Policy=...) at /home/eli/llvm/tools/clang/lib/Sema/../../include/clang/AST/Type.h:666 #13 0x0000000001518c3c in ConvertTypeToDiagnosticString (Context=..., Ty=..., PrevArgs=0x7fffffff6f78, NumPrevArgs=1) at /home/eli/llvm/tools/clang/lib/AST/ASTDiagnostic.cpp:131 #14 0x0000000001518f18 in clang::FormatASTNodeDiagnosticArgument ( Kind=clang::Diagnostic::ak_qualtype, Val=51014656, Modifier=0x0, ModLen=0, Argument=0x0, ArgLen=0, PrevArgs=0x7fffffff6f78, NumPrevArgs=1, Output=..., Cookie=0x306f8f0) at /home/eli/llvm/tools/clang/lib/AST/ASTDiagnostic.cpp:187 #15 0x0000000001650d1c in clang::Diagnostic::ConvertArgToString (this=0x3065800, Kind=clang::Diagnostic::ak_qualtype, Val=51014656, Modifier=0x0, ModLen=0, Argument=0x0, ArgLen=0, PrevArgs=0x7fffffff6f78, NumPrevArgs=1, Output=...) at /home/eli/llvm/tools/clang/lib/Basic/../../include/clang/Basic/Diagnostic.h---Type to continue, or q to quit--- :424 #16 0x000000000164ef0f in clang::DiagnosticInfo::FormatDiagnostic ( this=0x7fffffff74f0, DiagStr=0x23ea8e7 "", DiagEnd=0x23ea8e7 "", OutStr=...) at /home/eli/llvm/tools/clang/lib/Basic/Diagnostic.cpp:1028 #17 0x000000000164e6e4 in clang::DiagnosticInfo::FormatDiagnostic ( this=0x7fffffff74f0, OutStr=...) at /home/eli/llvm/tools/clang/lib/Basic/Diagnostic.cpp:888 #18 0x0000000000ee48d4 in clang::TextDiagnosticPrinter::HandleDiagnostic ( this=0x3065fa0, Level=clang::Diagnostic::Error, Info=...) at /home/eli/llvm/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp:830 #19 0x000000000164dd72 in clang::Diagnostic::ProcessDiag (this=0x3065800) at /home/eli/llvm/tools/clang/lib/Basic/Diagnostic.cpp:617 #20 0x000000000164de33 in clang::DiagnosticBuilder::Emit (this=0x7fffffff7780) at /home/eli/llvm/tools/clang/lib/Basic/Diagnostic.cpp:641 #21 0x0000000001187385 in ~SemaDiagnosticBuilder (this=0x7fffffff7780, __in_chrg=) at /home/eli/llvm/tools/clang/lib/Sema/Sema.cpp:430 #22 0x00000000012f1600 in clang::Sema::CheckTemplateArgument (this=0x308a410, Param=0x30a6c50, InstantiatedParamType=..., Arg=@0x7fffffff7f08, Converted=..., CTAK=clang::Sema::CTAK_Specified) at /home/eli/llvm/tools/clang/lib/Sema/SemaTemplate.cpp:2804 #23 0x00000000012eda9f in clang::Sema::CheckTemplateArgument (this=0x308a410, Param=0x30a6c50, Arg=..., Template=0x30a6d60, TemplateLoc=..., ---Type to continue, or q to quit--- RAngleLoc=..., Converted=..., CTAK=clang::Sema::CTAK_Specified) at /home/eli/llvm/tools/clang/lib/Sema/SemaTemplate.cpp:2038 #24 0x00000000012ee634 in clang::Sema::CheckTemplateArgumentList ( this=0x308a410, Template=0x30a6d60, TemplateLoc=..., TemplateArgs=..., PartialTemplateArgs=false, Converted=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaTemplate.cpp:2244 #25 0x00000000012eb81c in clang::Sema::CheckTemplateIdType (this=0x308a410, Name=..., TemplateLoc=..., TemplateArgs=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaTemplate.cpp:1417 #26 0x00000000013453df in RebuildTemplateSpecializationType ( this=0x7fffffff8a40, Template=..., TemplateNameLoc=..., TemplateArgs=...) at /home/eli/llvm/tools/clang/lib/Sema/TreeTransform.h:6514 #27 0x00000000013367a1 in TransformTemplateSpecializationType ( this=0x7fffffff8a40, TLB=..., TL=..., ObjectType=...) at /home/eli/llvm/tools/clang/lib/Sema/TreeTransform.h:3260 #28 0x00000000013305e6 in TransformType (this=0x7fffffff8a40, TLB=..., T=..., ObjectType=...) at /home/eli/llvm/tools/clang/lib/Sema/../../include/clang/AST/TypeNodes.def:92 #29 0x000000000132fd78 in TransformType (this=0x7fffffff8a40, DI=0x30a4740, ObjectType=...) at /home/eli/llvm/tools/clang/lib/Sema/TreeTransform.h:2401 #30 0x000000000132cae8 in clang::Sema::SubstType (this=0x308a410, T=0x30a4740, Args=..., Loc=..., Entity=...) ---Type to continue, or q to quit--- at /home/eli/llvm/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp:968 #31 0x000000000134d25d in VisitFieldDecl (this=0x7fffffff8c30, D=0x30a4770) at /home/eli/llvm/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp:475 #32 0x0000000001355265 in Visit (this=0x7fffffff8c30, D=0x30a4770) at /home/eli/llvmbin/tools/clang/lib/Sema/../../include/clang/AST/DeclNodes.inc:261 #33 0x0000000001351aa0 in clang::Sema::SubstDecl (this=0x308a410, D=0x30a4770, Owner=0x30a4820, TemplateArgs=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp:1690 #34 0x000000000132d914 in clang::Sema::InstantiateClass (this=0x308a410, PointOfInstantiation=..., Instantiation=0x30a47f0, Pattern=0x30a3c60, TemplateArgs=..., TSK=clang::TSK_ImplicitInstantiation, Complain=true) at /home/eli/llvm/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp:1225 #35 0x000000000132e2ce in clang::Sema::InstantiateClassTemplateSpecialization ( this=0x308a410, PointOfInstantiation=..., ClassTemplateSpec=0x30a47f0, TSK=clang::TSK_ImplicitInstantiation, Complain=true) at /home/eli/llvm/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp:1419 #36 0x000000000135ec2b in clang::Sema::RequireCompleteType (this=0x308a410, Loc=..., T=..., PD=..., Note=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaType.cpp:2092 #37 0x000000000135f0a9 in clang::Sema::RequireCompleteType (this=0x308a410, Loc=..., T=..., DiagID=1937) at /home/eli/llvm/tools/clang/lib/Sema/SemaType.cpp:2149 ---Type to continue, or q to quit--- #38 0x00000000011e2b7f in clang::Sema::ActOnUninitializedDecl (this=0x308a410, dcl=..., TypeContainsUndeducedAuto=false) at /home/eli/llvm/tools/clang/lib/Sema/SemaDecl.cpp:4410 #39 0x00000000015ed36d in clang::Parser::ParseDeclarationAfterDeclarator ( this=0x7fffffffca20, D=..., TemplateInfo=...) at /home/eli/llvm/tools/clang/lib/Parse/ParseDecl.cpp:635 #40 0x00000000015ec5fe in clang::Parser::ParseDeclGroup (this=0x7fffffffca20, DS=..., Context=0, AllowFunctionDefinitions=true, DeclEnd=0x0) at /home/eli/llvm/tools/clang/lib/Parse/ParseDecl.cpp:433 #41 0x00000000015e6a72 in clang::Parser::ParseDeclarationOrFunctionDefinition ( this=0x7fffffffca20, DS=..., Attr=0x0, AS=clang::AS_none) at /home/eli/llvm/tools/clang/lib/Parse/Parser.cpp:606 #42 0x00000000015e6adf in clang::Parser::ParseDeclarationOrFunctionDefinition ( this=0x7fffffffca20, Attr=0x0, AS=clang::AS_none) at /home/eli/llvm/tools/clang/lib/Parse/Parser.cpp:613 #43 0x00000000015e63d1 in clang::Parser::ParseExternalDeclaration ( this=0x7fffffffca20, Attr=...) at /home/eli/llvm/tools/clang/lib/Parse/Parser.cpp:497 #44 0x00000000015e5d11 in clang::Parser::ParseTopLevelDecl (this=0x7fffffffca20, Result=...) at /home/eli/llvm/tools/clang/lib/Parse/Parser.cpp:367 #45 0x0000000001184183 in clang::ParseAST (S=..., PrintStats=false) at /home/eli/llvm/tools/clang/lib/Sema/ParseAST.cpp:82 #46 0x0000000000ed53a8 in clang::ASTFrontendAction::ExecuteAction ( ---Type to continue, or q to quit--- this=0x305fab0) at /home/eli/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:264 #47 0x0000000000ed4ff2 in clang::FrontendAction::Execute (this=0x305fab0) at /home/eli/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:184 #48 0x0000000000ebbd2e in clang::CompilerInstance::ExecuteAction ( this=0x305f700, Act=...) at /home/eli/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:526 #49 0x0000000000ed3cf4 in clang::ExecuteCompilerInvocation (Clang=0x305f700) at /home/eli/llvm/tools/clang/lib/Frontend/ExecuteCompilerInvocation.cpp:148 #50 0x0000000000eadc5f in cc1_main (ArgBegin=0x7fffffffd3a8, ArgEnd=0x7fffffffd3b8, Argv0=0x305f548 "/home/eli/llvmbin/Debug+Asserts/bin/clang", MainAddr=0xeb52b0) at /home/eli/llvm/tools/clang/tools/driver/cc1_main.cpp:160 #51 0x0000000000eb658e in main (argc_=4, argv_=0x7fffffffe2b8) at /home/eli/llvm/tools/clang/tools/driver/driver.cpp:268 -- 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 Aug 29 14:12:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 14:12:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 8019] New: clang c++ allows defining struct with global scope inside class scope Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8019 Summary: clang c++ allows defining struct with global scope inside class scope Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: accepts-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct x; struct y { struct ::x { int x; }; }; I don't know the C++ standard reference off the top of my head, but this is clearly ridiculous. -- 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 Aug 29 14:25:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 14:25:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 8020] New: clang c++ incorrectly accepts template keyword on non-template definition Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8020 Summary: clang c++ incorrectly accepts template keyword on non-template definition Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: accepts-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template struct X { X() {} }; template<> struct X { X(); }; template X::X() {} clang accepts; for comparison, error from comeau: "ComeauTest.c", line 3: error: "X::X()" is not an entity that can be instantiated template X::X() {} ^ "ComeauTest.c", line 3: error: expected a ";" (perhaps on the previous statement) template X::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 Sun Aug 29 14:29:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 14:29:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8021] New: clang c++ strange error for declaration which doesn't declare anything in template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8021 Summary: clang c++ strange error for declaration which doesn't declare anything in template Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: quality-of-implementation Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template class B { typedef class T::A; }; clang error: :2:17: error: nested name specifier for a declaration cannot depend on a template parameter It would be nice if the error were something more intelligible, like "declaration does not declare anything". -- 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 Aug 29 14:38:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 14:38:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8022] New: clang c++ assertion "Invalid Scope." on invalid template using directive Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8022 Summary: clang c++ assertion "Invalid Scope." on invalid template using directive Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { template void f (T); }; class B : A { template using A::f ; }; Assertion: clang: SemaDeclCXX.cpp:3571: virtual clang::Decl* clang::Sema::ActOnUsingDeclaration(clang::Scope*, clang::AccessSpecifier, bool, clang::SourceLocation, clang::CXXScopeSpec&, clang::UnqualifiedId&, clang::AttributeList*, bool, clang::SourceLocation): Assertion `S->getFlags() & Scope::DeclScope && "Invalid Scope."' failed. -- 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 Aug 29 15:15:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 15:15:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8023] New: clang c++ assertion "Invalid opcode for overloaded unary operator" using __real__ on expression of class type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8023 Summary: clang c++ assertion "Invalid opcode for overloaded unary operator" using __real__ on expression of class type Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A {}; int i = __real__ A(); Crashes with: clang: SemaOverload.cpp:6754: clang::ExprResult clang::Sema::CreateOverloadedUnaryOp(clang::SourceLocation, unsigned int, const clang::UnresolvedSetImpl&, clang::Expr*): Assertion `Op != OO_None && "Invalid opcode for overloaded unary operator"' failed. -- 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 Aug 29 15:33:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 15:33:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 8025] New: clang c++ diagnostic for bitfield with non-integral type missing source location Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8025 Summary: clang c++ diagnostic for bitfield with non-integral type missing source location Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: quality-of-implementation Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: class A { double : 2; }; clang diagnostic: error: anonymous bit-field has non-integral type 'double' Note that the diagnostic gives no clue about the location of the error. -- 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 Aug 29 15:47:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 29 Aug 2010 15:47:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 8026] New: clang c++ incorrectly accepts template data member Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8026 Summary: clang c++ incorrectly accepts template data member Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: accepts-invalid Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { template int i; }; clang accepts without error, comeau gives: "ComeauTest.c", line 2: error: not a valid member class or function template declaration template int i; ^ -- 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 lkiss at deltaprime.com Mon Aug 30 01:32:12 2010 From: lkiss at deltaprime.com (Laszlo Kiss) Date: Sun, 29 Aug 2010 23:32:12 -0700 Subject: [LLVMbugs] LLVM 2.7/OpenSolaris link failure, link commands missing key libraries In-Reply-To: <4C786DF8.4060906@free.fr> References: <4C786DF8.4060906@free.fr> Message-ID: <33F9705F-5614-4A96-9472-6D4A842FB2E0@deltaprime.com> Thanks for the reply. I got resolution for this a while back. This had to do with defining the environment variable "NM" as "gnm" on Solaris. I'm not sure why the thread got posted again however... ? Laszlo On Aug 27, 2010, at 7:01 PM, Duncan Sands wrote: > Hi Laszlo, > >> The build process fails to link the LLVM tools. Specifically, the >> first tool to build is 'opt' which results in 700+ undefined symbols. >> >> I looked into the Makefiles and found that the "LINK_COMPONENTS" make >> variable does not get the correct set of libraries. In fact, at the >> top level Makefile.rules, the variable is set to "support system", >> however, these do not seem to make it to the 'opt' make context. >> >> The list of libraries for 'opt' is (from the g++ link command): >> >> ... -lLLVMipo -lLLVMScalarOpts -lLLVMInstrumentation - >> lLLVMAsmParser - >> lLLVMBitWriter -lLLVMBitReader ... >> >> It is missing at a minimum LLVMCore, which when added reduces the >> unresolved externals to 400+. > > the list of components to link with is computed automatically. > Presumably > it is being computed wrong. I suggest you take a look at how tools/ > llvm-config > works. You might want to try LLVM from svn first just in case > things work > better there. > > Ciao, > > Duncan. > _______________________________________________ > LLVMbugs mailing list > LLVMbugs at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs > From bugzilla-daemon at llvm.org Mon Aug 30 03:21:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 03:21:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8027] New: Friend template declarations get confused by member declarations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8027 Summary: Friend template declarations get confused by member declarations Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com I have *no* idea if this is legit C++, but GCC accepts it, and in strange cases even requires it when it shouldn't: % cat t2.cc template struct S; template const S operator + (S, S); template struct S { const S operator + (); friend const S operator + <> (S, S); }; S s; % ./bin/clang -fsyntax-only t2.cc t2.cc:7:21: error: friends can only be classes or functions friend const S operator + <> (S, S); ^ t2.cc:7:31: error: expected ';' at end of declaration list friend const S operator + <> (S, S); ^ ; 2 errors generated. It's worth noting that reversing the two 'operator +' lines inside of S's definition fix 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 Mon Aug 30 08:56:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 08:56:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 7102] Clang fails to pack template containing packed union In-Reply-To: References: Message-ID: <20100830135612.593ED2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7102 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-08-30 08:56:11 CDT --- This is fixed in trunk 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 Mon Aug 30 08:59:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 08:59:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 6958] clang++ slower at compiling than g++ 4.0 In-Reply-To: References: Message-ID: <20100830135945.0CB912A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6958 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Douglas Gregor 2010-08-30 08:59:43 CDT --- I'm seeing Clang building this file ~25% faster than GCC 4.2, and we haven't heard any negative results from elsewhere. 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 Aug 30 09:19:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 09:19:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 3897] Can't execute *.bc with lli on Cygwin In-Reply-To: References: Message-ID: <20100830141925.4A37F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3897 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from NAKAMURA Takumi 2010-08-30 09:19:24 CDT --- Fixed (2) with r112474. I will file the issue on Cygwin-1.5-shared as another 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 Aug 30 09:34:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 09:34:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7970] clang allows redeclaration of static data member In-Reply-To: References: Message-ID: <20100830143411.4386D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7970 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-08-30 09:34:10 CDT --- Fixed in Clang r112476, by Faisal Vali! -- 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 Aug 30 09:38:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 09:38:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 6952] Clang allows redefinition of namespace-scope function via friend instantiation In-Reply-To: References: Message-ID: <20100830143839.448FA2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6952 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #6 from Douglas Gregor 2010-08-30 09:38:38 CDT --- Gabor fixed this recently. Test case added in Clang r112477. -- 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 Aug 30 10:10:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 10:10:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 8017] indvars very slow on small testcase In-Reply-To: References: Message-ID: <20100830151020.C7E3F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8017 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |slow-compile Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Dan Gohman 2010-08-30 10:10:20 CDT --- Fixed in r112433. -- 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 Aug 30 10:21:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 10:21:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 7996] test/Scripts/coff-dump.py is incompatible to python 2.4(CentOS5) In-Reply-To: References: Message-ID: <20100830152103.365A42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7996 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from NAKAMURA Takumi 2010-08-30 10:21:02 CDT --- Applied in r112485 and reconfirmed on CentOS-5.4! -- 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 Aug 30 13:35:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 13:35:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7852] LLVM_NATIVE_ARCHNAME in llvm-config.h conflicts with compiler/buildsystem platform arch defines In-Reply-To: References: Message-ID: <20100830183533.7FD542A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7852 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #16 from Eric Christopher 2010-08-30 13:35:32 CDT --- Committed here. Thanks! [yendi:Data/sources/llvm-clean] echristo% svn ci Sending autoconf/configure.ac Sending cmake/config-ix.cmake Sending configure Sending include/llvm/Config/config.h.cmake Sending include/llvm/Config/config.h.in Sending include/llvm/Config/llvm-config.h.cmake Sending include/llvm/Config/llvm-config.h.in Sending include/llvm/Target/TargetSelect.h Sending include/llvm-c/Target.h Transmitting file data ......... Committed revision 112499. -- 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 Aug 30 13:50:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 13:50:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8029] New: r112211 breaks ABI on Darwin (clang emits invalid function call) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8029 Summary: r112211 breaks ABI on Darwin (clang emits invalid function call) Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: release blocker Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5428) --> (http://llvm.org/bugs/attachment.cgi?id=5428) Assembly before and after the change. After r112211, clang start to emit invalid function call and so, programs crashes when calling system library like veclib. For instance, the simple following code crashes badly in vU128Divide() when executed: ----------------------------------- #include #include int main(int argc, char **argv) { vU128 remain; vU128 ten = { .s = {.MSW = 0, .d2 = 0, .d3 = 0, .LSW = 10} }; vU128 bigint = { .s = {.MSW = 0, .d2 = 0, .d3 = 30038, .LSW = 2857641354} }; bigint.v = vU128Divide(bigint.v, ten.v, &remain.v); return bigint.s.MSW; } ----------------------------------- I attached generated llvm assembly before and after this change. Note that simply reverting this change on trunk fixes the issue. -- 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 Aug 30 16:12:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 16:12:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 8030] New: Add code coverage support / create gcov replacement Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8030 Summary: Add code coverage support / create gcov replacement Product: new-bugs Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sean at rogue-research.com CC: llvmbugs at cs.uiuc.edu Neither Clang nor LLVM have the ability to generate coverage code for gcov. Nor is there any replacement for gcov. This means that code coverage cannot be measured when using the llvm/clang toolchain. For me, this is serious enough that I cannot switch exclusively to clang, I must continue to support gcc as well. On Mac OS/iOS, that's a big problem. More and more Objective-C features _require_ clang (ex: "@synthesize by default" and "declare ivars in class extensions"), thus developers will be forced to choose between these nice new features and being able to measure code coverage. That's unfortunate. Note: I've also filed . -- 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 Aug 30 17:03:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 17:03:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 8029] r112211 breaks ABI on Darwin (clang emits invalid function call) In-Reply-To: References: Message-ID: <20100830220335.3EC752A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8029 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Chris Lattner 2010-08-30 17:03:34 CDT --- Fixed in r112537, 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 Mon Aug 30 17:15:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 17:15:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 8031] New: clang include path on Linux is not found Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8031 Summary: clang include path on Linux is not found Product: clang Version: trunk Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nobled at dreamwidth.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5429) --> (http://llvm.org/bugs/attachment.cgi?id=5429) Fix Clang include path on Linux Tested in both 2.7 and 2.8svn trunk. With Clang/LLVM 2.7 packaged for Ubuntu, the compile headers live in /usr/lib/clang/1.1/include, but running `llvm-clang -print-file-name=include` just prints: include Which basically means "file not found". Worse, when compiling, they never seem to get included unless you do it manually yourself: llvm-clang -I/usr/lib/clang/1.1/include [...] Without that, I get errors like: /usr/include/c++/4.4.3/cstddef:43:10: fatal error: 'stddef.h' file not found #include ^ 1 diagnostic generated. -and- /usr/include/limits.h:125:16: fatal error: 'limits.h' file not found # include_next ^ 1 diagnostic generated. The attached patch fixes this by replacing the hardcoded "1.0/include" by using CLANG_VERSION_STRING. (Though it could probably use a regression test; the include directory's location is set independently in a couple Makefiles--the logic could probably be merged into one place somewhere.) -- 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 Aug 30 17:20:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 17:20:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 8007] friend function either not instantiated or not injected In-Reply-To: References: Message-ID: <20100830222014.888BC2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8007 Gabor Greif changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #11 from Gabor Greif 2010-08-30 17:20:13 CDT --- 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 Aug 30 17:53:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 17:53:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7277] Scheduler cannot issue multiple instructions per cycle In-Reply-To: References: Message-ID: <20100830225311.7B3AC2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7277 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Anton Korobeynikov 2010-08-30 17:53:10 CDT --- Fixed in r112546 -- 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 Aug 30 17:54:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 17:54:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 4137] Miscompilation of heavy-phi code In-Reply-To: References: Message-ID: <20100830225426.9CFD62A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4137 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Anton Korobeynikov 2010-08-30 17:54:25 CDT --- I was told that the problem was somehow resolved... -- 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 Aug 30 18:07:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 18:07:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 2483] llvm-gcc doesn't take advantage of __const_coal section on darwin In-Reply-To: References: Message-ID: <20100830230742.C8D002A6C132@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2483 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #10 from Dale Johannesen 2010-08-30 18:07:42 CDT --- I don't believe "correct" is well defined here (or I don't understand the definition), but I think the behavior matches what Nick describes, which should be OK. -- 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 Aug 30 18:24:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 18:24:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 7669] "Cannot deduce non-type template argument with depth > 0" on boost::msm In-Reply-To: References: Message-ID: <20100830232424.6DF692A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7669 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Douglas Gregor 2010-08-30 18:24:24 CDT --- Fixed in Clang r112551. -- 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 Aug 30 18:26:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 18:26:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 3926] ../../../svn/llvm-gcc-4.2/trunk/gcc/crtstuff.c:1: internal compiler error: Aborted In-Reply-To: References: Message-ID: <20100830232607.F28E22A6C132@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3926 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Anton Korobeynikov 2010-08-30 18:26:07 CDT --- Closing due to lack of information. Please reopen if this is still an issue. -- 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 Aug 30 18:44:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 18:44:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 4874] llvm-gcc build on Sloaris SPARC In-Reply-To: References: Message-ID: <20100830234437.4139D2A6C132@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4874 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Anton Korobeynikov 2010-08-30 18:44:37 CDT --- *** This bug has been marked as a duplicate of bug 4529 *** -- 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 Aug 30 18:47:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 18:47:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 5101] ARMv6T2 and later should materialize GlobalAddresses using MOVW/MOVT In-Reply-To: References: Message-ID: <20100830234733.49C592A6C136@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5101 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Anton Korobeynikov 2010-08-30 18:47:33 CDT --- This was implemented -- 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 Aug 30 18:49:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 18:49:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 5249] [Windows JIT]: Many internal calls are broken on Windows and crashes app In-Reply-To: References: Message-ID: <20100830234927.C08862A6C133@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5249 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #5 from Anton Korobeynikov 2010-08-30 18:49:27 CDT --- See PR7998 for explanation and temporary workaround *** This bug has been marked as a duplicate of bug 7998 *** -- 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 Aug 30 19:01:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 19:01:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 8032] New: clang c++ assertion "Template argument kind mismatch" specializing template inside template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8032 Summary: clang c++ assertion "Template argument kind mismatch" specializing template inside template Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template struct A { template struct B {}; template struct B {}; }; Crashes with: clang: SemaTemplateInstantiate.cpp:902: clang::QualType::TemplateInstantiator::TransformTemplateTypeParmType(clang::TypeLocBuilder&, clang::TemplateTypeParmTypeLoc, clang::QualType): Assertion `TemplateArgs(T->getDepth(), T->getIndex()).getKind() == TemplateArgument::Type && "Template argument kind mismatch"' failed. -- 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 Aug 30 19:05:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 19:05:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8033] New: clang c++ assertion "no most-specialized template" with ambiguous template overloads Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8033 Summary: clang c++ assertion "no most-specialized template" with ambiguous template overloads Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: template int f(T1 *, const T2 *); template int f(const T1 *, T2 *); int (*p)(const int *, const int *) = f; Crashes with: clang: SemaOverload.cpp:6386: clang::FunctionDecl* clang::Sema::ResolveAddressOfOverloadedFunction(clang::Expr*, clang::QualType, bool, clang::DeclAccessPair&): Assertion `Result != MatchesCopy.end() && "no most-specialized template"' failed. -- 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 Aug 30 19:21:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 19:21:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 8034] New: clang c++ crash explicitly calling overloaded templated conversion operator Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8034 Summary: clang c++ crash explicitly calling overloaded templated conversion operator Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct C { operator int(); template operator T(); }; int x = C().operator int(); Backtrace: #0 0x0000000000eebd2a in clang::Type::getTypeClass (this=0x0) at /home/eli/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Type.h:814 #1 0x0000000000ef8156 in clang::PointerType::classof (T=0x0) at /home/eli/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Type.h:1204 #2 0x0000000000f0a7ae in llvm::isa_impl::doit (Val=...) at /home/eli/llvm/include/llvm/Support/Casting.h:55 #3 0x0000000000f0a113 in llvm::isa_impl_wrap::doit (Val=...) at /home/eli/llvm/include/llvm/Support/Casting.h:73 #4 0x0000000000f094db in llvm::isa_impl_cl::isa (Val=...) at /home/eli/llvm/include/llvm/Support/Casting.h:85 #5 0x0000000000f2c750 in llvm::isa_impl_cl::isa (Val=...) at /home/eli/llvm/include/llvm/Support/Casting.h:94 #6 0x0000000000f2a10a in llvm::isa_impl_cl::isa (Val=0x0) at /home/eli/llvm/include/llvm/Support/Casting.h:103 #7 0x0000000000f28cc6 in llvm::isa ( Val=@0x7fffffff8528) at /home/eli/llvm/include/llvm/Support/Casting.h:118 #8 0x0000000000f27661 in llvm::dyn_cast (Val=@0x7fffffff8528) at /home/eli/llvm/include/llvm/Support/Casting.h:228 #9 0x0000000000f264f8 in clang::Type::getAs (this=0x0) at /home/eli/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Type.h:36---Type to continue, or q to quit--- 18 #10 0x00000000014fa452 in clang::ASTContext::UnwrapSimilarPointerTypes ( this=0x306f8f0, T1=..., T2=...) at /home/eli/llvm/tools/clang/lib/AST/ASTContext.cpp:2493 #11 0x00000000012bc4f1 in hasSimilarType (Context=..., T1=..., T2=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaOverload.cpp:2128 #12 0x00000000012bc648 in compareStandardConversionSubsets (Context=..., SCS1=..., SCS2=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaOverload.cpp:2162 #13 0x00000000012bc74d in clang::Sema::CompareStandardConversionSequences ( this=0x308a410, SCS1=..., SCS2=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaOverload.cpp:2199 #14 0x00000000012c6e06 in clang::Sema::isBetterOverloadCandidate ( this=0x308a410, Cand1=..., Cand2=..., Loc=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaOverload.cpp:5294 #15 0x00000000012c6eaf in clang::Sema::BestViableFunction (this=0x308a410, CandidateSet=..., Loc=..., Best=@0x7fffffffb2c8) at /home/eli/llvm/tools/clang/lib/Sema/SemaOverload.cpp:5333 #16 0x00000000012cf1f7 in clang::Sema::BuildCallToMemberFunction ( this=0x308a410, S=0x3069f20, MemExprE=0x30a50c0, LParenLoc=..., Args=0x7fffffffb628, NumArgs=0, CommaLocs=0x7fffffffb6a8, RParenLoc=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaOverload.cpp:7257 #17 0x0000000001244be1 in clang::Sema::ActOnCallExpr (this=0x308a410, ---Type to continue, or q to quit--- S=0x3069f20, fn=..., LParenLoc=..., args=..., CommaLocs=0x7fffffffb6a8, RParenLoc=...) at /home/eli/llvm/tools/clang/lib/Sema/SemaExpr.cpp:3634 #18 0x0000000001603733 in clang::Parser::ParsePostfixExpressionSuffix ( this=0x7fffffffca40, LHS=...) at /home/eli/llvm/tools/clang/lib/Parse/ParseExpr.cpp:1028 #19 0x0000000001602bce in clang::Parser::ParseCastExpression ( this=0x7fffffffca40, isUnaryExpression=false, isAddressOfOperand=false, NotCastExpr=@0x7fffffffba9f, TypeOfCast=0x0) at /home/eli/llvm/tools/clang/lib/Parse/ParseExpr.cpp:821 #20 0x0000000001601bee in clang::Parser::ParseCastExpression ( this=0x7fffffffca40, isUnaryExpression=false, isAddressOfOperand=false, TypeOfCast=0x0) at /home/eli/llvm/tools/clang/lib/Parse/ParseExpr.cpp:431 #21 0x000000000160200b in clang::Parser::ParseCastExpression ( this=0x7fffffffca40, isUnaryExpression=false, isAddressOfOperand=false, NotCastExpr=@0x7fffffffbd8f, TypeOfCast=0x0) at /home/eli/llvm/tools/clang/lib/Parse/ParseExpr.cpp:638 #22 0x0000000001601bee in clang::Parser::ParseCastExpression ( this=0x7fffffffca40, isUnaryExpression=false, isAddressOfOperand=false, TypeOfCast=0x0) at /home/eli/llvm/tools/clang/lib/Parse/ParseExpr.cpp:431 #23 0x000000000160102e in clang::Parser::ParseAssignmentExpression ( this=0x7fffffffca40) at /home/eli/llvm/tools/clang/lib/Parse/ParseExpr.cpp:230 #24 0x00000000015f6ce1 in clang::Parser::ParseInitializer (this=0x7fffffffca40) ---Type to continue, or q to quit--- at /home/eli/llvm/tools/clang/lib/Parse/../../include/clang/Parse/Parser.h:1067 #25 0x00000000015ecdff in clang::Parser::ParseDeclarationAfterDeclarator ( this=0x7fffffffca40, D=..., TemplateInfo=...) at /home/eli/llvm/tools/clang/lib/Parse/ParseDecl.cpp:585 #26 0x00000000015ec5fe in clang::Parser::ParseDeclGroup (this=0x7fffffffca40, DS=..., Context=0, AllowFunctionDefinitions=true, DeclEnd=0x0) at /home/eli/llvm/tools/clang/lib/Parse/ParseDecl.cpp:433 #27 0x00000000015e6a72 in clang::Parser::ParseDeclarationOrFunctionDefinition ( this=0x7fffffffca40, DS=..., Attr=0x0, AS=clang::AS_none) at /home/eli/llvm/tools/clang/lib/Parse/Parser.cpp:606 #28 0x00000000015e6adf in clang::Parser::ParseDeclarationOrFunctionDefinition ( this=0x7fffffffca40, Attr=0x0, AS=clang::AS_none) at /home/eli/llvm/tools/clang/lib/Parse/Parser.cpp:613 #29 0x00000000015e63d1 in clang::Parser::ParseExternalDeclaration ( this=0x7fffffffca40, Attr=...) at /home/eli/llvm/tools/clang/lib/Parse/Parser.cpp:497 #30 0x00000000015e5d11 in clang::Parser::ParseTopLevelDecl ( this=0x7fffffffca40, Result=...) at /home/eli/llvm/tools/clang/lib/Parse/Parser.cpp:367 #31 0x0000000001184183 in clang::ParseAST (S=..., PrintStats=false) at /home/eli/llvm/tools/clang/lib/Sema/ParseAST.cpp:82 #32 0x0000000000ed53a8 in clang::ASTFrontendAction::ExecuteAction ( ---Type to continue, or q to quit--- this=0x305fab0) at /home/eli/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:264 #33 0x0000000000ed4ff2 in clang::FrontendAction::Execute (this=0x305fab0) at /home/eli/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:184 #34 0x0000000000ebbd2e in clang::CompilerInstance::ExecuteAction ( this=0x305f700, Act=...) at /home/eli/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:526 #35 0x0000000000ed3cf4 in clang::ExecuteCompilerInvocation (Clang=0x305f700) at /home/eli/llvm/tools/clang/lib/Frontend/ExecuteCompilerInvocation.cpp:148 #36 0x0000000000eadc5f in cc1_main (ArgBegin=0x7fffffffd3c8, ArgEnd=0x7fffffffd3d8, Argv0=0x305f548 "/home/eli/llvmbin/Debug+Asserts/bin/clang", MainAddr=0xeb52b0) at /home/eli/llvm/tools/clang/tools/driver/cc1_main.cpp:160 #37 0x0000000000eb658e in main (argc_=4, argv_=0x7fffffffe2d8) at /home/eli/llvm/tools/clang/tools/driver/driver.cpp:268 -- 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 Aug 30 19:21:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 19:21:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 8035] New: Injected friend redefinition Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8035 Summary: Injected friend redefinition Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ggreif at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com this is a stripped-down example from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38392 which fails to compile on clang. gabor at google8:~/llvm-build$ cat PR.cpp #include void Function(); int main(int argc, char* argv[]) { Function(); } template struct Test { friend void Function() { printf("Function()"); getchar(); } }; template class Test; gabor at google8:~/llvm-build$ /home/gabor/llvm-build/Debug+Asserts/bin/clang PR.cpp PR.cpp:13:17: error: redefinition of 'Function' friend void Function() { printf("Function()"); getchar(); } ^ PR.cpp:16:16: note: in instantiation of template class 'Test' requested here template class Test; ^ PR.cpp:13:17: note: previous definition is here friend void Function() { printf("Function()"); getchar(); } ^ 1 error generated. The error comes from 1175 // Check for a function body. 1176 const FunctionDecl *Definition = 0; 1177 if (Function->hasBody(Definition) && 1178 Definition->getTemplateSpecializationKind() == TSK_Undeclared) { 1179 SemaRef.Diag(Function->getLocation(), diag::err_redefinition) 1180 << Function->getDeclName(); 1181 SemaRef.Diag(Definition->getLocation(), diag::note_previous_definition); 1182 Function->setInvalidDecl(); 1183 } in clang/lib/Sema/SemaTemplateInstantiateDecl.cpp (I verified that the bug was present in r112000, before I started with fiddling in clang.) Modern gccs do compile this, but fail to link (see URL). gcc v4.6 should work. -- 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 Aug 30 22:17:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 30 Aug 2010 22:17:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 4511] ssi produces invalid phi node when adding sigma for invoke In-Reply-To: References: Message-ID: <20100831031729.D073E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4511 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #2 from Nick Lewycky 2010-08-30 22:17:29 CDT --- SSI has been removed from the tree. -- 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 Aug 31 04:06:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 04:06:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 8036] New: ARM NEON intrinsics vget_low_u8, etc produce inefficient code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8036 Summary: ARM NEON intrinsics vget_low_u8, etc produce inefficient code Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Edmund.Grimley-Evans at arm.com CC: llvmbugs at cs.uiuc.edu At revision 112593. Command line: Debug+Asserts/bin/clang -cc1 -triple thumbv7-eabi -target-cpu cortex-a8 -I Debug+Asserts/lib/clang/2.8/include -I ... n.c -O3 -S -o n.s Source file: #include void ff(const void *p, void *q) { uint8x16_t x = vld1q_u8(p); uint8x8_t a = vget_low_u8(x); uint8x8_t b = vget_high_u8(x); uint8x16_t y = vcombine_u8(a, b); vst1q_u8(q, y); } Assembler output: ff: vld1.8 {d0, d1}, [r0] vmov.32 r12, d1[1] vmov.32 r3, d1[0] vmov.32 r0, d0[0] vmov.32 r2, d0[1] vmov s3, r12 vmov s2, r3 vmov s1, r2 vmov s0, r0 vst1.8 {d0, d1}, [r1] bx lr This probably has something to do with the use of casts to i64. See LLVM bug 7988. -- 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 Aug 31 05:03:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 05:03:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 5648] llvmc is not built using cmake In-Reply-To: References: Message-ID: <20100831100334.EE2512A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5648 Tobias Grosser changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Tobias Grosser 2010-08-31 05:03:34 CDT --- This was fixed during the last weeks. -- 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 Aug 31 05:04:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 05:04:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 6820] 3 failing MC/Disassembler test cases with ./configure --enable-targets=x86 In-Reply-To: References: Message-ID: <20100831100402.3E2132A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6820 Tobias Grosser changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Tobias Grosser 2010-08-31 05:04:01 CDT --- Works for me now. -- 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 Aug 31 05:10:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 05:10:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 8037] New: -scalar-evolution -analyzes crashes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8037 Summary: -scalar-evolution -analyzes crashes Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: opt AssignedTo: unassignedbugs at nondot.org ReportedBy: grosser at fim.uni-passau.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5431) --> (http://llvm.org/bugs/attachment.cgi?id=5431) Failing file Hi, calling opt -indvars -scalar-evolution testcase.ll crashes for me. -------------------- Printing analysis 'Canonicalize Induction Variables': Pass::print not implemented for pass: 'Canonicalize Induction Variables'! Printing analysis 'Canonicalize Induction Variables': Pass::print not implemented for pass: 'Canonicalize Induction Variables'! Printing analysis 'Canonicalize Induction Variables': Pass::print not implemented for pass: 'Canonicalize Induction Variables'! Printing analysis 'Canonicalize Induction Variables': Pass::print not implemented for pass: 'Canonicalize Induction Variables'! Printing analysis 'Scalar Evolution Analysis' for function 'scop_func': Classifying expressions for: @scop_func %1 = add nsw i64 %storemerge26.us, 1 ; [#uses=2] --> {1,+,1} [#uses=2] --> {1,+,1}(). Any ideas on this? By the way. Is it possible to use bugpoint to reduce this test case? I do not have any idea how to pass -analyze to bugpoint. Cheers Tobi -- 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 Aug 31 06:01:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 06:01:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 8038] New: Please, take a look at PkgSrc patches before branching. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8038 Summary: Please, take a look at PkgSrc patches before branching. Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: adam at NetBSD.org CC: llvmbugs at cs.uiuc.edu It would be nice to incorporate PkgSrc patches before next release of LLVM/Clang. The patches can be found here: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/lang/clang/patches/ The most interesting ones are patch-ae and patch-af. -- 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 Aug 31 08:28:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 08:28:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 4032] llc produces spurious error messages on Windows In-Reply-To: References: Message-ID: <20100831132826.8D5222A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4032 Mikhail Glushenkov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #4 from Mikhail Glushenkov 2010-08-31 08:28:26 CDT --- Wasn't able to reproduce with current trunk and MinGW gcc 3.4.6 (both Release and Debug mode). -- 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 Aug 31 11:35:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 11:35:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8038] Please, take a look at PkgSrc patches before branching. In-Reply-To: References: Message-ID: <20100831163502.A0B2A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8038 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #2 from Chris Lattner 2010-08-31 11:35:02 CDT --- Please send patches to the llvm-commits mailing list (when they're ready). 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 Tue Aug 31 12:02:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 12:02:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 8040] New: ARM codegen generates incorrect code for byval function arguments Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8040 Summary: ARM codegen generates incorrect code for byval function arguments 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: evzen.muller at arm.com CC: llvmbugs at cs.uiuc.edu When byval attribute is specified for a function argument to pass aggregate type by value, ARM codegen produces code which is not compliant with AAPCS. (r0-r3 registers are not used and argument is always passed on stack) It seems that clang is currently trying to workaround this by passing arguments as arrays instead of using byval (TargetInfo.cpp -ARMABIInfo::classifyArgumentType(QualType Ty), but this adds unnecessary target dependencies to IR. Would it be possible to add/fix byval support in ARM backend(s)? -- 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 Aug 31 12:03:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 12:03:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7804] crash calling getSourceRange In-Reply-To: References: Message-ID: <20100831170334.10C132A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7804 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-08-31 12:03:33 CDT --- Fixed in Clang r112604. -- 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 Aug 31 13:49:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 13:49:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 7982] Assertion fires when running TwoAddressInstructionPass more than once In-Reply-To: References: Message-ID: <20100831184918.29E9A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7982 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #4 from Jakob Stoklund Olesen 2010-08-31 13:49:17 CDT --- I agree. A simple, non-intrusive patch to make TwoAddressInstructionPass idempotent would be fine, 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 Tue Aug 31 14:24:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 14:24:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 8041] New: licm miscompile - wrongly thinks value is loop invariant Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8041 Summary: licm miscompile - wrongly thinks value is loop invariant 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: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5433) --> (http://llvm.org/bugs/attachment.cgi?id=5433) testcase .ll When the attached testcase is compiled using "opt -licm", the original program (from SPEC) goes into an infinite loop. This is because licm thinks the exit condition for one of the loops is loop invariant, but it isn't. Here is a snippet with comments (from the unoptimized code, see attachment): bb6: ; preds = %eshup8.exit, %bb4 %tmp60 = load i16** %p, align 8 ; [#uses=1] ; %p is loop invariant, but what it points to is not loop invariant %tmp61 = load i16* %tmp60, align 2 ; [#uses=1] ; thus %tmp61 is not loop invariant %tmp62 = zext i16 %tmp61 to i32 ; [#uses=1] %tmp63 = and i32 %tmp62, 65280 ; [#uses=1] %tmp64 = icmp eq i32 %tmp63, 0 ; [#uses=1] ; licm wrongly thinks that %tmp64 is loop invariant, and hoists it, causing an infinite loop br i1 %tmp64, label %bb5, label %bb9 The function has a parameter i16* %x, which is a pointer to an array of i16, and %p is an offset from %x, i.e. it also points into the array. The loop goes bb5 -> bb1.i6 -> bb.i5 -> bb1.i6 (whizzes around between bb.i5 and bb1.i6 for a while) -> eshup8.exit -> bb6 -> bb5 (if the exit condition is not satisfied). In the loop the variable %x_addr.i3 is a handle to an array element; it visits all array elements in the subloop, which is a reverse traversal over the array elements. The subloop modifies the array element which *%x_addr.i3 is currently pointing to. Thus it is clear that while %p itself is loop invariant, it is pointing to memory (the array) that gets modified in the loop. Thus licm is wrong to think that the value loaded from %p is loop invariant. -- 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 Aug 31 14:51:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 14:51:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 4190] Internal compiler error In-Reply-To: References: Message-ID: <20100831195130.1BC9B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4190 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #14 from Bill Wendling 2010-08-31 14:51:29 CDT --- Marking this as Fixed. If this problem crops up again, please file a new bug. -- 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 Aug 31 15:08:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 15:08:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 8042] New: loop unswitch fails to preserve lcssa Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8042 Summary: loop unswitch fails to preserve lcssa Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: gohman at apple.com CC: llvmbugs at cs.uiuc.edu opt -lcssa -loop-unswitch aborts on the attached testcase: Assertion failed: (L->isLCSSAForm(*DT) && "LCSSA form not preserved!"), function verifyAnalysis, file /Users/gohman/boot/llvm/lib/Transforms/Utils/LCSSA.cpp, line 82. -- 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 Aug 31 15:12:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 15:12:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 7950] A LLVM example crashed with "pointer being freed was not allocated" In-Reply-To: References: Message-ID: <20100831201230.E65B52A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7950 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wendling at apple.com Resolution| |WORKSFORME --- Comment #3 from Bill Wendling 2010-08-31 15:12:30 CDT --- I'm not seeing this bug as of 8/31/10. Please reopen if you can reproduce 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 Tue Aug 31 16:54:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 16:54:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7980] RegAllocFast doesn't set correctly kill flag on implicit use registers In-Reply-To: References: Message-ID: <20100831215442.6499F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7980 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Jakob Stoklund Olesen 2010-08-31 16:54:42 CDT --- Fixed in r112650, but probably not in the way you were hoping. %EFLAGS is changed to be an unallocatable register, so RegAllocFast leaves it alone. Kill flags should be conservatively correct after RegAllocFast. THat means kill flags may be missing, but when a kill flag is present, it should be correct. That is enough to make the register scavenger and machine code verifier happy. -- 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 Aug 31 19:17:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 19:17:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 8044] New: clang miscompiles inline asm (uses ecx for two different things) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8044 Summary: clang miscompiles inline asm (uses ecx for two different things) Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rsbultje at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Hi, in FFmpeg r24986, clang miscompiles decode_cabac_mb_mvd() in libavcodec/h264_cabac.c. The function looks like this: static int decode_cabac_mb_mvd( H264Context *h, int ctxbase, int amvd, int *mvda) { int mvd; if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+((amvd-3)>>(INT_BIT-1))+((amvd-33)>>(INT_BIT-1))+2])){ // if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+(amvd>2)+(amvd>32)])){ *mvda= 0; return 0; } [.. more, but cut ..] get_cabac is either C or inline ASM. For clang, we're using inline ASM, where the relevant part looks like this (full code available from libavcodec/cabac.h, if you want to look at it). I left out BRANCHLESS_GET_CABAC_UPDATE for readability, because it shouldn't be necessary: [.. cut ..] #define BRANCHLESS_GET_CABAC(ret, cabac, statep, low, lowword, range, tmp, tmpbyte)\ "movzbl "statep" , "ret" \n\t"\ "mov "range" , "tmp" \n\t"\ "and $0xC0 , "range" \n\t"\ "movzbl "MANGLE(ff_h264_lps_range)"("ret", "range", 2), "range" \n\t"\ "sub "range" , "tmp" \n\t"\ BRANCHLESS_GET_CABAC_UPDATE(ret, cabac, statep, low, lowword, range, tmp, tmpbyte)\ "movzbl " MANGLE(ff_h264_norm_shift) "("range"), %%ecx \n\t"\ "shl %%cl , "range" \n\t"\ "movzbl "MANGLE(ff_h264_mlps_state)"+128("ret"), "tmp" \n\t"\ "mov "tmpbyte" , "statep" \n\t"\ "shl %%cl , "low" \n\t"\ "test "lowword" , "lowword" \n\t"\ " jnz 1f \n\t"\ "mov "BYTE"("cabac"), %%"REG_c" \n\t"\ "movzwl (%%"REG_c") , "tmp" \n\t"\ "bswap "tmp" \n\t"\ "shr $15 , "tmp" \n\t"\ "sub $0xFFFF , "tmp" \n\t"\ "add $2 , %%"REG_c" \n\t"\ "mov %%"REG_c" , "BYTE "("cabac") \n\t"\ "lea -1("low") , %%ecx \n\t"\ "xor "low" , %%ecx \n\t"\ "shr $15 , %%ecx \n\t"\ "movzbl " MANGLE(ff_h264_norm_shift) "(%%ecx), %%ecx \n\t"\ "neg %%ecx \n\t"\ "add $7 , %%ecx \n\t"\ "shl %%cl , "tmp" \n\t"\ "add "tmp" , "low" \n\t"\ "1: \n\t" __asm__ volatile( "movl "RANGE "(%2), %%esi \n\t" "movl "LOW "(%2), %%ebx \n\t" BRANCHLESS_GET_CABAC("%0", "%2", "(%1)", "%%ebx", "%%bx", "%%esi", "%%edx", "%%dl") "movl %%esi, "RANGE "(%2) \n\t" "movl %%ebx, "LOW "(%2) \n\t" :"=&a"(bit) :"r"(state), "r"(c) : "%"REG_c, "%ebx", "%edx", "%esi", "memory" ); bit&=1; [.. cut ..] REG_c (in the clobber list, bottom) is defined as "ecx" in our header files (or rcx on x86-64, but this is x86-32). RANGE is "4" and LOW is "0" (these are offsets in struct c). Clang generates this confusing code for decode_cabac_mb_mvd(): Dump of assembler code for function decode_cabac_mb_mvd: 0x0819bfb0 : push %ebp 0x0819bfb1 : push %ebx 0x0819bfb2 : push %edi 0x0819bfb3 : push %esi 0x0819bfb4 : sub $0x1c,%esp 0x0819bfb7 : mov %edx,0x10(%esp) 0x0819bfbb : mov %ecx,0x18(%esp) 0x0819bfbf : mov 0x30(%esp),%eax 0x0819bfc3 : lea -0x21(%eax),%esi 0x0819bfc6 : sar $0x1f,%esi 0x0819bfc9 : add %edx,%esi 0x0819bfcb : add $0xfffffffd,%eax 0x0819bfce : sar $0x1f,%eax 0x0819bfd1 : add %esi,%eax 0x0819bfd3 : lea 0x23742(%ecx,%eax,1),%eax 0x0819bfda : mov %eax,0x14(%esp) 0x0819bfde : lea 0x23710(%ecx),%ecx 0x0819bfe4 : mov %ecx,0xc(%esp) 0x0819bfe8 : mov %eax,%edi 0x0819bfea : mov 0x4(%ecx),%esi 0x0819bfed : mov (%ecx),%ebx 0x0819bfef : movzbl (%edi),%eax ---Type to continue, or q to quit--- 0x0819bff2 : mov %esi,%edx 0x0819bff4 : and $0xc0,%esi 0x0819bffa : movzbl 0x8b46190(%eax,%esi,2),%esi 0x0819c002 : sub %esi,%edx 0x0819c004 : mov %edx,%ecx 0x0819c006 : shl $0x11,%edx 0x0819c009 : cmp %ebx,%edx 0x0819c00b : cmova %ecx,%esi 0x0819c00e : sbb %ecx,%ecx 0x0819c010 : and %ecx,%edx 0x0819c012 : sub %edx,%ebx 0x0819c014 : xor %ecx,%eax 0x0819c016 : movzbl 0x85ce0c0(%esi),%ecx 0x0819c01d : shl %cl,%esi 0x0819c01f : movzbl 0x8b46010(%eax),%edx 0x0819c026 : mov %dl,(%edi) 0x0819c028 : shl %cl,%ebx 0x0819c02a : test %bx,%bx 0x0819c02d : jne 0x819c05e 0x0819c02f : mov 0x10(%ecx),%ecx 0x0819c032 : movzwl (%ecx),%edx 0x0819c035 : bswap %edx ---Type to continue, or q to quit--- 0x0819c037 : shr $0xf,%edx 0x0819c03a : sub $0xffff,%edx 0x0819c040 : add $0x2,%ecx 0x0819c043 : mov %ecx,0x10(%ecx) 0x0819c046 : lea -0x1(%ebx),%ecx 0x0819c049 : xor %ebx,%ecx 0x0819c04b : shr $0xf,%ecx 0x0819c04e : movzbl 0x85ce0c0(%ecx),%ecx 0x0819c055 : neg %ecx 0x0819c057 : add $0x7,%ecx 0x0819c05a : shl %cl,%edx 0x0819c05c : add %edx,%ebx 0x0819c05e : mov %esi,0x4(%ecx) 0x0819c061 : mov %ebx,(%ecx) 0x0819c063 : test $0x1,%al 0x0819c065 : jne 0x819c07b 0x0819c067 : mov 0x34(%esp),%eax 0x0819c06b : movl $0x0,(%eax) 0x0819c071 : xor %eax,%eax 0x0819c073 : add $0x1c,%esp 0x0819c076 : pop %esi 0x0819c077 : pop %edi ---Type to continue, or q to quit--- 0x0819c078 : pop %ebx 0x0819c079 : pop %ebp 0x0819c07a : ret 0x0819c07b : addl $0x3,0x10(%esp) 0x0819c080 : movl $0x1,0x14(%esp) 0x0819c088 : mov 0xc(%esp),%ebp 0x0819c08c : jmp 0x819c148 0x0819c091 : jmp 0x819c0a0 0x0819c093 : nop 0x0819c094 : nop 0x0819c095 : nop [.. rest cut for readability ..] The last pieces at +174/+177 are the writes to the c struct at offset 4 and zero that I pointed out above at the end of get_cabac, and the lines after that are the "*mvda = 0; return 0;" lines from decode_cabac_mb_mvd() right after the inlined get_cabac call returns. However, if you look how it writes the values into the "c" struct at +174/+177 (and earlier on reads from the "c" struct), it uses ecx for this, even though ecx is part of the clobberlist and is used for calculations in the middle of the inline asm. Needless to say, the writes crash (the reads are likely invalid, but it does not yet crash): (gdb) #0 0x0819c05e in decode_cabac_mb_mvd (h=Unhandled dwarf expression opcode 0xfb ) #1 0x08199887 in ff_h264_decode_mb_cabac (h=0xf7ddc020) #2 0x08194148 in decode_slice (arg=0x0, avctx=) #3 0x0819405c in execute_decode_slices (h=0xf7ddc020, context_count=Unhandled dwarf expression opcode 0xee ) #4 0x0818ce9d in decode_nal_units (h=Asked for position 0 of stack, stack only has 0 elements on it. ) #5 0x08190c5f in decode_frame (avpkt=0x0, avctx=0x8b516a0, data_size=0xffffc538, data=0xffffc468) #6 0x082cc1ca in avcodec_decode_video2 ( got_picture_ptr=, avctx=, avpkt=, picture=, avpkt=, got_picture_ptr=, picture=, avctx=) #7 0x080e2064 in av_find_stream_info (ic=0x8b50470) #8 0x080537c4 in opt_input_file ( filename=0xffffdd3b "/home/rbultje/fate/fate-suite/h264-conformance/Sharp_MP_PAFF_2.jvt") at ffmpeg.c:3205 #9 0x08055ec7 in parse_options ( parse_arg_function=0x804df50 , options=0x84cb510, argv=0xffffdbd4, argc=6) #10 0x0804ac5a in main (argv=0xffffdbd4, argc=6) at ffmpeg.c:4320 Looks like a compiler bug to me. Works fine with gcc on x86-32/x86-64, also works fine with clang on x86-64. Compile command for h264_cabac.c: clang -I. -I"/home/rbultje/fate/src" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DHAVE_AV_CONFIG_H -m32 -march=core2 -std=c99 -pthread -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -O3 -fomit-frame-pointer -fno-math-errno -fno-signed-zeros -Qunused-arguments -MMD -c -o libavcodec/h264_cabac.o libavcodec/h264_cabac.c clang -v: clang version 2.8 (trunk 112587) Target: i386-unknown-linux-gnu Thread model: posix uname -a: Linux vpn 2.6.32-5-amd64 #1 SMP Thu Aug 12 15:04:38 UTC 2010 x86_64 GNU/Linux (it also fails on freeBSD, I haven't verified but I assume it's the same bug) Let me know if you need more 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 Tue Aug 31 20:49:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 20:49:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 8045] New: gdb - Cannot evaluate function -- may be inlined Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8045 Summary: gdb - Cannot evaluate function -- may be inlined Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: grosser at fim.uni-passau.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Hi, I created a self hosted llvm/clang build with "-O0 -g" and try to debug the newly built opt binary. $gdb bin/opt GNU gdb (GDB) 7.2.50.20100829-cvs Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/grosser/Projekte/llvm/build_selfhost/bin/opt...done. (gdb) b PostDominators.cpp:35 Breakpoint 1 at 0xbbbfc6: file /home/grosser/Projekte/llvm/git/lib/Analysis/PostDominators.cpp, line 35. (gdb) r -postdomtree test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll Starting program: bin/opt -postdomtree test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll [Thread debugging using libthread_db enabled] Breakpoint 1, runOnFunction (this=0x11a7820, F=...) at /home/grosser/Projekte/llvm/git/lib/Analysis/PostDominators.cpp:35 35 DT->recalculate(F); (gdb) call F.dump() Cannot evaluate function -- may be inlined (gdb) Using gcc to build llvm I can call F.dump() without problems in gdb. -- 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 Aug 31 22:15:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 31 Aug 2010 22:15:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 5657] Cygwin build fails due to missing library In-Reply-To: References: Message-ID: <20100901031526.1D0062A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5657 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from NAKAMURA Takumi 2010-08-31 22:15:25 CDT --- * Now by default, libprofile is not built on Cygwin. * You may build libprofile with $ make -C runtime OPTIONAL_DIRS+=libprofile I have not confirmed libprofile functionally. But it was a build issue and I may close 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.