From bugzilla-daemon at llvm.org Thu Dec 1 02:18:38 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 01 Dec 2011 08:18:38 +0000
Subject: [LLVMbugs] [Bug 11459] New: is_empty<> chokes on final
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11459
Bug #: 11459
Summary: is_empty<> chokes on final
Product: libc++
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: ganesh at barbati.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7660
--> http://llvm.org/bugs/attachment.cgi?id=7660
Patch to make is_empty use the __is_empty intrinsic, if available
The following code will not compile:
#include
struct A final {};
struct B { virtual ~B() final; };
int main()
{
std::is_empty::value;
std::is_empty::value;
}
The error messages being:
type_traits:787:14: error: base 'A' is marked 'final' [3]
type_traits:786:8: error: declaration of '~__is_empty1' overrides a 'final'
function [3]
The current implementation if is_empty<> uses a technique that assumes every
class type can be derived from, but in presence of final that is no longer
true. I am attaching a patch that makes is_empty<> use the __is_empty intrinsic
function if it is available, as the intrinsic doesn't have this problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Dec 1 05:33:15 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 01 Dec 2011 11:33:15 +0000
Subject: [LLVMbugs] [Bug 11461] New: std::tuple chokes on final
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11461
Bug #: 11461
Summary: std::tuple chokes on final
Product: libc++
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: ganesh at barbati.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following code does not compile:
#include
struct A final {};
struct B { virtual ~B() final; };
int main()
{
std::tuple x; // #1
std::tuple y; // #2
}
This currently happens because of a problem in std::is_empty<> that has been
reported as bug #11459. However even if we fix std::is_empty<>, only line #2
will compile. Line #1 will still trigger an error, because std::tuple will
attempt to derive from the empty class type A, which is forbidden.
In order to fix the problem we should disable the empty base optimization for
final classes. To achieve that, we need either an __is_final intrinsic or a
(possibly library-only) trait to check if derivation from a type T is actually
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 Thu Dec 1 05:41:51 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 01 Dec 2011 11:41:51 +0000
Subject: [LLVMbugs] [Bug 11462] New: __is_final intrinsic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11462
Bug #: 11462
Summary: __is_final intrinsic
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ganesh at barbati.net
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7662
--> http://llvm.org/bugs/attachment.cgi?id=7662
Patch that implements the __is_final intrinsic
I am attaching a patch that implements the __is_final() intrinsic function that
checks whether a class is declared final. In other words, the code:
struct A {};
struct B final {};
int main()
{
std::cout << __is_final(A) << " " << __is_final(B) << "\n";
}
should output "0 1".
This intrinsic is motivated by the library bug #11461.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 04:20:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 01 Dec 2011 10:20:11 +0000
Subject: [LLVMbugs] [Bug 11460] New: [LLVM,
SelectionDAG] store crash.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11460
Bug #: 11460
Summary: [LLVM, SelectionDAG] store crash.
Product: tools
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stpworld at narod.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7661
--> http://llvm.org/bugs/attachment.cgi?id=7661
Testcase
Attempt to store i1 vectors crashes llc with assertion. Testcase is attached.
Assertion:
./llc < store-v4i1.ll
.file ""
llc:
/home/stepan/projects/llvm.project/llvm/include/llvm/CodeGen/ValueTypes.h:563:
llvm::MVT llvm::EVT::getSimpleVT() const: Assertion `isSimple() && "Expected a
SimpleValueType!"' failed.
0 llc 0x090b62ca
1 llc 0x090b6057
2 libpthread.so.0 0x007ae9e8
3 libc.so.6 0x001e734e abort + 382
4 libc.so.6 0x001dc888 __assert_fail + 248
5 llc 0x086bc560 llvm::EVT::getSimpleVT() const + 82
6 llc 0x08aa8109
llvm::TargetLowering::getTruncStoreAction(llvm::EVT, llvm::EVT) const + 121
7 llc 0x08ba5c9d
8 llc 0x08ba572a
9 llc 0x08ba8066 llvm::SelectionDAG::LegalizeVectors() + 36
10 llc 0x08b4ba25 llvm::SelectionDAGISel::CodeGenAndEmitDAG() +
1767
11 llc 0x08b4afeb
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 219
12 llc 0x08b4d570
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2368
13 llc 0x08b4a52d
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 689
14 llc 0x08cae8e1
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 87
15 llc 0x09048322
llvm::FPPassManager::runOnFunction(llvm::Function&) + 344
16 llc 0x09048508 llvm::FPPassManager::runOnModule(llvm::Module&) +
114
17 llc 0x09048804 llvm::MPPassManager::runOnModule(llvm::Module&) +
400
18 llc 0x09048cbf llvm::PassManagerImpl::run(llvm::Module&) + 127
19 llc 0x09049075 llvm::PassManager::run(llvm::Module&) + 39
20 llc 0x086484c2 main + 2692
21 libc.so.6 0x001cfe37 __libc_start_main + 231
22 llc 0x08647331
Stack dump:
0. Program arguments: ./llc
1. Running pass 'Function Pass Manager' on module ''.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@test'
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 08:42:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 01 Dec 2011 14:42:14 +0000
Subject: [LLVMbugs] [Bug 11460] [LLVM, SelectionDAG] store crash.
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11460
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |baldrick at free.fr
Resolution| |DUPLICATE
--- Comment #1 from Duncan Sands 2011-12-01 08:42:14 CST ---
*** This bug has been marked as a duplicate of bug 1784 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 16:30:48 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 01 Dec 2011 22:30:48 +0000
Subject: [LLVMbugs] [Bug 11463] New: test-suite requires yacc to run
correctly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11463
Bug #: 11463
Summary: test-suite requires yacc to run correctly
Product: Documentation
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: Kevin.Harris at unisys.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I discovered, by installing LLVM 3.0rc4, Clang, and test-suite on a system that
didn't have "yacc" installed, that test-suite gmake will fail catastrophically.
Installing the gnu "bison" kit corrected the problem. This additional
software requirement should be documented on the "Requirements" section of the
Testing Infrastructure Guide.
http://llvm.org/docs/TestingGuide.html#requirements
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 16:34:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 01 Dec 2011 22:34:47 +0000
Subject: [LLVMbugs] [Bug 11464] New: LinkModules fails to remap types
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11464
Bug #: 11464
Summary: LinkModules fails to remap types
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: boulos at cs.stanford.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I've got two simple c files with va_lists:
a.c:
#include
void fn1(va_list args) {}
b.c:
#include
void fn2(va_list args) {}
If I compile these to bitcode with clang and then link with llvm-link, I get an
output module that has two different va_list types:
%struct.__va_list_tag = type { i32, i32, i8*, i8* }
%struct.__va_list_tag.0 = type { i32, i32, i8*, i8* }
define void @fn1(%struct.__va_list_tag* %args) nounwind uwtable ssp {
%1 = alloca %struct.__va_list_tag*, align 8
store %struct.__va_list_tag* %args, %struct.__va_list_tag** %1, align 8
ret void
}
define void @fn2(%struct.__va_list_tag.0* %args) nounwind uwtable ssp {
%1 = alloca %struct.__va_list_tag.0*, align 8
store %struct.__va_list_tag.0* %args, %struct.__va_list_tag.0** %1, align 8
ret void
}
Having read the type system rewrite blog post, it seems like LinkModules should
be merging these types. After tracking this down in lib/Linker/LinkModules.cpp,
it seems that the TypeMap only learns types that it sees in "stuff" that will
overlap between the Dst and Src modules. Since fn2 doesn't overlap with fn1,
the TypeMap never tries to merge the two different va_list names, producing a
duplicate.
I'm not sure if this falls under the category of expecting to be able to find a
"magic IR type" or 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 Thu Dec 1 19:58:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 01:58:00 +0000
Subject: [LLVMbugs] [Bug 11466] New: Build failed for LLVM 3.0
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11466
Bug #: 11466
Summary: Build failed for LLVM 3.0
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: spamdaemon at comcast.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I just downloaded llvm-3.0. After unzipping it (with and without clang), I
typed "configure --prefix=/local/llvm-3.0" and then "make -j8"
Build fails here:
In file included from
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest.h:57:0,
from InstructionsTest.cpp:16:
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:
In instantiation of ?const bool testing::internal::ImplicitlyConvertible::value?:
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest-printers.h:201:3:
instantiated from ?std::basic_ostream<_CharT, _Traits>&
testing::internal2::operator<<(std::basic_ostream<_CharT, _Traits>&, const T&)
[with Char = char, CharTraits = std::char_traits, T = llvm::Use]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest-printers.h:245:3:
instantiated from ?void testing_internal::DefaultPrintNonContainerTo(const
T&, std::ostream*) [with T = llvm::Use, std::ostream =
std::basic_ostream]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest-printers.h:338:3:
instantiated from ?void
testing::internal::DefaultPrintTo(testing::internal::IsNotContainer,
testing::internal::false_type, const T&, std::ostream*) [with T = llvm::Use,
testing::internal::IsNotContainer = char, testing::internal::false_type =
testing::internal::bool_constant, std::ostream =
std::basic_ostream]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest-printers.h:376:3:
instantiated from ?void testing::internal::PrintTo(const T&, std::ostream*)
[with T = llvm::Use, std::ostream = std::basic_ostream]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest-printers.h:600:5:
instantiated from ?static void
testing::internal::UniversalPrinter::Print(const T&, std::ostream*) [with T
= llvm::Use, std::ostream = std::basic_ostream]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest-printers.h:697:3:
instantiated from ?void testing::internal::UniversalPrint(const T&,
std::ostream*) [with T = llvm::Use, std::ostream = std::basic_ostream]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest-printers.h:678:3:
instantiated from ?void testing::internal::UniversalTersePrint(const T&,
std::ostream*) [with T = llvm::Use, std::ostream = std::basic_ostream]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest-printers.h:790:3:
instantiated from ?std::string testing::PrintToString(const T&) [with T =
llvm::Use, std::string = std::basic_string]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest.h:1301:40:
instantiated from ?testing::internal::String
testing::internal::FormatForComparisonFailureMessage(const T1&, const T2&)
[with T1 = llvm::Use, T2 = llvm::Constant*]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest.h:1330:25:
instantiated from ?testing::AssertionResult
testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&)
[with T1 = llvm::Constant*, T2 = llvm::Use]?
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/gtest.h:1355:30:
instantiated from ?static testing::AssertionResult
testing::internal::EqHelper::Compare(const char*, const
char*, const T1&, const T2&) [with T1 = llvm::Constant*, T2 = llvm::Use, bool
lhs_is_null_literal = false]?
InstructionsTest.cpp:35:3: instantiated from here
/pub/llvm-3.0.src/include/llvm/Use.h:69:3: error: ?llvm::Use::Use(const
llvm::Use&)? is private
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:910:60:
error: within this context
/pub/llvm-3.0.src/include/llvm/Use.h:72:3: error: ?llvm::Use::~Use()? is
private
/pub/llvm-3.0.src/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:910:60:
error: within this context
/bin/rm: cannot remove
`/pub/llvm-3.0.src/unittests/VMCore/Release/InstructionsTest.d.tmp': No such
file or directory
make[2]: *** [/pub/llvm-3.0.src/unittests/VMCore/Release/InstructionsTest.o]
Error 1
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Dec 1 20:39:22 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 02:39:22 +0000
Subject: [LLVMbugs] [Bug 9560] bit fields not packed
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9560
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Eli Friedman 2011-12-01 20:39:22 CST ---
r145673.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 21:25:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 03:25:49 +0000
Subject: [LLVMbugs] [Bug 11466] Build/unit test failed for LLVM 3.0
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11466
spamdaemon at comcast.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from spamdaemon at comcast.net 2011-12-01 21:25:49 CST ---
Tried with gcc (GCC) 4.7.0 20111126 (experimental)
and that seems to work.
I'll set the status to resolved, 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 Fri Dec 2 00:29:54 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 06:29:54 +0000
Subject: [LLVMbugs] [Bug 11467] New: The definition of the "LLVM" acronyn
should be spelled out on the llvm.org front page or FAQ.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11467
Bug #: 11467
Summary: The definition of the "LLVM" acronyn should be spelled
out on the llvm.org front page or FAQ.
Product: Documentation
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: aaron at justaaron.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
An acronym like LLVM is expected to have a definition behind it. If LLVM stands
for anything, it should be spelled out early, like at the top of llvm.org, or
in the FAQ. If it no longer stands for anything, then that should be stated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 10:54:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 16:54:08 +0000
Subject: [LLVMbugs] [Bug 11467] The definition of the "LLVM" acronyn should
be spelled out on the llvm.org front page or FAQ.
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11467
aaron at justaaron.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from aaron at justaaron.com 2011-12-02 10:54:08 CST ---
It was suggested to me that this is a waste of team's time, and since I would
have to waste one or more team member's time to verify what the definition is,
I am (attempting to) close 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 Dec 2 13:27:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 19:27:46 +0000
Subject: [LLVMbugs] [Bug 11468] New: Clang incorrectly handles exceptions in
presence of stack aligned variables
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11468
Bug #: 11468
Summary: Clang incorrectly handles exceptions in presence of
stack aligned variables
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: samsonov at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
On fresh clang from trunk.
Reproducible both on Mac OS and Linux.
Clang seem to incorrectly restore value of callee-safe registers
during stack unwinding (when exception is thrown). This happens in
presence of aligned stack variables. Clang inserts asm instruction that
aligns %rsp but this isn't reported to unwinder. See this reproducer:
$ cat exception_test.cc
#include
void TouchR15AndThrow(const char& arg) {
volatile int n __attribute__((aligned(32))) = 0;
asm volatile ("nop" : : : "r15"); // force to save r15 on stack
throw arg;
}
int main() {
register int *a asm ("r15");
fprintf(stderr, "before throw: %p\n", a);
try {
TouchR15AndThrow('c');
} catch (const char&) { }
fprintf(stderr, "after catch: %p\n", a);
return 0;
}
$ ../build/Release+Asserts/bin/clang++ -O2 exception_test.cc
$ ./a.out
before throw: 0x7fff5fbff968
after catch: 0x7fff702de650
More data, including parts of objdump and DWARF can be found here:
: http://code.google.com/p/address-sanitizer/issues/detail?id=13#c1
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 13:37:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 19:37:07 +0000
Subject: [LLVMbugs] [Bug 11428] errc,
io_errc and future_errc constants should really be scoped enums
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11428
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Howard Hinnant 2011-12-02 13:37:07 CST ---
Committed revision 145698.
Nicely done Ganesh!
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 13:41:30 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 19:41:30 +0000
Subject: [LLVMbugs] [Bug 11468] Clang incorrectly handles exceptions in
presence of stack aligned variables
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11468
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |INVALID
--- Comment #2 from Eli Friedman 2011-12-02 13:41:30 CST ---
Applying a register name to a variable that isn't used in an inline asm doesn't
actually do 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 Fri Dec 2 14:42:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 20:42:02 +0000
Subject: [LLVMbugs] [Bug 11459] is_empty<> chokes on final
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11459
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Howard Hinnant 2011-12-02 14:42:02 CST ---
Committed revision 145703.
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 Dec 2 15:14:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 21:14:08 +0000
Subject: [LLVMbugs] [Bug 11468] Clang incorrectly handles exceptions in
presence of stack aligned variables
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11468
Alexey Samsonov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #4 from Alexey Samsonov 2011-12-02 15:14:08 CST ---
Ouch, sorry for that. I tried to make another reproducer, please take a look:
$ cat exception_test.cc
#include
__attribute__((noinline))
void TouchR15AndThrow(const char& arg) {
volatile int n __attribute__((aligned(32))) = 0;
asm volatile ("nop" : : : "%r15"); // force to save r15 on stack
throw arg;
}
int main() {
// Set r15 value
int a = 42;
asm ("movq %0, %%r15;\n\t" : : "g"(a) : "%r15");
// Output value of r15
int b;
asm ("movq %%r15, %0;\n\t" : "=g" (b) : : "%r15");
fprintf(stderr, "before = %d\n", b);
try {
TouchR15AndThrow('c');
} catch (const char&) { }
// Output value of r15 again
asm ("movq %%r15, %0;\n\t" : "=g" (b) : : "%r15");
fprintf(stderr, "after = %d\n", b);
return 0;
}
$ ../build/Release+Asserts/bin/clang++ -O2 exception_test.cc
$ ./a.out
before = 42
after = 0
there is no instruction that changes value in %r15, but it is incorrectly
restored after exception is caught.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 15:23:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 02 Dec 2011 21:23:25 +0000
Subject: [LLVMbugs] [Bug 11469] New: Wrong CFG generated for cast to VM type
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11469
Bug #: 11469
Summary: Wrong CFG generated for cast to VM type
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: abramobagnara at tin.it
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 18:04:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 03 Dec 2011 00:04:46 +0000
Subject: [LLVMbugs] [Bug 11455] Dead store elimination kills non-dead store
as part of memcpy
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11455
Peter Cooper changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Peter Cooper 2011-12-02 18:04:46 CST ---
Fixed in r145731
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 21:46:13 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 03 Dec 2011 03:46:13 +0000
Subject: [LLVMbugs] [Bug 11470] New: clang incorrectly marks all return slot
parameters as noalias
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11470
Bug #: 11470
Summary: clang incorrectly marks all return slot parameters as
noalias
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: miscompilation
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
nicholas at mxc.ca
Classification: Unclassified
Consider the following:
struct foo { int a, b; double c, d, e; };
extern foo x;
foo f() { return { 1, x.a }; }
foo x = f();
Depending on what copy elision happens, x is initialized as either {1,0} or
{1,1}. With the double members in struct foo, we elide all the copies and an
-O0 build initializes x as {1,1}. (Without the double members, we return as i64
and get the resulting value {1,0}). However, we define f as:
define void @_Z1fv(%struct.foo* noalias sret %agg.result) nounwind uwtable {
This is wrong! %agg.result is not noalias. This results in us incorrectly
assuming the write to %agg.result.a and the read of @x.a do not alias, and
producing the result {1,0}. This coincidentally happens to be a legal outcome
in this case, but not in general.
Another example:
struct bar {
bar(bar *o) : ok(true) {
o->ok = false;
if (!ok)
ok = true;
}
bool ok;
double make, it, bigger;
};
bar f(bar *p) {
return p;
}
int main() {
bar self_reference = f(&self_reference);
return !self_reference.ok;
}
In a compliant compiler, main must always return 0, whether we elide the copies
or not. But in clang at -O3, it returns 1! This is again because we've
incorrectly marked the return slot in bar as noalias.
Note that, while the above initializations have undefined behaviour for const
objects, by C++11[class.ctor]p14, I believe they have well-defined behaviour in
these cases, since the objects are not 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 Fri Dec 2 21:59:42 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 03 Dec 2011 03:59:42 +0000
Subject: [LLVMbugs] [Bug 11471] New: alias analysis misled by pointer
comparison
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11471
Bug #: 11471
Summary: alias analysis misled by pointer comparison
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu, nicholas at mxc.ca
Classification: Unclassified
Consider the following:
; 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-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.bar = type { i8, double, double, double }
define void @_Z1fP3bar(%struct.bar* noalias sret %agg.result, %struct.bar* %p)
nounwind uwtable {
entry:
%ok.i = getelementptr inbounds %struct.bar* %agg.result, i64 0, i32 0
store i8 1, i8* %ok.i, align 1, !tbaa !0
%cmp.i = icmp eq %struct.bar* %agg.result, %p
br i1 %cmp.i, label %if.then.i, label %_ZN3barC2EPS_.exit
if.then.i: ; preds = %entry
%ok2.i = getelementptr inbounds %struct.bar* %p, i64 0, i32 0
store i8 0, i8* %ok2.i, align 1, !tbaa !0
%0 = load i8* %ok.i, align 1, !tbaa !0
%1 = and i8 %0, 1
%tobool.i = icmp eq i8 %1, 0
br i1 %tobool.i, label %if.then4.i, label %_ZN3barC2EPS_.exit
if.then4.i: ; preds = %if.then.i
store i8 1, i8* %ok.i, align 1, !tbaa !0
br label %_ZN3barC2EPS_.exit
_ZN3barC2EPS_.exit: ; preds = %if.then4.i,
%if.then.i, %entry
ret void
}
!0 = metadata !{metadata !"bool", metadata !1}
!1 = metadata !{metadata !"omnipotent char", metadata !2}
!2 = metadata !{metadata !"Simple C/C++ TBAA", null}
We do not optimize this any further, apparently because the icmp of %agg.result
and %p is causing us to lose the knowledge that those two pointers don't alias.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 3 00:57:32 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 03 Dec 2011 06:57:32 +0000
Subject: [LLVMbugs] [Bug 11468] Clang incorrectly handles exceptions in
presence of stack aligned variables
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11468
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #5 from Bill Wendling 2011-12-03 00:57:32 CST ---
>From the EH ABI:
"The unwind runtime will likely have modified the stack (e.g. popped frames
from it) or register context, or landing pad code may have corrupted them. As a
result, the the caller of _Unwind_RaiseException can make no assumptions about
the state of its stack or registers."
So basically we cannot rely upon any register values being valid except for
those we know are restored via the unwinder. Sorry about that.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 3 03:37:23 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 03 Dec 2011 09:37:23 +0000
Subject: [LLVMbugs] [Bug 11472] New: no path to 32-bit startup files on ppc64
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11472
Bug #: 11472
Summary: no path to 32-bit startup files on ppc64
Product: clang
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: michael.kostylev at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7665
--> http://llvm.org/bugs/attachment.cgi?id=7665
proposed patch
To be more precise, there are at least ppc64, mips64{,el} and sparcv9 platforms
where 32-bit multilibs could be supported. Clang is able to find 32-bit system
libraries but fails to find 32-bit crt*.o files, libgcc* etc.
Mips64/sparcv9 require more driver patching per se, so I did a patch only for
ppc64.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 3 07:23:54 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 03 Dec 2011 13:23:54 +0000
Subject: [LLVMbugs] [Bug 11468] Clang incorrectly handles exceptions in
presence of stack aligned variables
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11468
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #7 from Anton Korobeynikov 2011-12-03 07:23:54 CST ---
Yes, we should definitely check this. When stack is realigned then all the
variables should be saved / restored relative to frame pointer.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 3 12:14:58 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 03 Dec 2011 18:14:58 +0000
Subject: [LLVMbugs] [Bug 11462] __is_final intrinsic
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11462
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-12-03 12:14:58 CST ---
Committed as r145775, 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 Sat Dec 3 15:33:20 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 03 Dec 2011 21:33:20 +0000
Subject: [LLVMbugs] [Bug 10282] [SPARC] Assertion in Tail Duplication
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10282
Venkatraman Govindaraju changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |venkatra at cs.wisc.edu
Resolution| |FIXED
--- Comment #1 from Venkatraman Govindaraju 2011-12-03 15:33:20 CST ---
Fixed in r145779.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 3 17:49:54 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 03 Dec 2011 23:49:54 +0000
Subject: [LLVMbugs] [Bug 11322] Wrong constructor order for ARM/ELF
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11322
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #11 from Anton Korobeynikov 2011-12-03 17:49:54 CST ---
Commited in r145781. 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 Sat Dec 3 23:51:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 04 Dec 2011 05:51:16 +0000
Subject: [LLVMbugs] [Bug 11474] New: colorized printing is not atomic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11474
Bug #: 11474
Summary: colorized printing is not atomic
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: balicki.aleksander at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7666
--> http://llvm.org/bugs/attachment.cgi?id=7666
screenshot of colorizing bug
The output colorizing of 'warning' sometimes contaminates other text, when
doing a multithreaded build with make (i.e. make -j4)
There should be some kind of locking, to print the whole message out, so there
will be no problems whem multiple processes are writing to stdout.
Attached screenshot with 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 Sun Dec 4 00:13:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 04 Dec 2011 06:13:12 +0000
Subject: [LLVMbugs] [Bug 11401]
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp:825: void
{anonymous}::ScheduleDAGRRList::UnscheduleNodeBottomUp(llvm::SUnit*):
Assertion `NumLiveRegs > 0 && "NumLiveRegs is already zero!"' failed.
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11401
Nico Weber changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nicolasweber at gmx.de
Resolution| |DUPLICATE
--- Comment #2 from Nico Weber 2011-12-04 00:13:12 CST ---
*** This bug has been marked as a duplicate of bug 11386 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 4 01:41:10 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 04 Dec 2011 07:41:10 +0000
Subject: [LLVMbugs] [Bug 11475] New: LLVMgold.so link segfault
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11475
Bug #: 11475
Summary: LLVMgold.so link segfault
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Support Libraries
AssignedTo: unassignedbugs at nondot.org
ReportedBy: mario.fetka at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
ld is crashing when the -plugin is specified more then once.
here the output of a compile:
x86_64-pc-linux-gnu-gcc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=k8
-msse3 -O2 -pipe --plugin=/usr/lib64/llvm/dragonegg.so -DVERSION=\"2.043\"
-DXS_VERSION=\"2.043\" -fPIC
"-I/usr/lib64/perl5/5.12.4/x86_64-linux-thread-multi/CORE" -DNO_VIZ
-DGZIP_OS_CODE=3 -DUSE_PPPORT_H Zlib.c
rm -f blib/arch/auto/Compress/Raw/Zlib/Zlib.so
LD_RUN_PATH="/usr/lib64" x86_64-pc-linux-gnu-gcc -shared -march=k8 -msse3 -O2
-pipe --plugin=/usr/lib64/llvm/dragonegg.so -Wl,--hash-style=gnu,-O1
-Wl,--as-needed -Wl,-plugin=/usr/lib64/llvm/LLVMgold.so Zlib.o
-Wl,--hash-style=gnu,-O1 -Wl,--as-needed
-Wl,-plugin=/usr/lib64/llvm/LLVMgold.so -o
blib/arch/auto/Compress/Raw/Zlib/Zlib.so \
-L/usr/lib64 -lz \
collect2: ld mit Signal 11 [Speicherzugriffsfehler] beendet
make: *** [blib/arch/auto/Compress/Raw/Zlib/Zlib.so] Fehler 1
as you can see the LLVMgold.so is added twize
it schould not crash with 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 Sun Dec 4 04:09:37 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 04 Dec 2011 10:09:37 +0000
Subject: [LLVMbugs] [Bug 8474] #pragma weak recursion crashes clang
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8474
Elias Pipping changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Elias Pipping 2011-12-04 04:09:37 CST ---
Closing as per the above comments.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 4 09:33:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 04 Dec 2011 15:33:14 +0000
Subject: [LLVMbugs] [Bug 11476] New: InlineSpiller generates invalid
register values
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11476
Bug #: 11476
Summary: InlineSpiller generates invalid register values
Product: libraries
Version: trunk
Platform: All
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Register Allocator
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hfinkel at anl.gov
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Running llc (trunk 145766) on the attached input generates a crash because
foldMemoryOperand is calling TargetInstrInfo::foldMemoryOperand which is
calling PPCInstrInfo::storeRegToStackSlot with an invalid register number.
The actual backtrace is (abbreviated):
Unhandled reg in PPCRegisterInfo::getRegisterNumbering!
UNREACHABLE executed at
/src/llvm-trunk-writable/lib/Target/PowerPC/MCTargetDesc/PPCBaseInfo.h:64!
...
#2 0x0000000001533aa1 in llvm::llvm_unreachable_internal (msg=0x16cd920
"Unhandled reg in PPCRegisterInfo::getRegisterNumbering!",
file=0x16cd8c0
"/src/llvm-trunk-writable/lib/Target/PowerPC/MCTargetDesc/PPCBaseInfo.h",
line=64)
at /src/llvm-trunk-writable/lib/Support/ErrorHandling.cpp:98
#3 0x0000000000d38dda in getPPCRegisterNumbering (RegEnum=2147483882)
at
/src/llvm-trunk-writable/lib/Target/PowerPC/MCTargetDesc/PPCBaseInfo.h:64
#4 0x0000000000d3aad3 in llvm::PPCInstrInfo::StoreRegToStackSlot
(this=0x2438730, MF=..., SrcReg=2147483882, isKill=false, FrameIdx=3,
RC=0x1ef3e00, NewMIs=...)
at /src/llvm-trunk-writable/lib/Target/PowerPC/PPCInstrInfo.cpp:423
#5 0x0000000000d3b01a in llvm::PPCInstrInfo::storeRegToStackSlot
(this=0x2438730, MBB=..., MI=..., SrcReg=2147483882, isKill=false, FrameIdx=3,
RC=0x1ef3e00,
TRI=0x2438758) at
/src/llvm-trunk-writable/lib/Target/PowerPC/PPCInstrInfo.cpp:497
#6 0x00000000011fb0dc in llvm::TargetInstrInfo::foldMemoryOperand
(this=0x2438730, MI=..., Ops=..., FI=3)
at /src/llvm-trunk-writable/lib/CodeGen/TargetInstrInfoImpl.cpp:321
#7 0x00000000012224aa in foldMemoryOperand (this=0x223c300, MI=..., Ops=...,
LoadMI=0x0)
at /src/llvm-trunk-writable/lib/CodeGen/InlineSpiller.cpp:1044
#8 0x00000000012230f1 in spillAroundUses (this=0x223c300, Reg=2147483881) at
/src/llvm-trunk-writable/lib/CodeGen/InlineSpiller.cpp:1175
#9 0x000000000122370b in spillAll (this=0x223c300) at
/src/llvm-trunk-writable/lib/CodeGen/InlineSpiller.cpp:1238
#10 0x0000000001223b8f in spill (this=0x223c300, edit=...) at
/src/llvm-trunk-writable/lib/CodeGen/InlineSpiller.cpp:1286
#11 0x00000000011625f5 in selectOrSplit (this=0x2450ad0, VirtReg=...,
NewVRegs=...)
at /src/llvm-trunk-writable/lib/CodeGen/RegAllocGreedy.cpp:1593
#12 0x000000000114e020 in llvm::RegAllocBase::allocatePhysRegs (this=0x2450af0)
at /src/llvm-trunk-writable/lib/CodeGen/RegAllocBasic.cpp:322
#13 0x0000000001162a21 in runOnMachineFunction (this=0x2450ad0, mf=...) at
/src/llvm-trunk-writable/lib/CodeGen/RegAllocGreedy.cpp:1630
...
(gdb) up
#3 0x0000000000d38dda in getPPCRegisterNumbering (RegEnum=2147483882)
at
/src/llvm-trunk-writable/lib/Target/PowerPC/MCTargetDesc/PPCBaseInfo.h:64
64 llvm_unreachable("Unhandled reg in
PPCRegisterInfo::getRegisterNumbering!");
(gdb) up
#4 0x0000000000d3aad3 in llvm::PPCInstrInfo::StoreRegToStackSlot
(this=0x2438730, MF=..., SrcReg=2147483882, isKill=false, FrameIdx=3,
RC=0x1ef3e00, NewMIs=...)
at /src/llvm-trunk-writable/lib/Target/PowerPC/PPCInstrInfo.cpp:423
423 unsigned ShiftBits = getPPCRegisterNumbering(SrcReg)*4;
(gdb) up
#5 0x0000000000d3b01a in llvm::PPCInstrInfo::storeRegToStackSlot
(this=0x2438730, MBB=..., MI=..., SrcReg=2147483882, isKill=false, FrameIdx=3,
RC=0x1ef3e00,
TRI=0x2438758) at
/src/llvm-trunk-writable/lib/Target/PowerPC/PPCInstrInfo.cpp:497
497 if (StoreRegToStackSlot(MF, SrcReg, isKill, FrameIdx, RC, NewMIs)) {
(gdb) up
#6 0x00000000011fb0dc in llvm::TargetInstrInfo::foldMemoryOperand
(this=0x2438730, MI=..., Ops=..., FI=3)
at /src/llvm-trunk-writable/lib/CodeGen/TargetInstrInfoImpl.cpp:321
321 storeRegToStackSlot(*MBB, Pos, MO.getReg(), MO.isKill(), FI, RC,
TRI);
...
(gdb) p *MI
$3 = (llvm::MachineInstr &) @0x2695a68: {>
= {> = {Prev = 0x284e660},
Next = 0x284e5b0}, MCID = 0x1e5c3a0, Flags = 0 '\000', AsmPrinterFlags = 0
'\000', Operands = std::vector of length 2, capacity 2 = {{OpKind = 0 '\000',
SubReg = 0 '\000', TargetFlags = 0 '\000', IsDef = true, IsImp = false,
IsKill = false, IsDead = false, IsUndef = false, IsEarlyClobber = false,
IsDebug = false, SmallContents = {RegNo = 2147483881, OffsetLo =
2147483881}, ParentMI = 0x2695a68, Contents = {MBB = 0x2282008, CFP =
0x2282008,
CI = 0x2282008, ImmVal = 36184072, MD = 0x2282008, Sym = 0x2282008, Reg
= {Prev = 0x2282008, Next = 0x24fe240}, OffsetedInfo = {Val = {Index =
36184072,
SymbolName = 0x2282008 "?&\002", GV = 0x2282008, BA = 0x2282008},
OffsetHi = 38789696}}}, {OpKind = 0 '\000', SubReg = 0 '\000', TargetFlags = 0
'\000',
IsDef = false, IsImp = false, IsKill = false, IsDead = false, IsUndef =
false, IsEarlyClobber = false, IsDebug = false, SmallContents = {RegNo =
2147483882,
OffsetLo = 2147483882}, ParentMI = 0x2695a68, Contents = {MBB =
0x249a308, CFP = 0x249a308, CI = 0x249a308, ImmVal = 38380296, MD = 0x249a308,
Sym = 0x249a308, Reg = {Prev = 0x249a308, Next = 0x0}, OffsetedInfo =
{Val = {Index = 38380296, SymbolName = 0x249a308 "\360\221&\002", GV =
0x249a308,
BA = 0x249a308}, OffsetHi = 0}}}}, MemRefs = 0x0, MemRefsEnd = 0x0,
Parent = 0x2618cb8, debugLoc = {LineCol = 0, ScopeIdx = 0}}
(so the MI being provided to TargetInstrInfo::foldMemoryOperand by
foldMemoryOperand in InlineSpiller has a register with an invalid number (does
that large number indicate a virtual register?))
0. Program arguments: llc -o /tmp/tscvec.s /tmp/tscvec.ll
1. Running pass 'Function Pass Manager' on module '/tmp/tscvec.ll'.
2. Running pass 'Greedy Register Allocator' on function '@s3110'
I've tried running this under valgrind on both linux/ppc64 and linux/x86_64,
and the crash is the same on both systems, and on both systems, valgrind gives
the process of clean bill of health.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 4 14:26:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 04 Dec 2011 20:26:07 +0000
Subject: [LLVMbugs] [Bug 5329] Global ctor/dtor priorities not codegened
correctly
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5329
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #5 from Anton Korobeynikov 2011-12-04 14:26:07 CST ---
Ok, in fact the patch is incomplete. While it will solve the stuff in the
single .o file, it won't solve the problem when several functions are emitted
into the different .o files - the linker will just merge the init_array
sections alltogether thus making the construction priorities bogus.
The solution I can think of is to emit the functions with constructor priority
N into the section, say, init_array.N and dtor - init_array.(65535-N). This way
everything will be ok.
Also, we should not worry about Darwin - according to Nick Kledzik, Darwin does
not support ctor / dtor priorities at 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 Sun Dec 4 18:08:52 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 00:08:52 +0000
Subject: [LLVMbugs] [Bug 10971] Due to bad hash functions,
unordered_set can easily give horrible performance
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10971
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #2 from Howard Hinnant 2011-12-04 18:08:52 CST ---
I've decided to close this as "behaves correctly". It wasn't without a lot of
thought and testing though.
A colleague I highly respect (Dave Zarzycki) summed it up this way:
As for std::hash, the problem that pr10971 is asking
you to try and solve is essentially this: "magically figure
out what the high entropy bits are in a random int and
somehow magically redistribute that entropy to the low
entropy bits in the int"
Note that this decision only impacts the hash where sizeof(scalar) <=
sizeof(size_t).
I ran lots of tests measuring collisions with many different distributions of
size_t. The only one I came across that had bad performance was if the key was
a linear with a slope of a prime number: And not just any prime, but the prime
corresponding to the number of buckets. And even then, the prime had to be
fairly large for there to be a noticeable impact. And as soon as the table
automatically rehashes, the problem not only disappears, the identity function
reverts to a perfect hash.
The other hash functions I tested, did not suffer the "multiple of a prime"
problem. But they were consistently slower and resulted in more collisions
much more often. I'm not saying that identity is the perfect hashing function.
But I am saying that it is a good default for containers which restrict the
number of buckets to a prime. Had I been dealing with containers where the
number of buckets is a power of 2, I'm sure I would've come to a different
conclusion. Indeed, this was a big influence in pushing me away from such hash
container implementations years 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 Mon Dec 5 00:42:22 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 06:42:22 +0000
Subject: [LLVMbugs] [Bug 11477] New: The version list for clang does not
include 3.0
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11477
Bug #: 11477
Summary: The version list for clang does not include 3.0
Product: Bugzilla Admin
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: UI
AssignedTo: unassignedbugs at nondot.org
ReportedBy: Dave at Yost.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 00:46:29 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 06:46:29 +0000
Subject: [LLVMbugs] [Bug 11478] New: clang -std=c++0x should report use of
(obsolete) typeof keyword
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11478
Bug #: 11478
Summary: clang -std=c++0x should report use of (obsolete)
typeof keyword
Product: clang
Version: 2.9
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: Dave at Yost.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
clang -std=c++0x should report use of (obsolete) typeof keyword and suggest use
of decltype instead.
Instead clang gives inscrutable error messages.
0 280 Z% cat typeofbug.cpp
template
class foo {
typedef typeof(T() - T()) differenceType;
};
0 281 Z% clang -std=c++0x -c typeofbug.cpp
typeofbug.cpp:3:22: error: expected ')'
typedef typeof(T() - T()) differenceType;
^
typeofbug.cpp:3:17: note: to match this '('
typedef typeof(T() - T()) differenceType;
^
typeofbug.cpp:3:11: error: C++ requires a type specifier for all declarations
typedef typeof(T() - T()) differenceType;
~~~~~~~ ^
typeofbug.cpp:3:28: error: expected ';' at end of declaration list
typedef typeof(T() - T()) differenceType;
^
;
3 errors generated.
1 282 Z%
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Dec 5 00:51:54 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 06:51:54 +0000
Subject: [LLVMbugs] [Bug 11479] New: [MC] llvm-mc crashes with symbol of
.file directive same as a function name
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11479
Bug #: 11479
Summary: [MC] llvm-mc crashes with symbol of .file directive
same as a function name
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: lihaitao+llvmbugs at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7669
--> http://llvm.org/bugs/attachment.cgi?id=7669
test case
llvm-mc crashes when compiling the attached t.s file.
The .s file is generated by a frontend which encodes .file directive value
without a suffix.
If the first line is '.file "t.bc" instead of '.file "t"', llvm-mc works as
expected.
$ llvm-mc -filetype=obj -o t.o t.s
llvm-mc: /home/***/src/llvm/include/llvm/MC/MCSymbol.h:111: const
llvm::MCSection &llvm::MCSymbol::getSection() const: Assertion `isInSection()
&& "Invalid accessor!"' failed.
$ llvm-mc -version
Low Level Virtual Machine (http://llvm.org/):
llvm version 3.1svn
DEBUG build with assertions.
Built Dec 5 2011 (10:03:25).
Default target: i386-pc-linux-gnu
Host CPU: corei7
(gdb) bt
#0 0xb7fe1424 in __kernel_vsyscall ()
#1 0xb7d46e71 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2 0xb7d4a34e in abort () at abort.c:92
#3 0xb7d3f888 in __assert_fail (assertion=0x8434fd3 "isInSection() &&
\"Invalid accessor!\"",
file=0x8434ff8 "/home/***/src/llvm/include/llvm/MC/MCSymbol.h", line=111,
function=0x843502a "const llvm::MCSection &llvm::MCSymbol::getSection() const")
at assert.c:81
#4 0x08232a17 in llvm::MCSymbol::getSection (this=0x86a8f90) at
/home/***/src/llvm/include/llvm/MC/MCSymbol.h:111
#5 0x0835a5e6 in llvm::MCObjectWriter::IsSymbolRefDifferenceFullyResolvedImpl
(this=0x86aac18, Asm=..., DataA=..., FB=..., InSet=false, IsPCRel=true)
at /home/***/src/llvm/lib/MC/MCObjectWriter.cpp:84
#6 0x083064ac in llvm::ELFObjectWriter::IsSymbolRefDifferenceFullyResolvedImpl
(this=0x86aac18, Asm=..., DataA=..., FB=..., InSet=false, IsPCRel=true)
at /home/***/src/llvm/lib/MC/ELFObjectWriter.cpp:1254
#7 0x083241a0 in llvm::MCAssembler::EvaluateFixup (this=0x86aaaa0, Layout=...,
Fixup=..., DF=0x86ac120, Target=..., Value=@0xbfffedc0)
at /home/***/src/llvm/lib/MC/MCAssembler.cpp:266
#8 0x08325a14 in llvm::MCAssembler::HandleFixup (this=0x86aaaa0, Layout=...,
F=..., Fixup=...) at /home/***/src/llvm/lib/MC/MCAssembler.cpp:555
#9 0x08326230 in llvm::MCAssembler::Finish (this=0x86aaaa0) at
/home/***/src/llvm/lib/MC/MCAssembler.cpp:624
#10 0x0835940d in llvm::MCObjectStreamer::Finish (this=0x86a71a0) at
/home/***/src/llvm/lib/MC/MCObjectStreamer.cpp:263
#11 0x083444be in llvm::MCELFStreamer::Finish (this=0x86a71a0) at
/home/***/src/llvm/lib/MC/MCELFStreamer.cpp:379
#12 0x08296803 in (anonymous namespace)::AsmParser::Run (this=0x86aae58,
NoInitialTextSection=false, NoFinalize=false)
at /home/elihait/src/llvm/lib/MC/MCParser/AsmParser.cpp:524
#13 0x08056fc9 in AssembleInput (ProgName=0xbffff9f6
"/home/***/local/rust/bin/llvm-mc") at
/home/elihait/src/llvm/tools/llvm-mc/llvm-mc.cpp:449
#14 0x08054288 in main (argc=5, argv=0xbffff854) at
/home/***/src/llvm/tools/llvm-mc/llvm-mc.cpp:517
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 01:45:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 07:45:16 +0000
Subject: [LLVMbugs] [Bug 11480] New: attribute((init_array(N))) is not
codegen'ed properly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11480
Bug #: 11480
Summary: attribute((init_array(N))) is not codegen'ed properly
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Right now attribute((init_array(N))) in clang defines the "local" order of
initialization of statics in the same TU. However, gcc's behavior for
init_array(N) is same as for constructor(N) - global priority wrt all TUs.
The solution seems to be easy - instead of emission of the single global
initialization function, emit one for each priority and rely on the priorities
in the LLVM's global_ctor / global_dtor section. There, if the target supports
the ctor / dtor priorities, then everything will be emitted in the appropriate
order. Otherwise (e.g. on Darwin, which does not support the priorities), we'll
emit everything into the single section with the proper priority order.
Does this sound reasonable?
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 05:21:55 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 11:21:55 +0000
Subject: [LLVMbugs] [Bug 11481] New: Clang binaries for Ubuntu 11.10/x86
contain 64-bit executables (not 32-bit ones)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11481
Bug #: 11481
Summary: Clang binaries for Ubuntu 11.10/x86 contain 64-bit
executables (not 32-bit ones)
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: garen.p at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Simple repro from CLI session:
$ wget
http://llvm.org/releases/3.0/clang+llvm-3.0-i386-linux-Ubuntu-11_10.tar.gz
$ tar xzvfp clang+llvm-3.0-i386-linux-debian.tar.gz
$ ./clang+llvm-3.0-x86_64-linux-Ubuntu-11_10/bin/clang -v
-bash: ./clang+llvm-3.0-x86_64-linux-Ubuntu-11_10/bin/clang: cannot execute
binary file
$ file clang+llvm-3.0-x86_64-linux-Ubuntu-11_10/bin/clang
clang+llvm-3.0-x86_64-linux-Ubuntu-11_10/bin/clang: ELF 64-bit LSB executable,
x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux
2.6.15, stripped
Note the "ELF 64-bit" part in the last command.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 11:54:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 17:54:59 +0000
Subject: [LLVMbugs] [Bug 11482] New: UppercaseString was not declared in
this scope
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11482
Bug #: 11482
Summary: UppercaseString was not declared in this scope
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: apacherulzz at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clean build of trunk...
llvm[3]: Compiling ClangDiagnosticsEmitter.cpp for Release+Asserts build
/opt/llvm/llvm/tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp: In
member function ?virtual void
llvm::ClangDiagsDefsEmitter::run(llvm::raw_ostream&)?:
/opt/llvm/llvm/tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp:133:
error: ?UppercaseString? was not declared in this scope
This is the only place UppercaseString appears in the entire llvm checkout, not
sure what was intended here but perhaps an include is missing?
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 11:55:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 17:55:07 +0000
Subject: [LLVMbugs] [Bug 11483] New: Crash in libclang when reparsing
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11483
Bug #: 11483
Summary: Crash in libclang when reparsing
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: csdavec at swan.ac.uk
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7671
--> http://llvm.org/bugs/attachment.cgi?id=7671
Test program
The attached program demonstrates a crash in libclang. The before.m and
after.m files are two versions of the same (preprocessed) source file. after.m
has had the word 'static' added on a new line after some existing top-level
declarations. When reparsing with after.m passed as an unsaved buffer,
libclang crashes.
The clangTest.c file contains a simple program that demonstrates the crash.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 12:23:51 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 18:23:51 +0000
Subject: [LLVMbugs] [Bug 11482] UppercaseString was not declared in this
scope
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11482
Benjamin Kramer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |benny.kra at gmail.com
Resolution| |INVALID
--- Comment #1 from Benjamin Kramer 2011-12-05 12:23:51 CST ---
Your LLVM and clang checkouts are out of sync. "make update" will fix that for
you.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 15:48:18 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 21:48:18 +0000
Subject: [LLVMbugs] [Bug 9395] open source project ITK, when built with clang,
has many failing unit tests
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9395
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #16 from John McCall 2011-12-05 15:48:18 CST ---
The specified behavior of 'noreturn' is that the function is not allowed to
return. The GCC manual is quite explicit about this, saying that the compiler
and optimizer can freely assume that the function does not return, etc. This
is exactly what Clang is doing. That you've found an example where GCC happens
to not produce code that crashes when you violate the rules does not mean that
your code is sound; it's more akin to writing past the end of a local
variable, which is a bug that may or may not be exposed depending on a lot of
contextual and internal details that vary from compiler to compiler (and
version to version). And much like that example, the right thing to do here is
to fix your code, in this case by removing 'noreturn' from the overridden
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 Dec 5 16:52:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 22:52:14 +0000
Subject: [LLVMbugs] [Bug 11477] The version list for clang does not include
3.0
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11477
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2011-12-05 16:52:14 CST ---
fixed, 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 Dec 5 17:24:26 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 05 Dec 2011 23:24:26 +0000
Subject: [LLVMbugs] [Bug 11484] New: "can't implicitly cast lvalue to rvalue
with this cast kind" assertion reached while compiling libc++
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11484
Bug #: 11484
Summary: "can't implicitly cast lvalue to rvalue with this cast
kind" assertion reached while compiling libc++
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: devlists at shadowlab.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7674
--> http://llvm.org/bugs/attachment.cgi?id=7674
Test case
While trying to compile libc++ (after revision r145698 of libcxx), clang
trigger an assertion when using Mac OS 10.6 SDK.
I managed to reduce the issue to the 2 lines attached test case.
$ clang++ -std=c++11 crash.ii
Assertion failed: (0 && "can't implicitly cast lvalue to rvalue with this cast
kind"), function ImpCastExprToType, file
/Users/jddupas/Projects/OpenSource/llvm/tools/clang/lib/Sema/Sema.cpp, line
248.
?
You can also reproduce the original problem by compiling a file that include
using 10.6 SDK (you need to have a trunk clang with trunk libcxx
headers)
$ echo "#include " > crash.cpp
$ clang++ -std=c++11 -U__STRICT_ANSI__ -stdlib=libc++ -isysroot
/Developer/SDKs/MacOSX10.6.sdk/ -c crash.cpp
Assertion failed: (0 && "can't implicitly cast lvalue to rvalue with this cast
kind"), function ImpCastExprToType, file
/Users/jddupas/Projects/OpenSource/llvm/tools/clang/lib/Sema/Sema.cpp, line
248.
?
3 clang 0x00000001030b5bf6
clang::DeclContext::lookup(clang::DeclarationName) + 630
4 clang 0x0000000103aca566 abort + 22
5 clang 0x0000000103aca525 __assert_rtn + 53
6 clang 0x0000000102b6a5ff
clang::Sema::ImpCastExprToType(clang::Expr*, clang::QualType, clang::CastKind,
clang::ExprValueKind, llvm::SmallVector const*,
clang::Sema::CheckedConversionKind) + 95
7 clang 0x0000000102c04bbd
clang::Sema::CheckEnumConstant(clang::EnumDecl*, clang::EnumConstantDecl*,
clang::SourceLocation, clang::IdentifierInfo*, clang::Expr*) + 1037
8 clang 0x0000000102c05b76
clang::Sema::ActOnEnumConstant(clang::Scope*, clang::Decl*, clang::Decl*,
clang::SourceLocation, clang::IdentifierInfo*, clang::AttributeList*,
clang::SourceLocation, clang::Expr*) + 726
9 clang 0x0000000102b097d9
clang::Parser::ParseEnumBody(clang::SourceLocation, clang::Decl*) + 729
10 clang 0x0000000102b06d03
clang::Parser::ParseEnumSpecifier(clang::SourceLocation, clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier) + 2675
11 clang 0x0000000102b035ac
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 5788
?
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 18:11:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 00:11:08 +0000
Subject: [LLVMbugs] [Bug 11484] "can't implicitly cast lvalue to rvalue with
this cast kind" assertion reached while compiling libc++
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11484
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2011-12-05 18:11:08 CST ---
r145874.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 19:46:27 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 01:46:27 +0000
Subject: [LLVMbugs] [Bug 11485] New: Division by power of two expansion
blocked by other flag
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11485
Bug #: 11485
Summary: Division by power of two expansion blocked by other
flag
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: javier.e.martinez at intel.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7675
--> http://llvm.org/bugs/attachment.cgi?id=7675
Fix for expanding integer division by 2
Assume that a target can do integer division cheaply but not as cheap as
shifts. This target would call setIntDivIsCheap(true) and
setPow2DivIsCheap(false). The issue is that the DAGCombiner visitSDIV punts if
isIntDivCheap is true. The fix is to check for isPow2DivCheap instead. Below is
the current code and the fix. A patch is also attached.
[CURRENT]
// fold (sdiv X, pow2) -> simple ops after legalize
if (N1C && !N1C->isNullValue() && !TLI.isIntDivCheap() &&
(N1C->getAPIntValue().isPowerOf2() ||
(-N1C->getAPIntValue()).isPowerOf2())) {
// If dividing by powers of two is cheap, then don't perform the following
// fold.
if (TLI.isPow2DivCheap())
return SDValue();
unsigned lg2 = N1C->getAPIntValue().countTrailingZeros();
[FIX]
// fold (sdiv X, pow2) -> simple ops after legalize
if (N1C && !N1C->isNullValue() && !TLI.isPow2DivCheap() &&
(N1C->getAPIntValue().isPowerOf2() ||
(-N1C->getAPIntValue()).isPowerOf2())) {
unsigned lg2 = N1C->getAPIntValue().countTrailingZeros();
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 23:20:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 05:20:01 +0000
Subject: [LLVMbugs] [Bug 11486] New: union { struct { }; } foo = { .bar = 0 };
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11486
Bug #: 11486
Summary: union { struct { }; } foo = { .bar = 0 };
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chisophugis at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7676
--> http://llvm.org/bugs/attachment.cgi?id=7676
Clang's error dump
That's about it.
$ cat >kill-clang.c
union { struct { }; } foo = { .bar = 0 };
$ clang -c kill-clang.c
<>
Another variation that seems to cause the same crash:
int x = (union { struct { }; }) { .bar = 0 };
$ clang --version
clang version 2.9 (tags/RELEASE_29/final)
Target: x86_64-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 Tue Dec 6 01:25:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 07:25:11 +0000
Subject: [LLVMbugs] [Bug 11486] union { struct { }; } foo = { .bar = 0 };
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11486
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |asl at math.spbu.ru
Resolution| |WORKSFORME
--- Comment #1 from Anton Korobeynikov 2011-12-06 01:25:11 CST ---
Works for me on ToT / 3.0:
$ clang -c 2.c
2.c:1:32: error: field designator 'bar' does not refer to any field in type
'union '
union { struct { }; } foo = { .bar = 0 };
^
2.c:2:36: error: field designator 'bar' does not refer to any field in type
'union '
int x = (union { struct { }; }) { .bar = 0 };
^
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 Dec 6 03:49:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 09:49:14 +0000
Subject: [LLVMbugs] [Bug 2709] incorrect parser handling of Obj-C @interface
... @end scope
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=2709
Erik Verbruggen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |Erik.Verbruggen at Me.com
Resolution| |FIXED
--- Comment #15 from Erik Verbruggen 2011-12-06 03:49:14 CST ---
Fixed in rev. 145928.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 04:45:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 10:45:00 +0000
Subject: [LLVMbugs] [Bug 11487] New: pointers to data members in unions are
not initialized to -1
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11487
Bug #: 11487
Summary: pointers to data members in unions are not initialized
to -1
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: shatrov at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7677
--> http://llvm.org/bugs/attachment.cgi?id=7677
test case
According to C++ ABI, null pointers to data members are represented as "-1".
Clang does not obey this rule for members of a union (see the attached test
case).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Dec 6 05:11:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 11:11:12 +0000
Subject: [LLVMbugs] [Bug 11488] New: Clang should warn on the use of
reserved identifier/macro names
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11488
Bug #: 11488
Summary: Clang should warn on the use of reserved
identifier/macro names
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: vanboxem.ruben at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
For C, Clang should warn when user code uses identifiers or macros that are
implementation-reserved.
For C(99), this would mean names starting with an underscore followed by
another unerscore or capitalized letter.
For C++ a single underscore is also reserved for the global namespace.
I could have messed the above rules up, but these are the cause of a lot of
unexpected bugs, and a warning would be super-easy to implement.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 05:29:32 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 11:29:32 +0000
Subject: [LLVMbugs] [Bug 11489] New: opt -gvn: Assertion `isa(Val) &&
"cast() argument of incompatible type!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11489
Bug #: 11489
Summary: opt -gvn: Assertion `isa(Val) && "cast()
argument of incompatible type!
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Global Analyses
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eugeni.stepanov at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
# opt -gvn 1.ll -o 1.bc
opt: clang_src/include/llvm/Support/Casting.h:194: typename
llvm::cast_retty::ret_type llvm::cast(const Y&) [with X =
llvm::Instruction, Y = llvm::User*]: Assertion `isa(Val) && "cast()
argument of incompatible type!"' failed.
0 opt 0x0000000000900e0f
1 opt 0x0000000000903082
2 libpthread.so.0 0x00007f4143b068f0
3 libc.so.6 0x00007f4142df5a75 gsignal + 53
4 libc.so.6 0x00007f4142df95c0 abort + 384
5 libc.so.6 0x00007f4142dee941 __assert_fail + 241
6 opt 0x00000000007044dd
llvm::MemoryDependenceAnalysis::getModRefInfo(llvm::Instruction const*,
llvm::AliasAnalysis::Location const&) + 2605
7 opt 0x0000000000704686
llvm::MemoryDependenceAnalysis::getPointerDependencyFrom(llvm::AliasAnalysis::Location
const&, bool, llvm::ilist_iterator, llvm::BasicBlock*) + 230
8 opt 0x0000000000704c17
llvm::MemoryDependenceAnalysis::GetNonLocalInfoForBlock(llvm::AliasAnalysis::Location
const&, bool, llvm::BasicBlock*, std::vector >*, unsigned int) + 231
9 opt 0x00000000007063c0
llvm::MemoryDependenceAnalysis::getNonLocalPointerDepFromBB(llvm::PHITransAddr
const&, llvm::AliasAnalysis::Location const&, bool, llvm::BasicBlock*,
llvm::SmallVectorImpl&,
llvm::DenseMap, llvm::DenseMapInfo >&,
bool) + 3520
10 opt 0x0000000000707996
llvm::MemoryDependenceAnalysis::getNonLocalPointerDependency(llvm::AliasAnalysis::Location
const&, bool, llvm::BasicBlock*,
llvm::SmallVectorImpl&) + 246
11 opt 0x00000000005215d0
12 opt 0x0000000000523639
13 opt 0x00000000005243d8
14 opt 0x0000000000524d8b
15 opt 0x00000000008a471b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 587
16 opt 0x00000000008a4803
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
17 opt 0x00000000008a41e7
llvm::MPPassManager::runOnModule(llvm::Module&) + 503
18 opt 0x00000000008a437b llvm::PassManagerImpl::run(llvm::Module&)
+ 187
19 opt 0x00000000004c5d8d main + 4797
20 libc.so.6 0x00007f4142de0c4d __libc_start_main + 253
21 opt 0x00000000004b9c59
Stack dump:
0. Program arguments: ./opt -gvn 1.ll -o 1.bc
1. Running pass 'Function Pass Manager' on module '1.ll'.
2. Running pass 'Global Value Numbering' on function '@g'
Aborted
# cat 1.ll
; ModuleID = '1.c'
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-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @g() nounwind uwtable {
entry:
%code = alloca i8*, align 8
store i8* bitcast (void (...)* @f to i8*), i8** %code, align 8
%0 = load i8** %code, align 8
%arrayidx = getelementptr inbounds i8* %0, i64 0
%1 = load i8* %arrayidx
%tobool = icmp ne i8 %1, 0
br i1 %tobool, label %if.then, label %if.end
if.then: ; preds = %entry
call void (...)* @gg()
br label %if.end
if.end: ; preds = %if.then, %entry
%2 = load i8** %code, align 8
%3 = load i8* %2
call void @hh(i8 zeroext %3)
ret void
}
declare void @f(...)
declare void @gg(...)
declare void @hh(i8 zeroext)
# This can also be reproduced with clang -c -O2 1.c
# cat 1.c
void gg();
void hh(unsigned char);
void f();
void g() {
unsigned char *code = (unsigned char*)f;
if (code[0]) {
gg();
}
hh(*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 Dec 6 05:36:10 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 11:36:10 +0000
Subject: [LLVMbugs] [Bug 11490] New: projects/sample/Makefile.llvm.config
incorrectly configures x86_64 target as 'x86'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11490
Bug #: 11490
Summary: projects/sample/Makefile.llvm.config incorrectly
configures x86_64 target as 'x86'
Product: Build scripts
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Makefiles
AssignedTo: unassignedbugs at nondot.org
ReportedBy: vince at macports.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When compiling from trunk on a x86_64 hardware, the
projects/sample/Release+Asserts/lib/libsample.a build fails because it gets
compiled for i386 rather than x86_64. This misbehavior is caused by a wrong
parameter in projects/sample/Makefile.llvm.config line 85:
# Target hardware architecture
ARCH=x86
instead of:
# Target hardware architecture
ARCH=x86_64
And so the build fails without a correcting patch. I think it is very easy to
fix.
V.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 06:41:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 12:41:40 +0000
Subject: [LLVMbugs] [Bug 11491] New: Stricter option for
GCC_WARN_MISSING_PARENTHESES
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11491
Bug #: 11491
Summary: Stricter option for GCC_WARN_MISSING_PARENTHESES
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: peylow at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
GCC_WARN_MISSING_PARENTHESES gives a warning for this ambitious code;
{ if (a) if (b) foo (); else bar (); }
requiring a change to this;
{ if (a) { if (b) foo (); else bar (); } }
It would be useful to have an even stricter option requiring this;
{ if (a) { if (b) { foo (); } else { bar (); } } }
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 08:50:36 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 14:50:36 +0000
Subject: [LLVMbugs] [Bug 11492] New: llvm-config includes gtest even though
it's not built by default
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11492
Bug #: 11492
Summary: llvm-config includes gtest even though it's not built
by default
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: matt at pharr.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
With a fresh checkout of 3.1 TOT, if I build using "./configure" and then "make
ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=0 install", then if I run "llvm-config
--libs all", the output includes "-lLLVMgtest_main -lLLVMgtest" even though
those haven't been built.
(Speaking of llvm-config, the help message indicates that "backend" is allowed,
though that seems to have been removed by 144202.)
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 09:45:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 15:45:06 +0000
Subject: [LLVMbugs] [Bug 11493] New: missing unwind.h
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11493
Bug #: 11493
Summary: missing unwind.h
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: ASSIGNED
Severity: enhancement
Priority: P
Component: Headers
AssignedTo: rafael.espindola at gmail.com
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
This is an interesting one. GCC includes it in most systems, but on OS X Lion
it is considered part of the SDK:
/Developer/SDKs//MacOSX10.7.sdk/usr/include/unwind.h
We need this header for systems where gcc provides it, but on Lion we probably
want to use the system one.
I can see two ways of doing this. One is to install it to
lib/clang//include/cpuid/cpuid.h and only add that directory to the search
path on systems where cpuid.h is provided by gcc. The other one is to install
it in the regular directory (lib/clang//include) and use an #ifdef and a
#include_next to use the system one on Lion.
I will give the #ifdef option a try.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 11:00:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 17:00:14 +0000
Subject: [LLVMbugs] [Bug 9665] __builtin_shufflevector requires a constant
integer
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9665
Luke Dalessandro changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Version|2.9 |3.0
Resolution|INVALID |
Severity|normal |enhancement
--- Comment #2 from Luke Dalessandro 2011-12-06 11:00:14 CST ---
This bites me as well because Intel seems to use the (apparent) "unportable
extension" in their avx intrinsic emulation header, downloadable as
"avxintrin_emu.h" from
"http://software.intel.com/en-us/articles/avx-emulation-header-file/". The
header compiles without complaint on gcc on my Linux system up through 4.6.2.
Reproduce by downloading the header and including it in some temp.c file, and
compiling with gcc -msse2 -c temp.c -o /dev/null.
It's an inconvenient deviation from gcc's behavior (in the sense that there
isn't any way that I can fix this header given my knowledge of SSE), so I
updated to clang 3.0 and marked as an enhancement request.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Dec 6 12:59:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 18:59:07 +0000
Subject: [LLVMbugs] [Bug 11494] New: [AVX] incorrect code generated from
short program with shuffles/int min/max
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11494
Bug #: 11494
Summary: [AVX] incorrect code generated from short program with
shuffles/int min/max
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matt at pharr.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7680
--> http://llvm.org/bugs/attachment.cgi?id=7680
test case
The attached short test case does a series of 4-wide SSE4.1 pminsd/pmaxsd calls
to compute a 16-wide vector. It should generate a vector where the first four
values are respectively <4,3,2,1> and where the rest of the values are 0s.
With the SSE target, the correct result is computed. With AVX, the last four
values incorrectly have a value of four.
% llc -mattr=+avx bug.ll -o t.o --filetype=obj && clang t.cpp t.o && ./a.out
0 4.000000
1 3.000000
2 2.000000
3 1.000000
4 0.000000
5 0.000000
6 0.000000
7 0.000000
8 0.000000
9 0.000000
10 0.000000
11 0.000000
12 4.000000
13 4.000000
14 4.000000
15 4.000000
% llc bug.ll -o t.o --filetype=obj && clang t.cpp t.o && ./a.out
0 4.000000
1 3.000000
2 2.000000
3 1.000000
4 0.000000
5 0.000000
6 0.000000
7 0.000000
8 0.000000
9 0.000000
10 0.000000
11 0.000000
12 0.000000
13 0.000000
14 0.000000
15 0.000000
%
This bug is present in both 3.1svn and the 3.0 release.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 13:05:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 19:05:01 +0000
Subject: [LLVMbugs] [Bug 9665] __builtin_shufflevector requires a constant
integer
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9665
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |clattner at apple.com
Resolution| |WONTFIX
--- Comment #3 from Chris Lattner 2011-12-06 13:05:01 CST ---
We're not doing this. Please ask Intel to fix their headers, or just use the
Clang AVX headers.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 16:03:22 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 22:03:22 +0000
Subject: [LLVMbugs] [Bug 10164] Issue with objc_method_family(init) in class
extension.
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10164
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Ted Kremenek 2011-12-06 16:03:22 CST ---
I dont' see the issue here.
'self' has type 'Foo*'. With the instancetype feature, the method should
return 'Foo*', and thus no warning should be issued. Without the instancetype
feature (without the 'init' attribute), this is still correct behavior, because
'Foo*' can be matched to 'id'. 'id' trumps the type checking. That's how
Objective-C has worked 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 Tue Dec 6 16:06:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 22:06:08 +0000
Subject: [LLVMbugs] [Bug 10164] Issue with objc_method_family(init) in class
extension.
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10164
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |FIXED
--- Comment #5 from Ted Kremenek 2011-12-06 16:06:08 CST ---
I can reproduce this issue with an earlier version of Clang (e.g., the one in
Xcode 4.2). This is already fixed in mainline.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 17:33:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 23:33:47 +0000
Subject: [LLVMbugs] [Bug 11495] New: int-to-vector bitcast can't be lowered
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11495
Bug #: 11495
Summary: int-to-vector bitcast can't be lowered
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following code, when fed to clang...
typedef float __attribute__((__vector_size__(8))) vf;
vf v = (vf)0x123456789abcdef0ull;
... produces this IR (as of r145981, when I fixed a wrong-code bug for
big-endian systems on this code)...
; 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-S128"
target triple = "x86_64-unknown-linux-gnu"
@v = global <2 x float> bitcast (<1 x i64> to <2 x
float>), align 8
The backend fails when fed this code (at -O0):
Unknown constant value to lower!
UNREACHABLE executed at lib/CodeGen/AsmPrinter/AsmPrinter.cpp:1441!
[...]
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 15:59:29 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 06 Dec 2011 21:59:29 +0000
Subject: [LLVMbugs] [Bug 11476] PPC can't spill CRC virtual registers
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11476
Hal Finkel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #10 from Hal Finkel 2011-12-06 15:59:29 CST ---
r145961 fixes this 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 Tue Dec 6 18:12:04 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 00:12:04 +0000
Subject: [LLVMbugs] [Bug 11494] [AVX] incorrect code generated from short
program with shuffles/int min/max
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11494
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2011-12-06 18:12:04 CST ---
r145996.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 18:51:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 00:51:01 +0000
Subject: [LLVMbugs] [Bug 11495] int-to-vector bitcast can't be lowered
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11495
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2011-12-06 18:51:01 CST ---
r146001.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 19:31:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 01:31:16 +0000
Subject: [LLVMbugs] [Bug 11487] pointers to data members in unions are not
initialized to -1
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11487
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2011-12-06 19:31:16 CST ---
Fix for unions in r146009. It appears the other testcase already works
correctly on 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 Tue Dec 6 21:56:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 03:56:00 +0000
Subject: [LLVMbugs] [Bug 11485] Division by power of two expansion blocked
by division flag
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11485
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Eli Friedman 2011-12-06 21:56:00 CST ---
r146015.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 22:01:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 04:01:01 +0000
Subject: [LLVMbugs] [Bug 11472] no path to 32-bit startup files on ppc64
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11472
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2011-12-06 22:01:01 CST ---
r146016.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 22:13:36 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 04:13:36 +0000
Subject: [LLVMbugs] [Bug 11496] New: Crash zero-initializing union with
pointer to data member and long double
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11496
Bug #: 11496
Summary: Crash zero-initializing union with pointer to data
member and long double
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
namespace PR11487 {
union U
{
int U::* mptr;
struct S { char a; long double b; } x;
} x;
}
EmitNullConstant needs to be rewritten from scratch to handle this 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 Tue Dec 6 22:22:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 04:22:06 +0000
Subject: [LLVMbugs] [Bug 11497] New: llvm-config no longer returns targets
built
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11497
Bug #: 11497
Summary: llvm-config no longer returns targets built
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: viridia at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Running 'llvm-config --targets-built' now returns an empty string. This has
broken my build scripts. I just did a fresh checkout of LLVM from head to
verify 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 Wed Dec 7 01:46:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 07:46:19 +0000
Subject: [LLVMbugs] [Bug 11498] New: llvm::InitializeNativeTargetAsmParser()
is broken
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11498
Bug #: 11498
Summary: llvm::InitializeNativeTargetAsmParser() is broken
Product: Build scripts
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: cmake
AssignedTo: unassignedbugs at nondot.org
ReportedBy: alexey.prokhin at yandex.ru
CC: llvmbugs at cs.uiuc.edu, ofv at wanadoo.es
Classification: Unclassified
Created attachment 7682
--> http://llvm.org/bugs/attachment.cgi?id=7682
cmake-ix.cmake patch
llvm::InitializeNativeTargetAsmParser function does nothing if LLVM was
configured using cmake. That happens because LLVM_NATIVE_ASMPARSER is not set
in config-ix.cmake. I made a patch that resolves 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 Wed Dec 7 02:24:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 08:24:59 +0000
Subject: [LLVMbugs] [Bug 11489] opt -gvn: Assertion `isa(Val) &&
"cast() argument of incompatible type!
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11489
Evgeniy Stepanov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Evgeniy Stepanov 2011-12-07 02:24:59 CST ---
Hm, I can not reproduce it, too, after an update. Sorry, false alarm.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 04:13:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 10:13:06 +0000
Subject: [LLVMbugs] [Bug 11499] New: LLVM 3.0 opt SEGFAULT on following
example
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11499
Bug #: 11499
Summary: LLVM 3.0 opt SEGFAULT on following example
Product: new-bugs
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: babslachem at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7683
--> http://llvm.org/bugs/attachment.cgi?id=7683
CL file to reproduce problem
Using LLVM 3.0 on attached example, it SEGFAULTs with following exec trace on
my Ubuntu 10.04LTS 64-bit system:
opt -O2 cl00.ll -S -o cl00.opt.ll
0 opt 0x00000000008a1d0f
1 opt 0x00000000008a3a5a
2 libpthread.so.0 0x00007f5c57a158f0
3 opt 0x0000000000875686 llvm::APInt::countLeadingZerosSlowCase()
const + 38
4 opt 0x0000000000875962 llvm::APInt::EqualSlowCase(unsigned long)
const + 98
5 opt 0x00000000004d4bdb llvm::MemIntrinsic::isVolatile() const +
59
6 opt 0x00000000005b1138
7 opt 0x0000000000594e49
8 opt 0x00000000005959f6
9 opt 0x00000000008500d8
llvm::FPPassManager::runOnFunction(llvm::Function&) + 552
10 opt 0x0000000000850183
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
11 opt 0x000000000084fcb4
llvm::MPPassManager::runOnModule(llvm::Module&) + 468
12 opt 0x000000000084fdcd llvm::PassManagerImpl::run(llvm::Module&)
+ 141
13 opt 0x00000000004b4ff9 main + 4489
14 libc.so.6 0x00007f5c56cefc4d __libc_start_main + 253
15 opt 0x00000000004a6eb9
Stack dump:
0. Program arguments:
/home/deldon/Work/dev/pgi/linux86/share/llvm/3.0/bin/opt -O2 cl00.ll -S -o
cl00.opt.ll
1. Running pass 'Function Pass Manager' on module 'cl00.ll'.
2. Running pass 'Combine redundant instructions' on function '@f'
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 Wed Dec 7 04:54:26 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 10:54:26 +0000
Subject: [LLVMbugs] [Bug 11499] LLVM 3.0 opt SEGFAULT on following example
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11499
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Duncan Sands 2011-12-07 04:54:26 CST ---
The module doesn't pass the verifier:
$ opt -verify cl00.ll -disable-output
Intrinsic prototype has incorrect number of arguments!
void (i8*, i8, i32, i32)* @llvm.memset.i32
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 07:32:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 13:32:14 +0000
Subject: [LLVMbugs] [Bug 11500] New: clang_saveTranslationUnit() crashes,
when saving TU with precompiledPreamble.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11500
Bug #: 11500
Summary: clang_saveTranslationUnit() crashes, when saving TU
with precompiledPreamble.
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: michal.fizek at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
There is a problem, when i try to save TU, that was parsed and then
reparsed(!!) with following flags 0x14(CX_TranslationUnit_precompiledPreamble |
CX_TranslationUnit_CXXprecompiledPreamble) (it works the same also when only
first flag is set, however reparse is mandatory(im suspecting, that first parse
doesnt take into account the above mentioned flag)).
After calling clang_saveTranslationUnit() and assertion condition is met, at
the program that called this function crashes completely with SIGABRT.
Following message is written to output:
ASTWriter.cpp:3422: clang::serialization::DeclID
clang::ASTWriter::getDeclID(const clang::Decl*): Assertion `DeclIDs.find(D) !=
DeclIDs.end() && "Declaration not emitted!"' 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 Wed Dec 7 08:12:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 14:12:45 +0000
Subject: [LLVMbugs] [Bug 2712] Hello,
World in `Writing an LLVM Pass' does not work
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=2712
Roel Jordans changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |r.jordans at tue.nl
Resolution|WORKSFORME |
--- Comment #4 from Roel Jordans 2011-12-07 08:12:45 CST ---
The current version on the website still has the problem of crashing when
executed.
http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-January/037761.html
Describes how to fix this. Apparently the line
Hello() : FunctionPass(ID) {}
Should be rewritten as
Hello() : FunctionPass(&ID) {}
This is already corrected in the example included in the source code but not in
the documentation
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 11:18:20 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 17:18:20 +0000
Subject: [LLVMbugs] [Bug 11501] New: "opt -verify-each" is no longer useful
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11501
Bug #: 11501
Summary: "opt -verify-each" is no longer useful
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: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Now that opt (like everywhere else) is using PassManagerBuilder, the
-verify-each
option no longer results in the bitcode being verified after every 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 Wed Dec 7 11:26:15 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 17:26:15 +0000
Subject: [LLVMbugs] [Bug 11502] New: llvm-3.0 creates massive .ll asm file
where llvm-2.9 did not
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11502
Bug #: 11502
Summary: llvm-3.0 creates massive .ll asm file where llvm-2.9
did not
Product: new-bugs
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: luked at cs.rochester.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7684
--> http://llvm.org/bugs/attachment.cgi?id=7684
Preprocessed source that triggers bug.
We have a number of large tables of structs (lock structures) that are
statically allocated and zero initialized, as displayed in the included
preprocessed source. In llvm-2.9, using llvm-gcc, a .ll output is approximately
30k. In llvm-3.0, using clang-3.0, the .ll output is 25MB, and using
gcc-4.6.2/dragonegg-3.0 the .ll output is 75MB.
A discussion with Duncan on irc shows that this seems to be due to how llvm
choses to represent the tables a struct with lots of fields rather than a
struct with one array field. I don't know why this happens (maybe it has
something to do with how we specify the zero initialization?). A trace of the
three compilations for the preprocessed source is below.
luked at node2x6x2a ~/temp $ time
/u/luked/local/llvm-gcc4.2-2.9-x86_64-linux/bin/llvm-g++ -O0 -m64 -emit-llvm -o
preprocessed.ll -S preprocessed.cpp
real 0m0.126s
user 0m0.102s
sys 0m0.022s
luked at node2x6x2a ~/temp $ ls -l preprocessed.ll
-rw-r--r-- 1 luked people 33762 Dec 7 12:17 preprocessed.ll
luked at node2x6x2a ~/temp $ clang -v
clang version 3.0 (tags/RELEASE_30/final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
luked at node2x6x2a ~/temp $ time clang -O0 -m64 -emit-llvm -o preprocessed.ll -S
preprocessed.cpp
real 0m0.695s
user 0m0.579s
sys 0m0.115s
luked at node2x6x2a ~/temp $ ls -l preprocessed.ll
-rw-r--r-- 1 luked people 24166071 Dec 7 12:17 preprocessed.ll
luked at node2x6x2a ~/temp $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/localdisk/luked/local/gcc-4.6.2/bin/../libexec/gcc/x86_64-redhat-linux-gnu/4.6.2/lto-wrapper
Target: x86_64-redhat-linux-gnu
Configured with: ../configure --prefix=/u/luked/local/gcc-4.6.2
--enable-languages=c,c++ --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --enable-plugin --with-arch_32=i686
--host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu
--build=x86_64-redhat-linux-gnu --disable-nls --enable-checking=release
--without-ppl --without-cloog
Thread model: posix
gcc version 4.6.2 (GCC)
luked at node2x6x2a ~/temp $ time gcc -fplugin=dragonegg -O0 -m64 -flto -o
preprocessed.ll -S preprocessed.cpp
real 0m18.737s
user 0m2.698s
sys 0m16.025s
luked at node2x6x2a ~/temp $ ls -l preprocessed.ll
-rw-r--r-- 1 luked people 74496790 Dec 7 12:18 preprocessed.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 Wed Dec 7 12:03:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 18:03:00 +0000
Subject: [LLVMbugs] [Bug 2712] Hello,
World in `Writing an LLVM Pass' does not work
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=2712
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Bill Wendling 2011-12-07 12:03:00 CST ---
Updated r146041. 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 Dec 7 16:06:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 07 Dec 2011 22:06:12 +0000
Subject: [LLVMbugs] [Bug 11386] Regression(r143660): Assertion failed:
(NumLiveRegs > 0 && "NumLiveRegs is already zero!"),
function UnscheduleNodeBottomUp, file ScheduleDAGRRList.cpp,
line 825. Breaks ffmpeg build.
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11386
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Eli Friedman 2011-12-07 16:06:12 CST ---
r146083
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 18:41:50 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 00:41:50 +0000
Subject: [LLVMbugs] [Bug 11503] New: clang -isysroot doesn't work properly
on linux
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11503
Bug #: 11503
Summary: clang -isysroot doesn't work properly on linux
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Related to bug 9372, perhaps.
Clang doesn't handle -isysroot like GCC on Linux. Note how it is still allowing
/usr/include in the search list which is really bad.
--
ddunbar at ubuntu:~$ cd /tmp
ddunbar at ubuntu:/tmp$ touch x.c
ddunbar at ubuntu:/tmp$ clang -isysroot /tmp -c x.c -v
clang version 3.1 (trunk 146082)
Target: x86_64-unknown-linux-gnu
Thread model: posix
...
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/home/ddunbar/llvm.obj/Debug+Asserts/bin/../lib/clang/3.1/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
ddunbar at ubuntu:/tmp$ gcc -isysroot /tmp -c x.c -v
...
GNU C (Ubuntu/Linaro 4.6.1-9ubuntu3) version 4.6.1 (x86_64-linux-gnu)
compiled by GNU C version 4.6.1, GMP version 5.0.1, MPFR version 3.0.1-p3,
MPC version 0.9
...
ignoring nonexistent directory "/tmp/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/tmp/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/tmp/usr/include/x86_64-linux-gnu"
ignoring nonexistent directory "/tmp/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include-fixed
End of search list.
...
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 23:04:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 05:04:21 +0000
Subject: [LLVMbugs] [Bug 11493] missing unwind.h
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11493
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #1 from Rafael ?vila de Esp?ndola 2011-12-07 23:04:21 CST ---
fixed in 146140.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 23:47:22 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 05:47:22 +0000
Subject: [LLVMbugs] [Bug 11504] New: Parsing of -idirafter flag is stricter
than clang/gcc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11504
Bug #: 11504
Summary: Parsing of -idirafter flag is stricter than clang/gcc
Product: clang
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: mail at justinbogner.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Specifying -idirafer/some/path (without a space) is accepted by both gcc and
clang, but scan-build (or possibly ccc-analyzer) doesn't understand this and
misses the include path. Using "-idirafter /some/path" (with a space) works
without problems.
This probably isn't a huge deal (it took me about 30 seconds to add a space in
the Makefile), but it is a bit inconsistent.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 03:11:30 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 09:11:30 +0000
Subject: [LLVMbugs] [Bug 11505] New: Clang++ aborts when there are two
fields with the same name, one in anonymous union, in specific
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11505
Bug #: 11505
Summary: Clang++ aborts when there are two fields with the same
name, one in anonymous union, in specific
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: arkadiusz.danilecki at put.poznan.pl
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7685
--> http://llvm.org/bugs/attachment.cgi?id=7685
preprocessed source which caused crash
The code attached causes clang++ to crash. To replicate crash, exact this
structure must be made; e.g. if there is not char str[] in anonymous union,
there is no crash.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 03:18:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 09:18:31 +0000
Subject: [LLVMbugs] [Bug 11506] New: GEPSplitterPass reference
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11506
Bug #: 11506
Summary: GEPSplitterPass reference
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: arkangath at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7688
--> http://llvm.org/bugs/attachment.cgi?id=7688
Patch to remove reference to GEPSplitterPass
There is a reference to the removed GEPSplitterPass in the include headers for
llvm. It has lead me to believe that it was still in the llvm passes collection
and had me chase my tails for an undefined reference when linking.
Patch to remove reference attached (basically, delete 3 lines)
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 11:51:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 17:51:16 +0000
Subject: [LLVMbugs] [Bug 11507] New: missing optimization opportunity:
recursive inlining
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11507
Bug #: 11507
Summary: missing optimization opportunity: recursive inlining
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: s3734770 at mail.zih.tu-dresden.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7689
--> http://llvm.org/bugs/attachment.cgi?id=7689
Test case in C++
I saw a lot of std::map usage in the llvm compiler which uses lots of
operators, especially to check if the map is empty. But thinking this check is
cheap is too naive as you will see in the test case:
_ZNSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E
is called with null as the second parameter.
_ZNSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E
itself starts with a comparison of the second parameter against null. So
inlining this function can fold a lot (the test case is designed to be a
completely empty 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 Thu Dec 8 12:00:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 18:00:47 +0000
Subject: [LLVMbugs] [Bug 11508] New: __is_empty() returns 0 for empty union
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11508
Bug #: 11508
Summary: __is_empty() returns 0 for empty union
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ipapadop at cse.tamu.edu
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7691
--> http://llvm.org/bugs/attachment.cgi?id=7691
Test of __is_empty with empty union.
Calling __is_empty() with an empty union incorrectly returns false.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 15:28:41 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 21:28:41 +0000
Subject: [LLVMbugs] [Bug 11509] New: ?: with cast to void breaks build of
SelectInst
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11509
Bug #: 11509
Summary: ?: with cast to void breaks build of SelectInst
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
This testcase:
int f(void);
void test() {
f() ? (void)0 : (void)0;
}
crashes in IRGen:
nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/clang -cc1 -emit-llvm-only z.i
0 clang 0x0000000002c28ff5
1 clang 0x0000000002c28de8
2 libpthread.so.0 0x00007f46a916f8f0
3 clang 0x0000000001353dc6 llvm::Value::getType() const + 12
4 clang 0x0000000001379824
llvm::SelectInst::SelectInst(llvm::Value*, llvm::Value*, llvm::Value*,
llvm::Twine const&, llvm::Instruction*) + 62
5 clang 0x00000000013798e8 llvm::SelectInst::Create(llvm::Value*,
llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) + 84
6 clang 0x000000000137b75b llvm::IRBuilder
>::CreateSelect(llvm::Value*, llvm::Value*, llvm::Value*, llvm::Twine const&) +
205
7 clang 0x0000000001425a47
8 clang 0x0000000001427feb
9 clang 0x00000000014272fe
10 clang 0x0000000001419781
11 clang 0x00000000014263b2
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 158
12 clang 0x00000000013df5be
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 84
13 clang 0x00000000013df51d
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 139
14 clang 0x000000000147e4ff
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 401
15 clang 0x000000000147eaf1
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 299
16 clang 0x000000000147e8ac
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 234
17 clang 0x000000000147e3b9
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 75
18 clang 0x0000000001495c84
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
+ 154
19 clang 0x0000000001496105
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 831
20 clang 0x000000000132f9a2
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 908
21 clang 0x000000000132d5be
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 450
22 clang 0x000000000132d04e
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 852
23 clang 0x00000000013329c2
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 310
24 clang 0x00000000013263e9
25 clang 0x0000000001324d1f
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 163
26 clang 0x00000000014b99d8 clang::ParseAST(clang::Sema&, bool) + 440
27 clang 0x00000000011a21df clang::ASTFrontendAction::ExecuteAction()
+ 265
28 clang 0x000000000132419e clang::CodeGenAction::ExecuteAction() +
968
29 clang 0x00000000011a1e2e clang::FrontendAction::Execute() + 326
30 clang 0x000000000117c328
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 750
31 clang 0x000000000114d33c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 972
32 clang 0x000000000113ca09 cc1_main(char const**, char const**, char
const*, void*) + 999
33 clang 0x000000000114893e main + 499
34 libc.so.6 0x00007f46a8449c4d __libc_start_main + 253
35 clang 0x000000000113bca9
Stack dump:
0. Program arguments: llvm/Debug+Asserts/bin/clang -cc1 -emit-llvm-only
z.i
1. parser at end of file
2. z.i:2:6: LLVM IR generation of declaration 'test'
3. z.i:2:6: Generating code for declaration 'test'
4. z.i:2:13: LLVM IR generation of compound statement ('{}')
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 Thu Dec 8 15:56:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 21:56:07 +0000
Subject: [LLVMbugs] [Bug 11510] New: [qoi] warn about dead boolean op
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11510
Bug #: 11510
Summary: [qoi] warn about dead boolean op
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
It would be nice for us to warn on this:
--
ddunbar at lordcrumb:tmp$ cat t.c
int f0(void);
int f0(void) {
return 1 | 1;
}
ddunbar at lordcrumb:tmp$ clang -Weverything -c t.c
ddunbar at lordcrumb:tmp$
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 16:02:56 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 22:02:56 +0000
Subject: [LLVMbugs] [Bug 11509] ?: with cast to void breaks build of
SelectInst
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11509
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #2 from Eli Friedman 2011-12-08 16:02:56 CST ---
r146189, which is nearly identical to your 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 Thu Dec 8 16:08:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 22:08:31 +0000
Subject: [LLVMbugs] [Bug 11508] __is_empty() returns false for empty union
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11508
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |INVALID
--- Comment #1 from Eli Friedman 2011-12-08 16:08:31 CST ---
__is_empty is supposed to be equivalent to std::is_empty. std::is_empty always
returns false for unions.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 16:28:23 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 22:28:23 +0000
Subject: [LLVMbugs] [Bug 11506] GEPSplitterPass reference
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11506
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2011-12-08 16:28:23 CST ---
r146195.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 16:33:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 22:33:11 +0000
Subject: [LLVMbugs] [Bug 11512] New: circular dependency between
clangSerialization and clangFrontend
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11512
Bug #: 11512
Summary: circular dependency between clangSerialization and
clangFrontend
Product: Build scripts
Version: 3.0
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: cmake
AssignedTo: unassignedbugs at nondot.org
ReportedBy: fang at csl.cornell.edu
CC: llvmbugs at cs.uiuc.edu, ofv at wanadoo.es
Classification: Unclassified
Hi, I'm bootstrapping LLVM/clang on powerpc-darwin8 using gcc-4.6.2, (since
g++-4.0.1 is unsupported) and have run into a circular dependency.
tools/clang/lib/Frontend/CMakeLists.txt
lists depending on clangSerialization, however during the build of
clangSerialization.dylib
[tools/clang/lib/Serialization/CMakeLists.txt]
I get:
Linking CXX shared library ../../../../lib/libclangSerialization.dylib
cd
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/build/tools/clang/lib/Serialization
&& /Volumes/Mercedes2/sw/bin/cmake -E cmake_link_script
CMakeFiles/clangSerialization.dir/link.txt --verbose=1
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/opt-bin/ccg++-4.6
-fno-common -fPIC -fno-common -Woverloaded-virtual -Wcast-qual
-fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter
-Wwrite-strings -fno-rtti -O3 -DNDEBUG -mmacosx-version-min=10.4 -dynamiclib
-Wl,-headerpad_max_install_names -L/sw/lib -o
../../../../lib/libclangParse.dylib -install_name
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/build/lib/libclangParse.dylib
CMakeFiles/clangParse.dir/ParseAST.cpp.o
CMakeFiles/clangParse.dir/ParseCXXInlineMethods.cpp.o
CMakeFiles/clangParse.dir/ParseDecl.cpp.o
CMakeFiles/clangParse.dir/ParseDeclCXX.cpp.o
CMakeFiles/clangParse.dir/ParseExpr.cpp.o
CMakeFiles/clangParse.dir/ParseExprCXX.cpp.o
CMakeFiles/clangParse.dir/ParseInit.cpp.o
CMakeFiles/clangParse.dir/ParseObjc.cpp.o
CMakeFiles/clangParse.dir/ParsePragma.cpp.o
CMakeFiles/clangParse.dir/ParseStmt.cpp.o
CMakeFiles/clangParse.dir/ParseTemplate.cpp.o
CMakeFiles/clangParse.dir/ParseTentative.cpp.o
CMakeFiles/clangParse.dir/Parser.cpp.o ../../../../lib/libclangBasic.dylib
../../../../lib/libclangAST.dylib ../../../../lib/libclangLex.dylib
../../../../lib/libclangSema.dylib -lpthread
../../../../lib/libclangAnalysis.dylib ../../../../lib/libclangIndex.dylib
../../../../lib/libclangAST.dylib ../../../../lib/libclangLex.dylib
../../../../lib/libclangBasic.dylib ../../../../lib/libLLVMMC.dylib
../../../../lib/libLLVMObject.dylib ../../../../lib/libLLVMCore.dylib
../../../../lib/libLLVMSupport.dylib -lpthread
/usr/bin/ld: Undefined symbols:
clang::NormalizeDashIncludePath(llvm::StringRef, clang::FileManager&)
clang::CompilerInstance::createSema(clang::TranslationUnitKind,
clang::CodeCompleteConsumer*)
clang::CompilerInstance::setInvocation(clang::CompilerInvocation*)
clang::CompilerInstance::setASTConsumer(clang::ASTConsumer*)
clang::CompilerInstance::setDiagnostics(clang::DiagnosticsEngine*)
clang::CompilerInstance::createASTContext()
clang::CompilerInstance::createFileManager()
clang::CompilerInstance::createPreprocessor()
clang::CompilerInstance::createSourceManager(clang::FileManager&)
clang::CompilerInstance::InitializeSourceManager(llvm::StringRef)
clang::CompilerInstance::setTarget(clang::TargetInfo*)
clang::CompilerInstance::CompilerInstance()
clang::TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream&,
clang::DiagnosticOptions const&, bool)
clang::ParseAST(clang::Sema&, bool)
collect2: ld returned 1 exit status
make[2]: *** [lib/libclangSerialization.dylib] Error 1
whose undefined symbols are defined in clangFrontend.
This work is going towards a fink package for llvm on OS X 10.4:
http://fink.cvs.sf.net/viewvc/fink/experimental/fangism/finkinfo/llvm30.info?view=log
I've already made a few cmake file modifications to get this far, seen in the
PatchScript entry of llvm30.info.
cmake options:
-DLLVM_BUILD_32_BITS:BOOL=ON
-DLLVM_TARGETS_TO_BUILD=PowerPC
-DBUILD_SHARED_LIBS:BOOL=ON
-DCMAKE_C_FLAGS=-fno-common
-DCMAKE_CXX_FLAGS=-fno-common
-fno-common was needed for building of dylibs. (Might be orthogonal issue.)
This issue was also raised on the cfe-dev mailing list:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-November/018755.html
Any suggestions for unraveling the circular dependency?
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 17:02:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 23:02:12 +0000
Subject: [LLVMbugs] [Bug 11513] New: MC select different relocation from gas
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11513
Bug #: 11513
Summary: MC select different relocation from gas
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
For
1: subl _GLOBAL_OFFSET_TABLE_-1b(%edx),%ebx
in 32 bits, MC produces a R_386_PC32 and gas produces R_386_GOTPC.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 17:50:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 08 Dec 2011 23:50:49 +0000
Subject: [LLVMbugs] [Bug 11514] New: Illegal DAG optimization for SHL of any
extended value
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11514
Bug #: 11514
Summary: Illegal DAG optimization for SHL of any extended value
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hfinkel at anl.gov
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7693
--> http://llvm.org/bugs/attachment.cgi?id=7693
Failing input
%call = tail call i32 bitcast (i32 (...)* @__bswap32_var to i32 (i32)*)(i32 0)
nounwind
%0 = zext i32 %call to i64
%1 = shl nuw i64 %0, 32
is transformed to:
0x2485770: ch,glue = callseq_end 0x2485470, 0x2483350, 0x2485670, 0x2485570
[ORD=2]
0x2485970: i32,ch,glue = CopyFromReg 0x2485770, 0x2485870, 0x2485770:1 [ORD=2]
0x2485a70: i64 = zero_extend 0x2485970 [ORD=4]
0x2485c70: i32 = Constant<32> [ORD=5]
0x2485d70: i64 = shl 0x2485a70, 0x2485c70 [ORD=5]
which becomes:
0x3c278d0: i32,ch,glue = CopyFromReg 0x3c276d0, 0x3c277d0, 0x3c276d0:1 [ORD=2]
0x3c24fb0: i64 = any_extend 0x3c278d0
0x3c27bd0: i32 = Constant<32> [ORD=5]
0x3c27cd0: i64 = shl 0x3c24fb0, 0x3c27bd0 [ORD=5]
which becomes:
0x2485770: ch,glue = callseq_end 0x2485470, 0x2483350, 0x2485670, 0x2485570
[ORD=2] [ID=21]
0x2485970: i32,ch,glue = CopyFromReg 0x2485770, 0x2485870, 0x2485770:1 [ORD=2]
[ID=22]
0x2485c70: i32 = Constant<32> [ORD=5] [ID=9]
0x2486170: i32 = shl 0x2485970, 0x2485c70
0x2485a70: i64 = any_extend 0x2486170
but this transformation is not legal because the 32-bit shift cannot shift by
32 bits (31 is the maximum). The original 64-bit shift would have been fine,
but for some reason the shift was demoted from a 64-bit shift to a 32-bit
shift.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 19:16:44 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 01:16:44 +0000
Subject: [LLVMbugs] [Bug 11514] Illegal DAG optimization for SHL of any
extended value
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11514
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2011-12-08 19:16:44 CST ---
r146219; please double-check that the codegen 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 Thu Dec 8 19:56:28 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 01:56:28 +0000
Subject: [LLVMbugs] [Bug 11512] circular dependency between
clangSerialization and clangFrontend
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11512
Chandler Carruth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chandler Carruth 2011-12-08 19:56:28 CST ---
I was mis-remembering, this is a *long* standing layering violation in Clang.
I've fixed it in a series of commits leading up to r146233.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 20:45:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 02:45:46 +0000
Subject: [LLVMbugs] [Bug 11515] New: incorrect access checking for friends
of friends
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11515
Bug #: 11515
Summary: incorrect access checking for friends of friends
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang allows this:
class A {
int n;
friend struct B;
};
struct B {
friend int get(A &a) {
return a.n;
}
};
It should 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 Thu Dec 8 21:06:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 03:06:16 +0000
Subject: [LLVMbugs] [Bug 11513] MC select different relocation from gas
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11513
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Rafael ?vila de Esp?ndola 2011-12-08 21:06:16 CST ---
Fixed in 146238.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 21:21:22 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 03:21:22 +0000
Subject: [LLVMbugs] [Bug 11516] New: Wrong alignment for variable of a
reference type (e.g. char &foo)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11516
Bug #: 11516
Summary: Wrong alignment for variable of a reference type (e.g.
char &foo)
Product: clang
Version: 3.0
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pickensd at synopsys.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Look at the bitcode generated from the following function:
int eq(const char &c1, const char &c2) {
return c1 < c2;
}
You'll see that the dereference of c1 and c2 are incorrectly aligned to 4
instead of 1. This causes misaligned loads to be generated for some loop
transformations involving char pointers.
define i32 @_Z2eqRKcS0_(i8* %c1, i8* %c2) nounwind {
entry:
%c1.addr = alloca i8*, align 4
%c2.addr = alloca i8*, align 4
store i8* %c1, i8** %c1.addr, align 4
store i8* %c2, i8** %c2.addr, align 4
%0 = load i8** %c1.addr
%1 = load i8* %0, align 4 <-------------------WRONG!
%conv = zext i8 %1 to i32
%2 = load i8** %c2.addr
%3 = load i8* %2, align 4 <-------------------WRONG!
%conv1 = zext i8 %3 to i32
%cmp = icmp slt i32 %conv, %conv1
%conv2 = zext i1 %cmp to i32
ret i32 %conv2
}
Here is a proposed fix in module clang/lib/CodeGen/CGExpr.cpp, function
CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) :
Change this:
if (VD->getType()->isReferenceType())
V = Builder.CreateLoad(V);
To this:
if (VD->getType()->isReferenceType()) {
V = Builder.CreateLoad(V);
// Alignment is now that of referenced type!
QualType refee = VD->getType()->getPointeeType();
Alignment = getContext().getTypeAlignInChars(refee).getQuantity();
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 21:32:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 03:32:12 +0000
Subject: [LLVMbugs] [Bug 11498] llvm::InitializeNativeTargetAsmParser() is
broken
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11498
Chandler Carruth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chandler Carruth 2011-12-08 21:32:12 CST ---
Thanks for the report and the patch! Applied in r146239.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 21:38:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 03:38:47 +0000
Subject: [LLVMbugs] [Bug 11516] Wrong alignment for variable of a reference
type (e.g. char &foo)
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11516
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |DUPLICATE
--- Comment #1 from Eli Friedman 2011-12-08 21:38:47 CST ---
*** This bug has been marked as a duplicate of bug 11376 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 21:39:51 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 03:39:51 +0000
Subject: [LLVMbugs] [Bug 11517] New: Missing aggregate va_arg for SPARC
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11517
Bug #: 11517
Summary: Missing aggregate va_arg for SPARC
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: joerg at NetBSD.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7694
--> http://llvm.org/bugs/attachment.cgi?id=7694
Test case for aggregate va_arg usage.
Aggregate types are not supported for SPARC. Example is 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 Fri Dec 9 02:12:30 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 08:12:30 +0000
Subject: [LLVMbugs] [Bug 11518] New: clang frontend cmd SEGV after "cannot
compile this conditional operator yet"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11518
Bug #: 11518
Summary: clang frontend cmd SEGV after "cannot compile this
conditional operator yet"
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mnemo at minimum.se
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7695
--> http://llvm.org/bugs/attachment.cgi?id=7695
TC for the uncompilable conditional (doesn't hit SEGV though)
Unfortunately, I'm not allowed to paste the exact error, but it looks similar
to this:
blaH.h:1974:50: error: cannot compile this conditional operator yet
void SomeFunc(BOOL value) { value ? thing.field = 1
: thing.field = 0; }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/SOME-FILENAME-lCCbJS.ii
make[2]: *** [../../blah/blah/file.o] Error 254
0 clang 0x000000000182c0cf
1 clang 0x000000000182c559
2 libpthread.so.0 0x00002b42ea8c3c60
3 clang 0x00000000015ddd3b
4 clang 0x00000000015dd6ca
5 clang 0x000000000179ceef
llvm::FPPassManager::runOnFunction(llvm::Function&) + 335
6 clang 0x000000000179c90c
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 428
7 clang 0x000000000179c72b
llvm::FunctionPassManager::run(llvm::Function&) + 139
8 clang 0x00000000007a18dc
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4636
9 clang 0x000000000079fee2
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 274
10 clang 0x000000000089b153 clang::ParseAST(clang::Sema&, bool) + 403
11 clang 0x000000000079f3e2 clang::CodeGenAction::ExecuteAction() +
738
12 clang 0x0000000000689259
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 873
13 clang 0x0000000000674c5a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2714
14 clang 0x000000000066d176 cc1_main(char const**, char const**, char
const*, void*) + 6182
15 clang 0x00000000006710dc main + 748
16 libc.so.6 0x00002b42eb497eff __libc_start_main + 255
17 clang 0x000000000066b889
Stack dump:
0. Program arguments: /home/autobuilder/src/llvm/llvm/Release/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free
-disable-llvm-verifier ... lots of source filenames and switches etc here ...
1. parser at end of file
2. Per-function optimization
3. Running pass 'Simplify the CFG' on function
'@_ZN12HTML_Element26SetHasRealSizeDependentCssEi'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/SOMETHING-qIPDL4.ii
I also make a small TC that can repro the "cannot compile this conditional
operator yet" part, but my small TC doesn't hit the SEGV it seems.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 05:08:03 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 11:08:03 +0000
Subject: [LLVMbugs] [Bug 11519] New: "GEP is not of right type for indices!"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11519
Bug #: 11519
Summary: "GEP is not of right type for indices!"
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-link
AssignedTo: unassignedbugs at nondot.org
ReportedBy: max at duempel.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Got the "GEP is not of right type for indices!" while trying to link all .bc
files of a large project (C and C++ compiled with clang).
GEP is not of right type for indices!
%d_stream = getelementptr inbounds %bar* %fp, i64 0, i32 0
i32Broken module found, compilation aborted!
[...]
Stack dump:
0. Program arguments: llvm-link -o /tmp/foo.bc /tmp/bz.ll /tmp/bar.ll
1. Running pass 'Function Pass Manager' on module '/tmp/bz.ll'.
2. Running pass 'Module Verifier' on function '@bug_a'
Aborted
I don't understand the error message, but I've experimented with reducing the
test case to a few lines of LLVM assembly:
first file:
%struct.bug_type = type opaque
declare i32 @bug_a(%struct.bug_type*)
declare i32 @bug_b(%struct.bug_type*)
second file:
%struct.bug_type = type { %struct.bug_type* }
%bar = type { i32 }
define i32 @bug_a(%struct.bug_type* %fp) nounwind uwtable {
entry:
%d_stream = getelementptr inbounds %struct.bug_type* %fp, i64 0, i32 0
ret i32 0
}
define i32 @bug_b(%bar* %a) nounwind uwtable {
entry:
ret i32 0
}
Command to reproduce: llvm-link -o foo.bc first.ll second.ll
The type mismatch is intentional, it may or may not have been in my original
clang-generated bitcode files, I didn't check; the point is that this error is
not noticed, instead it complains about the function bug_a that is (or seems)
correct!
The problem disappears when any detail is changed in the file, and it
disappears when the reverse argument order in the llvm-link command is used.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 06:48:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 12:48:31 +0000
Subject: [LLVMbugs] [Bug 11520] New: clang crash while building mimosa
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11520
Bug #: 11520
Summary: clang crash while building mimosa
Product: clang
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bique.alexandre at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Hi,
I tried clang 3.0 to compile mimosa (https://github.com/abique/mimosa) at
revision ac298032a910fc94f5f8b39495cd4dd1f7554205.
I got the following error:
make
[ 1%] Built target mimosa-options
[ 4%] Built target mimosa-runtime
[ 6%] Built target mimosa
[ 10%] Built target mimosa-log
[ 15%] Built target mimosa-uri
[ 31%] Built target mimosa-stream
[ 33%] Building CXX object mimosa/net/CMakeFiles/mimosa-net.dir/server.cc.o
0 libLLVM-3.0.so 0x00007f9836c7383f
1 libLLVM-3.0.so 0x00007f9836c73e01
2 libpthread.so.0 0x00007f9835dee850
3 clang 0x0000000000d3dcce
clang::Expr::hasAnyTypeDependentArguments(clang::Expr**, unsigned int) + 14
4 clang 0x000000000096e7ef
clang::Sema::BuildCXXTypeConstructExpr(clang::TypeSourceInfo*,
clang::SourceLocation, clang::ASTMultiPtr, clang::SourceLocation)
+ 239
5 clang 0x000000000096ed24
clang::Sema::ActOnCXXTypeConstructExpr(clang::OpaquePtr,
clang::SourceLocation, clang::ASTMultiPtr, clang::SourceLocation)
+ 84
6 clang 0x0000000000834a3a
clang::Parser::ParseCXXTypeConstructExpression(clang::DeclSpec const&) + 666
7 clang 0x000000000082d381 clang::Parser::ParseCastExpression(bool,
bool, bool&, bool) + 7361
8 clang 0x000000000082dfde clang::Parser::ParseCastExpression(bool,
bool, bool) + 30
9 clang 0x000000000082e8cf
clang::Parser::ParseAssignmentExpression() + 31
10 clang 0x000000000082f699 clang::Parser::ParseExpression() + 9
11 clang 0x00000000007f1ca2
clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 50
12 clang 0x00000000007ee4c8
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2616
13 clang 0x00000000007f22e6
clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 758
14 clang 0x00000000007ee4dd
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2637
15 clang 0x00000000007eb0c1
clang::Parser::ParseCompoundStatementBody(bool) + 417
16 clang 0x00000000007ebea6
clang::Parser::ParseCompoundStatement(clang::ParsedAttributes&, bool, unsigned
int) + 38
17 clang 0x00000000007ebee1
clang::Parser::ParseCompoundStatement(clang::ParsedAttributes&, bool) + 17
18 clang 0x00000000007ee4f7
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2663
19 clang 0x00000000007f22e6
clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 758
20 clang 0x00000000007ee4dd
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2637
21 clang 0x00000000007eb0c1
clang::Parser::ParseCompoundStatementBody(bool) + 417
22 clang 0x00000000007ebdaa
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 138
23 clang 0x000000000080589c
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 1116
24 clang 0x0000000000813212
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 610
25 clang 0x0000000000801485
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 149
26 clang 0x0000000000801af6
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 678
27 clang 0x00000000008036bd
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2685
28 clang 0x0000000000821c8f
clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 367
29 clang 0x00000000008229de clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1854
30 clang 0x0000000000818311
clang::Parser::ParseDeclaration(clang::ASTOwningVector&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 641
31 clang 0x000000000080304d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1037
32 clang 0x0000000000821c8f
clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 367
33 clang 0x00000000008229de clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1854
34 clang 0x0000000000818311
clang::Parser::ParseDeclaration(clang::ASTOwningVector&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 641
35 clang 0x000000000080304d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1037
36 clang 0x0000000000803c27
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 167
37 clang 0x00000000007db1fd clang::ParseAST(clang::Sema&, bool) + 269
38 clang 0x00000000006c3e13 clang::CodeGenAction::ExecuteAction() +
51
39 clang 0x00000000005c9c3f
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 319
40 clang 0x00000000005b251a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1114
41 clang 0x00000000005aa1a4 cc1_main(char const**, char const**, char
const*, void*) + 820
42 clang 0x00000000005a8b1c main + 620
43 libc.so.6 0x00007f983555e14d __libc_start_main + 237
44 clang 0x00000000005a9d19
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
server.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.22.0.20111201 -momit-leaf-frame-pointer -coverage-file
CMakeFiles/mimosa-net.dir/server.cc.o -resource-dir /usr/bin/../lib/clang/3.0
-D _GNU_SOURCE -D _LARGEFILE64_SOURCE -I /home/abique/develop/mimosa/.
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2
-internal-isystem
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include -Wall
-Wextra -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 239
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/mimosa-net.dir/server.cc.o -x c++
/home/abique/develop/mimosa/mimosa/net/server.cc
1. /home/abique/develop/mimosa/mimosa/net/server.cc:115:15: current parser
token '.'
2. /home/abique/develop/mimosa/mimosa/net/server.cc:12:1: parsing namespace
'mimosa'
3. /home/abique/develop/mimosa/mimosa/net/server.cc:14:3: parsing namespace
'net'
4. /home/abique/develop/mimosa/mimosa/net/server.cc:107:5: parsing function
body 'serveOne'
5. /home/abique/develop/mimosa/mimosa/net/server.cc:107:5: in compound
statement ('{}')
6. /home/abique/develop/mimosa/mimosa/net/server.cc:110:7: in compound
statement ('{}')
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/server-R9faDr.ii
make[2]: *** [mimosa/net/CMakeFiles/mimosa-net.dir/server.cc.o] Error 254
make[1]: *** [mimosa/net/CMakeFiles/mimosa-net.dir/all] Error 2
make: *** [all] Error 2
Thanks for you attention.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 09:08:10 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 15:08:10 +0000
Subject: [LLVMbugs] [Bug 11521] New: order of static constructors wrong
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11521
Bug #: 11521
Summary: order of static constructors wrong
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ich at az2000.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
In the example [here](https://gist.github.com/1451848), I would expect that the
constructor of `rnd` is called first and then the function `_rand_engine__init`
(via `__attribute__((constructor))`).
However, from the output, I can see that this is not the case.
I'm not exactly sure wether this is really a bug or if the doc leaves this
undefined. However, from the GCC docs (summarized
[here](http://stackoverflow.com/a/8433525/133374)), it seems that my expected
behavior should have been the 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 Fri Dec 9 09:29:38 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 15:29:38 +0000
Subject: [LLVMbugs] [Bug 11521] order of static constructors wrong
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11521
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |asl at math.spbu.ru
Resolution| |DUPLICATE
--- Comment #2 from Anton Korobeynikov 2011-12-09 09:29:38 CST ---
*** This bug has been marked as a duplicate of bug 5323 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 09:30:33 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 15:30:33 +0000
Subject: [LLVMbugs] [Bug 11522] New: Clang hangs in infinite loop
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11522
Bug #: 11522
Summary: Clang hangs in infinite loop
Product: clang
Version: 3.0
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: arne-llvm at rfc2549.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7698
--> http://llvm.org/bugs/attachment.cgi?id=7698
test case which triggers the bug
clang -v
Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.2.0
Thread model: posix
When compiling the attached test.cpp with:
clang++ -I/opt/local/include test.cpp
clang++ consumes multiple gigabytes of memory. Note that um_nodes(g) is a
mispelled variant of num_nodes(g) of boost. The opt/local/include directory
contains a boost 1.48 installation (macports)
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 09:36:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 15:36:08 +0000
Subject: [LLVMbugs] [Bug 11523] New: Arrays of pointers to data members are
not zero-initialized correctly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11523
Bug #: 11523
Summary: Arrays of pointers to data members are not
zero-initialized correctly
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: shatrov at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7699
--> http://llvm.org/bugs/attachment.cgi?id=7699
test case
Elements of arrays of pointers to data members should be set to "-1" when such
arrays are zero-initialized, as Itanium C++ ABI requires. But they are
initialized to 0 by clang. See the attached test case.
A possible fix is also attached. I didn't compile and test it, but it
highlights the relevant place in the source 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 Fri Dec 9 10:20:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 16:20:11 +0000
Subject: [LLVMbugs] [Bug 2712] Hello,
World in `Writing an LLVM Pass' does not work
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=2712
Roel Jordans changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #6 from Roel Jordans 2011-12-09 10:20:11 CST ---
I am sorry to bother you again but I was testing the example code on an older
version of LLVM.
The current trunk version apparently requires the example code without the
added &
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 11:34:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 17:34:00 +0000
Subject: [LLVMbugs] [Bug 11525] New: Segmentation fault on simple C99 source
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11525
Bug #: 11525
Summary: Segmentation fault on simple C99 source
Product: clang
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mike.bakhterev at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When compiling simple source:
$ cat test.c
typedef double eltype;
eltype matat(
const eltype araw[],
const unsigned m,
const unsigned i,
const unsigned j,
const unsigned tc)
{
return ((const eltype (*const)[m])araw)[i][j];
}
I get:
$ clang -v -flto -O4 test.c
clang version 2.9 (tags/RELEASE_29/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
"/usr/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc
-disable-free -disable-llvm-verifier -main-file-name test.c -mrelocation-model
static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.21.1.20110627
-momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/2.9 -O3
-ferror-limit 19 -fmessage-length 0 -fgnu-runtime -fdiagnostics-show-option -o
/tmp/cc-I7y2Ut.o -x c test.c
clang -cc1 version 2.9 based upon llvm 2.9 hosted on x86_64-unknown-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/bin/../lib/clang/2.9/include
/usr/include
End of search list.
0 libLLVM-2.9.so 0x00007f002f004a0f
1 libLLVM-2.9.so 0x00007f002f004fd1
2 libpthread.so.0 0x00007f002e959850
3 libLLVM-2.9.so 0x00007f002f1bddd0
4 libLLVM-2.9.so 0x00007f002f1c47b6
llvm::SimplifyInstruction(llvm::Instruction*, llvm::TargetData const*,
llvm::DominatorTree const*) + 342
5 libLLVM-2.9.so 0x00007f002ef26fed
6 libLLVM-2.9.so 0x00007f002ef2967d
7 libLLVM-2.9.so 0x00007f002f4f0e55
llvm::FPPassManager::runOnFunction(llvm::Function&) + 501
8 libLLVM-2.9.so 0x00007f002f4f0fb1
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 97
9 libLLVM-2.9.so 0x00007f002f4f1091
llvm::FunctionPassManager::run(llvm::Function&) + 97
10 clang 0x0000000000613cce
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 3918
11 clang 0x0000000000611d0e
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 238
12 clang 0x000000000071ae2b clang::ParseAST(clang::Sema&, bool) + 251
13 clang 0x0000000000610c03 clang::CodeGenAction::ExecuteAction() +
51
14 clang 0x000000000054393b
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 283
15 clang 0x000000000052987b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 971
16 clang 0x0000000000521d37 cc1_main(char const**, char const**, char
const*, void*) + 727
17 clang 0x00000000005208ba main + 634
18 libc.so.6 0x00007f002e0c317d __libc_start_main + 237
19 clang 0x0000000000521905
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu
-emit-llvm-bc -disable-free -disable-llvm-verifier -main-file-name test.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1.20110627
-momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/2.9 -O3
-ferror-limit 19 -fmessage-length 0 -fgnu-runtime -fdiagnostics-show-option -o
/tmp/cc-I7y2Ut.o -x c test.c
1. parser at end of file
2. Per-function optimization
3. Running pass 'Early CSE' on function '@matat'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Dec 9 12:49:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 18:49:47 +0000
Subject: [LLVMbugs] [Bug 10071] Assertion in clang codegen
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10071
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Anton Korobeynikov 2011-12-09 12:49:47 CST ---
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 Fri Dec 9 13:11:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 19:11:21 +0000
Subject: [LLVMbugs] [Bug 2712] Hello,
World in `Writing an LLVM Pass' does not work
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=2712
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #7 from Bill Wendling 2011-12-09 13:11:21 CST ---
Ah! Okay. Thanks for noticing. I reverted the patch.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 13:11:42 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 19:11:42 +0000
Subject: [LLVMbugs] [Bug 2712] Hello,
World in `Writing an LLVM Pass' does not work
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=2712
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Dec 9 13:34:23 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 19:34:23 +0000
Subject: [LLVMbugs] [Bug 11526] New: Assertion in
ARMTargetLowering::LowerBUILD_VECTOR()
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11526
Bug #: 11526
Summary: Assertion in ARMTargetLowering::LowerBUILD_VECTOR()
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7702
--> http://llvm.org/bugs/attachment.cgi?id=7702
Testcase
Consider the attached .ll file.
I'm having:
$ ./llc 2.ll
Assertion failed: (isa(Val) && "cast() argument of incompatible type!"),
function cast, file
/Users/asl/Projects/llvm/src/include/llvm/Support/Casting.h, line 194.
0 llc 0x000000010ab74442 _ZL15PrintStackTracePv + 34
1 llc 0x000000010ab74a29 _ZL13SignalHandleri + 745
2 libsystem_c.dylib 0x00007fff8cc54cfa _sigtramp + 26
3 libsystem_c.dylib 000000000000000000 _sigtramp + 18446603338154423072
4 llc 0x000000010ab74696 abort + 22
5 llc 0x000000010ab74658 __assert_rtn + 56
6 llc 0x000000010a569050
llvm::ARMTargetLowering::LowerBUILD_VECTOR(llvm::SDValue, llvm::SelectionDAG&,
llvm::ARMSubtarget const*) const + 4112
7 llc 0x000000010a56e9b3
llvm::ARMTargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&)
const + 7971
8 llc 0x000000010a60c34e (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*) + 3710
9 llc 0x000000010a60b3aa llvm::SelectionDAG::Legalize() + 378
10 llc 0x000000010a71760d
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 3229
11 llc 0x000000010a7148c3
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 291
12 llc 0x000000010a713c4e
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1006
13 llc 0x000000010a81564c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 60
14 llc 0x000000010ab1323d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 349
15 llc 0x000000010ab134cb
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
16 llc 0x000000010ab13606
llvm::MPPassManager::runOnModule(llvm::Module&) + 262
17 llc 0x000000010ab13c32
llvm::PassManagerImpl::run(llvm::Module&) + 338
18 llc 0x000000010ab1418d llvm::PassManager::run(llvm::Module&) +
13
19 llc 0x000000010a349cc3 main + 5251
20 llc 0x000000010a348834 start + 52
21 llc 0x0000000000000002 start + 18446744069243369474
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 15:56:04 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 21:56:04 +0000
Subject: [LLVMbugs] [Bug 11512] circular dependency between
clangSerialization and clangFrontend
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11512
David Fang changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #3 from David Fang 2011-12-09 15:56:04 CST ---
Thanks for the upstream fix, will check it out from svn some time in the
future.
FWIW, the suggested workaround of lumping all of clangSerialization's objects
into clangFrontend (not the other way around) and propagating up the dependency
chain seems to have worked and gotten me pretty far.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 16:09:33 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 22:09:33 +0000
Subject: [LLVMbugs] [Bug 11512] circular dependency between
clangSerialization and clangFrontend
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11512
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Dec 9 16:56:35 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 22:56:35 +0000
Subject: [LLVMbugs] [Bug 11527] New: find-cycles.pl finds cyclic
dependencies among LLVM libs
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11527
Bug #: 11527
Summary: find-cycles.pl finds cyclic dependencies among LLVM
libs
Product: new-bugs
Version: 3.0
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: fang at csl.cornell.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In the process of bootstrapping llvm/clang-3.0 [release] with gcc-4.6.2 (after
having worked around bug 11512), build fails in llvm-config on find-cycles.pl.
Can anyone spot what's wrong? Where should there NOT be a dependency edge?
% cat LibDeps.txt | awk '{print $0; print "";}'
libLLVMAnalysis.dylib: libLLVMAsmPrinter.dylib libLLVMCodeGen.dylib
libLLVMCore.dylib libLLVMInstCombine.dylib libLLVMInstrumentation.dylib
libLLVMScalarOpts.dylib libLLVMSelectionDAG.dylib libLLVMSupport.dylib
libLLVMTableGen.dylib libLLVMTarget.dylib libLLVMTransformUtils.dylib
libLLVMipa.dylib libLLVMipo.dylib
libLLVMArchive.dylib: libLLVMBitReader.dylib libLLVMCore.dylib
libLLVMMCDisassembler.dylib libLLVMSupport.dylib libLLVMTableGen.dylib
libLLVMAsmParser.dylib: libLLVMCore.dylib libLLVMSupport.dylib
libLLVMAsmPrinter.dylib: libLLVMAnalysis.dylib libLLVMCodeGen.dylib
libLLVMCore.dylib libLLVMInstrumentation.dylib libLLVMMC.dylib
libLLVMMCParser.dylib libLLVMSupport.dylib libLLVMTableGen.dylib
libLLVMTarget.dylib libLLVMTransformUtils.dylib libLLVMipo.dylib
libLLVMBitReader.dylib: libLLVMCore.dylib libLLVMSupport.dylib
libLLVMBitWriter.dylib: libLLVMCore.dylib libLLVMSupport.dylib
libLLVMCodeGen.dylib: libLLVMAnalysis.dylib libLLVMCore.dylib libLLVMJIT.dylib
libLLVMMC.dylib libLLVMObject.dylib libLLVMPowerPCCodeGen.dylib
libLLVMScalarOpts.dylib libLLVMSelectionDAG.dylib libLLVMSupport.dylib
libLLVMTableGen.dylib libLLVMTarget.dylib libLLVMTransformUtils.dylib
libLLVMipa.dylib libLLVMipo.dylib
libLLVMCore.dylib: libLLVMSelectionDAG.dylib libLLVMSupport.dylib
libLLVMTableGen.dylib libLLVMTarget.dylib libLLVMTransformUtils.dylib
libLLVMipo.dylib
libLLVMDebugInfo.dylib: libLLVMMC.dylib libLLVMSupport.dylib
libLLVMExecutionEngine.dylib: libLLVMCore.dylib libLLVMMC.dylib
libLLVMSupport.dylib libLLVMTarget.dylib
libLLVMInstCombine.dylib: libLLVMAnalysis.dylib libLLVMCore.dylib
libLLVMScalarOpts.dylib libLLVMSelectionDAG.dylib libLLVMSupport.dylib
libLLVMTarget.dylib libLLVMTransformUtils.dylib libLLVMipo.dylib
libLLVMInstrumentation.dylib: libLLVMAnalysis.dylib libLLVMCore.dylib
libLLVMSupport.dylib libLLVMTransformUtils.dylib libLLVMipo.dylib
libLLVMInterpreter.dylib: libLLVMCodeGen.dylib libLLVMCore.dylib
libLLVMExecutionEngine.dylib libLLVMSupport.dylib libLLVMTarget.dylib
libLLVMJIT.dylib: libLLVMCodeGen.dylib libLLVMCore.dylib
libLLVMExecutionEngine.dylib libLLVMMC.dylib libLLVMSupport.dylib
libLLVMTarget.dylib
libLLVMLinker.dylib: libLLVMArchive.dylib libLLVMBitReader.dylib
libLLVMCore.dylib libLLVMSupport.dylib libLLVMTableGen.dylib
libLLVMTransformUtils.dylib
libLLVMMC.dylib: libLLVMPowerPCDesc.dylib libLLVMSupport.dylib
libLLVMTableGen.dylib libLLVMTransformUtils.dylib
libLLVMMCDisassembler.dylib: libLLVMMC.dylib libLLVMMCParser.dylib
libLLVMPowerPCDesc.dylib libLLVMPowerPCInfo.dylib libLLVMSupport.dylib
libLLVMMCJIT.dylib: libLLVMCore.dylib libLLVMExecutionEngine.dylib
libLLVMRuntimeDyld.dylib libLLVMSupport.dylib libLLVMTarget.dylib
libLLVMMCParser.dylib: libLLVMMC.dylib libLLVMSupport.dylib
libLLVMObject.dylib: libLLVMSupport.dylib libLLVMTableGen.dylib
libLLVMPowerPCAsmPrinter.dylib: libLLVMMC.dylib libLLVMSupport.dylib
libLLVMPowerPCCodeGen.dylib: libLLVMAnalysis.dylib libLLVMAsmPrinter.dylib
libLLVMCodeGen.dylib libLLVMCore.dylib libLLVMMC.dylib
libLLVMPowerPCAsmPrinter.dylib libLLVMPowerPCDesc.dylib
libLLVMPowerPCInfo.dylib libLLVMSelectionDAG.dylib libLLVMSupport.dylib
libLLVMTarget.dylib libLLVMTransformUtils.dylib libLLVMipo.dylib
libLLVMPowerPCDesc.dylib: libLLVMMC.dylib libLLVMPowerPCAsmPrinter.dylib
libLLVMPowerPCInfo.dylib libLLVMSupport.dylib
libLLVMPowerPCInfo.dylib: libLLVMMC.dylib libLLVMSupport.dylib
libLLVMRuntimeDyld.dylib: libLLVMObject.dylib libLLVMSupport.dylib
libLLVMScalarOpts.dylib: libLLVMAnalysis.dylib libLLVMCore.dylib
libLLVMInstCombine.dylib libLLVMSelectionDAG.dylib libLLVMSupport.dylib
libLLVMTarget.dylib libLLVMTransformUtils.dylib libLLVMipa.dylib
libLLVMipo.dylib
libLLVMSelectionDAG.dylib: libLLVMAnalysis.dylib libLLVMCodeGen.dylib
libLLVMCore.dylib libLLVMMC.dylib libLLVMSupport.dylib libLLVMTableGen.dylib
libLLVMTarget.dylib libLLVMTransformUtils.dylib libLLVMipa.dylib
libLLVMipo.dylib
libLLVMSupport.dylib: libLLVMTableGen.dylib libLLVMTransformUtils.dylib
libLLVMipo.dylib
libLLVMTableGen.dylib: libLLVMSupport.dylib libLLVMipo.dylib
libLLVMTarget.dylib: libLLVMCore.dylib libLLVMMC.dylib libLLVMSupport.dylib
libLLVMipo.dylib
libLLVMTransformUtils.dylib: libLLVMAnalysis.dylib libLLVMCore.dylib
libLLVMSupport.dylib libLLVMTarget.dylib libLLVMipa.dylib libLLVMipo.dylib
libLLVMipa.dylib: libLLVMAnalysis.dylib libLLVMCore.dylib libLLVMSupport.dylib
libLLVMipo.dylib
libLLVMipo.dylib: libLLVMAnalysis.dylib libLLVMCore.dylib
libLLVMInstCombine.dylib libLLVMScalarOpts.dylib libLLVMSupport.dylib
libLLVMTarget.dylib libLLVMTransformUtils.dylib libLLVMipa.dylib
% cat FinalLibDeps.txt.tmp | awk '{print $0; print "";}'
libLLVMAnalysis.dylib libLLVMAsmPrinter.dylib libLLVMCodeGen.dylib
libLLVMCore.dylib libLLVMInstCombine.dylib libLLVMInstrumentation.dylib
libLLVMJIT.dylib libLLVMMC.dylib libLLVMPowerPCAsmPrinter.dylib
libLLVMPowerPCCodeGen.dylib libLLVMPowerPCDesc.dylib libLLVMPowerPCInfo.dylib
libLLVMScalarOpts.dylib libLLVMSelectionDAG.dylib libLLVMSupport.dylib
libLLVMTableGen.dylib libLLVMTarget.dylib libLLVMTransformUtils.dylib
libLLVMipa.dylib libLLVMipo.dylib libLLVMAnalysis.dylib libLLVMAsmPrinter.dylib
libLLVMCodeGen.dylib libLLVMCore.dylib libLLVMInstCombine.dylib
libLLVMInstrumentation.dylib libLLVMJIT.dylib libLLVMMC.dylib
libLLVMPowerPCAsmPrinter.dylib libLLVMPowerPCCodeGen.dylib
libLLVMPowerPCDesc.dylib libLLVMPowerPCInfo.dylib libLLVMScalarOpts.dylib
libLLVMSelectionDAG.dylib libLLVMSupport.dylib libLLVMTableGen.dylib
libLLVMTarget.dylib libLLVMTransformUtils.dylib libLLVMipa.dylib
libLLVMipo.dylib: libLLVMExecutionEngine.dylib libLLVMMCParser.dylib
libLLVMObject.dylib
libLLVMArchive.dylib: libLLVMBitReader.dylib libLLVMCore.dylib
libLLVMMCDisassembler.dylib libLLVMSupport.dylib libLLVMTableGen.dylib
libLLVMAsmParser.dylib: libLLVMCore.dylib libLLVMSupport.dylib
libLLVMBitReader.dylib: libLLVMCore.dylib libLLVMSupport.dylib
libLLVMBitWriter.dylib: libLLVMCore.dylib libLLVMSupport.dylib
libLLVMDebugInfo.dylib: libLLVMMC.dylib libLLVMSupport.dylib
libLLVMExecutionEngine.dylib: libLLVMCore.dylib libLLVMMC.dylib
libLLVMSupport.dylib libLLVMTarget.dylib
libLLVMInterpreter.dylib: libLLVMCodeGen.dylib libLLVMCore.dylib
libLLVMExecutionEngine.dylib libLLVMSupport.dylib libLLVMTarget.dylib
libLLVMLinker.dylib: libLLVMArchive.dylib libLLVMBitReader.dylib
libLLVMCore.dylib libLLVMSupport.dylib libLLVMTableGen.dylib
libLLVMTransformUtils.dylib
libLLVMMCDisassembler.dylib: libLLVMMC.dylib libLLVMMCParser.dylib
libLLVMPowerPCDesc.dylib libLLVMPowerPCInfo.dylib libLLVMSupport.dylib
libLLVMMCJIT.dylib: libLLVMCore.dylib libLLVMExecutionEngine.dylib
libLLVMRuntimeDyld.dylib libLLVMSupport.dylib libLLVMTarget.dylib
libLLVMMCParser.dylib: libLLVMMC.dylib libLLVMSupport.dylib
libLLVMObject.dylib: libLLVMSupport.dylib libLLVMTableGen.dylib
libLLVMRuntimeDyld.dylib: libLLVMObject.dylib libLLVMSupport.dylib
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 17:09:05 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 23:09:05 +0000
Subject: [LLVMbugs] [Bug 11523] Arrays of pointers to data members are not
zero-initialized correctly
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11523
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #2 from Eli Friedman 2011-12-09 17:09:05 CST ---
r146291.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 17:16:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 23:16:19 +0000
Subject: [LLVMbugs] [Bug 11199] Umbrella bug for 3.0 release
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11199
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |wendling at apple.com
Resolution| |FIXED
--- Comment #4 from Bill Wendling 2011-12-09 17:16:19 CST ---
The release is finished.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 17:17:03 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 23:17:03 +0000
Subject: [LLVMbugs] [Bug 11520] clang crash while building mimosa
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11520
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |LATER
--- Comment #5 from Eli Friedman 2011-12-09 17:17:03 CST ---
clang doesn't support lambdas yet. (I'm planning to look into giving a proper
error 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 Fri Dec 9 17:21:03 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 23:21:03 +0000
Subject: [LLVMbugs] [Bug 11528] New: -Wbind-to-temporary warns if field in
class has a type with a non-const copy constructor.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11528
Bug #: 11528
Summary: -Wbind-to-temporary warns if field in class has a type
with a non-const copy constructor.
Product: clang
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ajwong at chromium.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
struct A {
A();
private:
A(A& other) {}
};
class B {
A field_;
};
void Func(const B& t) {}
int main(void) {
Func(B());
return 0;
}
This triggers -Wbind-to-temporary-copy:
$ ./third_party/llvm-build/Release+Asserts/bin/clang++ -c /tmp/bad3.cc
/tmp/bad3.cc:15:8: warning: no viable constructor copying parameter of type
'B'; C++98 requires a copy constructor when binding a reference to a temporary
[-Wbind-to-temporary-copy]
Func(B());
^~~
/tmp/bad3.cc:8:7: note: candidate constructor (the implicit copy constructor)
not viable: no known conversion from 'B' to 'B &' for 1st argument;
class B {
^
If A's copy constructor is defined using a const-reference as in A(const A&
other) {}, the warning does not fire.
I *think* the warning should still not fire even if A's copy constructor is
non-const because B's implicit copy constructor should still be public. If the
warning is actually accurate, then we have a separate problem where the
diagnostic is very confusing since it talks about B converting to B&.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 17:54:54 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 09 Dec 2011 23:54:54 +0000
Subject: [LLVMbugs] [Bug 11526] Assertion in
ARMTargetLowering::LowerBUILD_VECTOR()
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11526
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2011-12-09 17:54:54 CST ---
r146299.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 18:40:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 10 Dec 2011 00:40:21 +0000
Subject: [LLVMbugs] [Bug 11529] New: Tblgen type inference: Assertion failure
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11529
Bug #: 11529
Summary: Tblgen type inference: Assertion failure
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: ivanllopard at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Hi,
I have got an assertion failure when tblgen tried to build the instruction
information description by analizyng the following patern:
def mul_add : MephInstr<(outs RARegs:$dst), (ins RARegs:$src, RARegs:$a,
RARegs:$b), "mulaa",
[(set RARegs:$dst, (insertelt RARegs:$src,
(i16 (trunc (add
(ncmul
(sext (extractelt RARegs:$a, imm)),
(sext (extractelt RARegs:$b, imm))
),
(ncmul
(sext (extractelt RARegs:$a, imm)),
(sext (extractelt RARegs:$b, imm))
)
))),
imm) )] >;
Where RARegs is the only register class I have defined with types [i32, v2i16].
Hereafter, the execution back-trace of tblgen:
llvm-tblgen: /llvm/include/llvm/ADT/SmallVector.h:150: T&
llvm::SmallVectorTemplateCommon::operator[](unsigned int) [with T =
llvm::MVT::SimpleValueType, T& = llvm::MVT::SimpleValueType&]: Assertion
`begin() + idx < end()' failed.
0 llvm-tblgen 0x081c0e8a
1 llvm-tblgen 0x081c0c17
2 0x4001e400 __kernel_sigreturn + 0
3 libc.so.6 0x401af34e abort + 382
4 libc.so.6 0x401a4888 __assert_fail + 248
5 llvm-tblgen 0x080a7692
6 llvm-tblgen 0x0809319d
7 llvm-tblgen 0x080955b7
8 llvm-tblgen 0x080a430b
9 llvm-tblgen 0x08098c3e
10 llvm-tblgen 0x08098c8b
11 llvm-tblgen 0x08098c8b
12 llvm-tblgen 0x08098c8b
13 llvm-tblgen 0x08098c8b
14 llvm-tblgen 0x080982a1
15 llvm-tblgen 0x0809b9ad
16 llvm-tblgen 0x0809f770
17 llvm-tblgen 0x0809c2c2
18 llvm-tblgen 0x08164b8c
19 llvm-tblgen 0x08165197
20 llvm-tblgen 0x08171aac
21 llvm-tblgen 0x0816458c
22 libc.so.6 0x40197e37 __libc_start_main + 231
23 llvm-tblgen 0x0804c411
Stack dump:
0. Program arguments: /llvm/_build/Debug+Asserts/bin/llvm-tblgen -I
/llvm/lib/Target/Meph -I /llvm/include -I /llvm/include -I /llvm/lib/Target
-gen-instr-info -o
/llvm/_build/lib/Target/Meph/Debug+Asserts/MephGenInstrInfo.inc.tmp
/llvm/lib/Target/Meph/Meph.td
Let me know if more information is needed.
Regards,
Ivan
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 19:30:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 10 Dec 2011 01:30:02 +0000
Subject: [LLVMbugs] [Bug 11530] New: llvm-config --libs returns empty string
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11530
Bug #: 11530
Summary: llvm-config --libs returns empty string
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: vlee at vmware.com
CC: jfonseca at vmware.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Starting with llvm-3.1svn r145623, 'llvm-config --libs' returns an empty
string.
With llvm-3.1svn r145622, 'llvm-config --libs' returns the list of libraries.
------------------------------------------------------------------------
r145623 | ddunbar | 2011-12-01 12:18:09 -0800 (Thu, 01 Dec 2011) | 2 lines
llvm-config: Replace with C++ version (was llvm-config-2).
- Another reapply of r144300, with hopefully one last fix.
------------------------------------------------------------------------
r145622 | ddunbar | 2011-12-01 12:00:19 -0800 (Thu, 01 Dec 2011) | 2 lines
llvm-config-2: Fix --cflags and --includedir which pointed at the wrong
directory when running from a build directory.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 21:02:17 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 10 Dec 2011 03:02:17 +0000
Subject: [LLVMbugs] [Bug 11531] New: "make dist" fails on gzip
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11531
Bug #: 11531
Summary: "make dist" fails on gzip
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Makefiles
AssignedTo: unassignedbugs at nondot.org
ReportedBy: scott+llvm+bugzilla at pakin.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Makefile.rules (and, where I actually first noticed the problem,
projects/sample/Makefile.llvm.rules) uses $(ZIP), $(BZIP2) and $(GZIP) to
produce various tarballs when "make dist" is invoked. However,
autoconf/configure.ac (respectively, projects/sample/autoconf/configure.ac)
does an AC_PATH_PROG of ZIP, BZIP2, and *GZIPBIN*. Apparently, this
inconsistency is due to the fix for Bug 8758. However, as a result, running
"make dist" for my project, derived from sample, fails with a "/bin/sh: -c: not
found" error.
I believe the solution is simply to rename GZIP to GZIPBIN in Makefile.rules
and projects/sample/Makefile.llvm.rules.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 10 10:13:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 10 Dec 2011 16:13:21 +0000
Subject: [LLVMbugs] [Bug 11532] New: Assertion `Symbol->isUndefined() &&
"Cannot define a symbol twice!"' failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11532
Bug #: 11532
Summary: Assertion `Symbol->isUndefined() && "Cannot define a
symbol twice!"' failed
Product: clang
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sedat.dilek at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7705
--> http://llvm.org/bugs/attachment.cgi?id=7705
bugreport llvm-clang from dileks
Hi,
I have compiled llvm/clang v3.0 (final) on my i386 Debian/sid system by myself
(Just FYI: I am using multiarch [1]).
The issue I am reporting was seen when compiling mesa from master GIT branch:
commit b1a8b7b0196c73bcfe488cbfc9e9fcd1d7ce7d9b
"Revert "st/mesa: only resolve is number of samples is > 1""
I have attached the build-logs, my build-scripts, the preprocessed-sources,
etc. (as desired by baldrick on IRC).
BTW, I was pointed on IRC to llvm-bug #9301 and tried with a refreshed version
of pr9301.patch which did not help here.
Regards,
- Sedat (dileks on IRC) -
[1] http://wiki.debian.org/Multiarch/
[2] http://llvm.org/bugs/show_bug.cgi?id=9301
P.S.: From my initial build.log:
...
make[2]: Entering directory `/home/sd/src/mesa/mesa/src/mapi/shared-glapi'
clang -c -I../../../include -I../../../src/mapi -DMAPI_MODE_GLAPI
-DMAPI_ABI_HEADER=\"shared-glapi/glapi_mapi_tmp.h\" -g -O2 -Wall
-Wmissing-prototypes -std=c99 -fno-strict-aliasing -fno-builtin-memcmp -g
-fPIC -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE
-DPTHREADS -DDEBUG -DHAVE_POSIX_MEMALIGN -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS
-fvisibility=hidden ../../../src/mapi/mapi/entry.c -o entry.o
clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
In file included from ../../../src/mapi/mapi/entry.c:47:
../../../src/mapi/mapi/entry_x86_tsd.h:63:19: warning: tentative array
definition assumed to have one element
static const char x86_entry_start[];
^
../../../src/mapi/mapi/entry_x86_tsd.h:64:19: warning: tentative array
definition assumed to have one element
static const char x86_entry_end[];
^
clang: /home/sd/src/llvm/llvm/lib/MC/MCELFStreamer.cpp:42: virtual void
llvm::MCELFStreamer::EmitLabel(llvm::MCSymbol*): Assertion
`Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.
0 clang 0x09641708
1 clang 0x09641c54
2 0x4001d400 __kernel_sigreturn + 0
3 0x4001d424 __kernel_vsyscall + 16
4 libc.so.6 0x401b4911 gsignal + 81
5 libc.so.6 0x401b7d42 abort + 386
6 libc.so.6 0x401adb28 __assert_fail + 248
7 clang 0x095bd00e
Stack dump:
0. Program arguments: /opt/llvm/bin/clang -cc1 -triple i386-pc-linux-gnu
-emit-obj -disable-free -main-file-name entry.c -pic-level 2 -mdisable-fp-elim
-relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu pentium4
-target-linker-version 2.22 -momit-leaf-frame-pointer -g -coverage-file entry.o
-resource-dir /opt/llvm/bin/../lib/clang/3.0 -D MAPI_MODE_GLAPI -D
MAPI_ABI_HEADER="shared-glapi/glapi_mapi_tmp.h" -D USE_X86_ASM -D USE_MMX_ASM
-D USE_3DNOW_ASM -D USE_SSE_ASM -D _GNU_SOURCE -D PTHREADS -D DEBUG -D
HAVE_POSIX_MEMALIGN -D GLX_INDIRECT_RENDERING -D GLX_DIRECT_RENDERING -D
USE_EXTERNAL_DXTN_LIB=1 -D IN_DRI_DRIVER -D HAVE_ALIAS -I ../../../include -I
../../../src/mapi -fmodule-cache-path /var/tmp/clang-module-cache
-internal-isystem /usr/local/include -internal-isystem
/opt/llvm/bin/../lib/clang/3.0/include -internal-externc-isystem
/usr/include/i386-linux-gnu -internal-externc-isystem /usr/include -O2 -Wall
-Wmissing-prototypes -std=c99 -ferror-limit 19 -fmessage-length 0 -fvisibility
hidden -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fdiagnostics-show-option -o entry.o -x c
../../../src/mapi/mapi/entry.c
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'../../../src/mapi/mapi/entry.c'.
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/entry-Y0sBsk.i
make[2]: *** [entry.o] Error 254
make[2]: Leaving directory `/home/sd/src/mesa/mesa/src/mapi/shared-glapi'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/sd/src/mesa/mesa/src'
make: *** [default] Error 1
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Dec 10 12:12:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 10 Dec 2011 18:12:47 +0000
Subject: [LLVMbugs] [Bug 11533] New: clang is wrongly proposing assuming
that strlcpy or strlcat are part of the lib c
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11533
Bug #: 11533
Summary: clang is wrongly proposing assuming that strlcpy or
strlcat are part of the lib c
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Headers
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sylvestre at debian.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Under Debian, the following code:
int
main ()
{
(void) strlcat;
return 0;
}
will trigger the warning:
test.c:4:12: warning: implicitly declaring C library function 'strlcat' with
type 'unsigned long (char *, const char *, unsigned long)'
(void) strlcat;
^
test.c:4:12: note: please include the header or explicitly provide a
declaration for 'strlcat'
1 warning generated.
while strlcat (or strlcpy) does not exist under Debian libc (version 2.13-21 on
my system).
This has been reported initially here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651454
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 10 17:07:09 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 10 Dec 2011 23:07:09 +0000
Subject: [LLVMbugs] [Bug 11534] New: Properly lookup .lib files on command
line on MS/Windows.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11534
Bug #: 11534
Summary: Properly lookup .lib files on command line on
MS/Windows.
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
AssignedTo: bigcheesegs at gmail.com
ReportedBy: bigcheesegs at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Given:
$clang++ file.cpp kernel32.lib
Clang currently prints:
clang++: error: no such file or directory: 'kernel32.lib'
It should look up the library in the same manner as cl.exe.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 10 19:15:32 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Dec 2011 01:15:32 +0000
Subject: [LLVMbugs] [Bug 11535] New: Clang miscompiles simple C code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11535
Bug #: 11535
Summary: Clang miscompiles simple C code
Product: clang
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ambrop7 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7709
--> http://llvm.org/bugs/attachment.cgi?id=7709
Test case C program
Clang 3.0 with -O2 miscompiles the attached C code on Linux x86_64.
Correct result is "x=1"; with clang instead it prints "x=2".
Clang 2.9 is not affected.
It appears that the value of 'x' printed is as if it was incremented a second
time (which it must not be). Some evidence of this is that if you change
"pos++" to "pos += 4" for instance, it prints out "x=8" (instead of "x=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 Sat Dec 10 19:33:41 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Dec 2011 01:33:41 +0000
Subject: [LLVMbugs] [Bug 11536] New: Clang incorrect array-bounds warning on
strpbrk in GlibC 2.9 header
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11536
Bug #: 11536
Summary: Clang incorrect array-bounds warning on strpbrk in
GlibC 2.9 header
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: pdox at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7710
--> http://llvm.org/bugs/attachment.cgi?id=7710
example code
Compile the attached example.c with Clang. The code was taken from
bits/string2.h in GlibC 2.9. It appears to be correct.
$ clang example.c -Werror
example.c:26:26: error: array index 2 is past the end of the array
(which contains 2 elements) [-Werror,-Warray-bounds]
foo = strpbrk("hello", "l");
~~~~~~~~~~~~~~~~~^~~~
example.c:16:46: note: expanded from macro 'strpbrk'
: ((__a2 = ((__const char *) (accept))[2], __a2 == '\0') \
^ ~
example.c:26:26: error: array index 3 is past the end of the array
(which contains 2 elements) [-Werror,-Warray-bounds]
foo = strpbrk("hello", "l");
~~~~~~~~~~~~~~~~~^~~~
example.c:18:41: note: expanded from macro 'strpbrk'
: (((__const char *) (accept))[3] == '\0' \
^ ~
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 Dec 11 09:05:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Dec 2011 15:05:00 +0000
Subject: [LLVMbugs] [Bug 11537] New: llvm-config --ld-flags does not give
the correct library path
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11537
Bug #: 11537
Summary: llvm-config --ld-flags does not give the correct
library path
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: lucas at treffenstaedt.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7712
--> http://llvm.org/bugs/attachment.cgi?id=7712
llvm configure log
When using llvm-config --ldflags, the program returns -L/usr/lib instead of the
correct location of the llvm libraries (/usr/lib/llvm in my case).
According to baldrick, this may be due to llvm-config assuming the libs would
be install under --prefix, rather than --libdir.
Attached is the config.log from my llvm 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 Sun Dec 11 09:50:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Dec 2011 15:50:31 +0000
Subject: [LLVMbugs] [Bug 11439] Operations on double3 mis-optimised to
double2
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11439
Erik Schnetter changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #3 from Erik Schnetter 2011-12-11 09:50:31 CST ---
Can this solution be back-ported to the 3.0 release branch?
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 11 10:00:05 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Dec 2011 16:00:05 +0000
Subject: [LLVMbugs] [Bug 11439] Operations on double3 mis-optimised to
double2
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11439
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Anton Korobeynikov 2011-12-11 10:00:05 CST ---
The releases are time-based, not feature based. So, given that we normally we
do not do "point releases", the fix will be included in 3.1
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Dec 11 10:40:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Dec 2011 16:40:46 +0000
Subject: [LLVMbugs] [Bug 11538] New: Support the option
-fextended-identifiers
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11538
Bug #: 11538
Summary: Support the option -fextended-identifiers
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sylvestre at debian.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
It would be nice if you could support the option -fextended-identifiers like in
gcc/g++:
-fextended-identifiers
Accept universal character names in identifiers. This option is
experimental; in a future version of GCC, it will be enabled by
default for C99 and C++.
This wish has been reported on:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647636
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 11 14:19:32 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Dec 2011 20:19:32 +0000
Subject: [LLVMbugs] [Bug 10719] attempting to inline spill CRBITRC:%vreg
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10719
Roman Divacky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Dec 11 14:25:34 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Dec 2011 20:25:34 +0000
Subject: [LLVMbugs] [Bug 5781] [SEMA]: incredibly big warning output
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5781
Roman Divacky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Roman Divacky 2011-12-11 14:25:34 CST ---
does not reproduce 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 Sun Dec 11 14:31:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Dec 2011 20:31:47 +0000
Subject: [LLVMbugs] [Bug 11461] std::tuple chokes on final
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11461
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Howard Hinnant 2011-12-11 14:31:47 CST ---
Fix Committed revision 146345.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 11 18:07:27 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 00:07:27 +0000
Subject: [LLVMbugs] [Bug 11539] New: libc++ fails to build with gcc 4.5
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11539
Bug #: 11539
Summary: libc++ fails to build with gcc 4.5
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: expipiplus1 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7713
--> http://llvm.org/bugs/attachment.cgi?id=7713
The output from gcc 4.6.1
gcc doesn't seem to be able to compile any file including any of the libc++
headers.
I've attached the output of trying to compile a simple testcase with:
g++ test.cpp -nostdinc++ -lc++ -I/usr/include/c++/v1
The file is as follows:
#include
int main()
{}
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 11 21:53:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 03:53:02 +0000
Subject: [LLVMbugs] [Bug 11540] New: Crash with -std=c++11,
compiling cast-to-void* of cast-to-integer function
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11540
Bug #: 11540
Summary: Crash with -std=c++11, compiling cast-to-void* of
cast-to-integer function
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jwalden+llvm at mit.edu
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7714
--> http://llvm.org/bugs/attachment.cgi?id=7714
Compiler output when attempting to compile testcase
Compiling this with -std=c++11 (on an x86-64 system, I de-aliased uintptr_t
while minimizing) crashes Clang from earlier today:
void fun() { }
void cast()
{
(void*)(unsigned long int)fun;
}
This is a regression from sometime in the last couple weeks or so. Commandline
spew and such are attached.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Dec 12 03:14:51 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 09:14:51 +0000
Subject: [LLVMbugs] [Bug 11541] New: some i386/x86 Object tests fail when
target is PowerPC
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11541
Bug #: 11541
Summary: some i386/x86 Object tests fail when target is PowerPC
Product: new-bugs
Version: 3.0
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: fang at csl.cornell.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I've successfully built llvm/clang for powerpc-darwin8, and when I run the
regression tests, I see two failures, which look like tests for the wrong
target architecture. Should these be somehow conditioned out when target is
PowerPC?
Transcript:
[100%] Running LLVM regression tests
FAIL: LLVM :: Object/objdump-disassembly-inline-relocations.test (3845 of 5636)
******************** TEST 'LLVM ::
Object/objdump-disassembly-inline-relocations.test' FAILED ********************
Script:
--
llvm-objdump -d -r
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/TestObjectFiles/trivial-object-test.coff-i386
|
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/build/bin/./FileCheck
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/objdump-disassembly-inline-relocations.test
-check-prefix COFF-i386
llvm-objdump -d -r
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/TestObjectFiles/trivial-object-test.coff-x86-64
|
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/build/bin/./FileCheck
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/objdump-disassembly-inline-relocations.test
-check-prefix COFF-x86-64
--
Exit Code: 1
Command Output (stderr):
--
llvm-objdump: error: unable to get target for 'i386-unknown-unknown', see
--version and --triple.
FileCheck error: '-' is empty.
--
********************
FAIL: LLVM :: Object/objdump-trivial-object.test (3849 of 5636)
******************** TEST 'LLVM :: Object/objdump-trivial-object.test' FAILED
********************
Script:
--
llvm-objdump -d
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/TestObjectFiles/trivial-object-test.coff-i386
|
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/build/bin/./FileCheck
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/objdump-trivial-object.test
-check-prefix COFF-i386
llvm-objdump -d
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/TestObjectFiles/trivial-object-test.coff-x86-64
|
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/build/bin/./FileCheck
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/objdump-trivial-object.test
-check-prefix COFF-x86-64
llvm-objdump -d
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/TestObjectFiles/trivial-object-test.elf-i386
|
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/build/bin/./FileCheck
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/objdump-trivial-object.test
-check-prefix ELF-i386
llvm-objdump -d
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/TestObjectFiles/trivial-object-test.elf-x86-64
|
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/build/bin/./FileCheck
/Volumes/Mercedes2/sw/src/fink.build/llvm30-3.0-0/llvm-3.0.src/test/Object/objdump-trivial-object.test
-check-prefix ELF-x86-64
--
Exit Code: 1
Command Output (stderr):
--
llvm-objdump: error: unable to get target for 'i386-unknown-unknown', see
--version and --triple.
FileCheck error: '-' is empty.
--
********************
Testing Time: 1211.33s
********************
Failing Tests (2):
LLVM :: Object/objdump-disassembly-inline-relocations.test
LLVM :: Object/objdump-trivial-object.test
Expected Passes : 2707
Expected Failures : 10
Unsupported Tests : 2917
Unexpected Failures: 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 Mon Dec 12 03:35:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 09:35:31 +0000
Subject: [LLVMbugs] [Bug 11542] New: -Wreturn-type should be able to derive
_Noreturn indirectly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11542
Bug #: 11542
Summary: -Wreturn-type should be able to derive _Noreturn
indirectly
Product: clang
Version: 3.0
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I suspect this bug is similar to bug 9599, but not identical, so I'm filing
this anyway.
The following code generates a -Wreturn-type warning:
__attribute__((__noreturn__)) void bar(void);
static void
foo(void)
{
bar();
}
int
f(void)
{
foo();
}
foo.c:15:1: warning: control reaches end of non-void function [-Wreturn-type]
If I change the call to foo() to bar(), it obviously work, but in this case the
compiler should be to derive to a certain extent that foo() isn't going to
return anyway. This information should be available anyway, as for this
specific C file, foo() is even inlined into bar() completely.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 04:19:13 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 10:19:13 +0000
Subject: [LLVMbugs] [Bug 11543] New: ambiguous qualified class member access
lookup diagnostic unclear
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11543
Bug #: 11543
Summary: ambiguous qualified class member access lookup
diagnostic unclear
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This question came up on stackoverflow:
http://stackoverflow.com/questions/8100492/ambiguous-member-access-expression-is-clang-rejecting-valid-code
Testcase, for posterity:
template
class TemplateClass : public T {
public:
void method() {}
template
static void static_method(U u) { u.TemplateClass::method(); }
};
class EmptyClass {};
int main() {
TemplateClass > c;
TemplateClass::static_method(c);
}
Clearly our diagnostic for this code is insufficient, since it's taken a month
and a +500 rep bounty for someone to figure out why the code is ill-formed. We
say:
example.cc:6:38: error: lookup of 'TemplateClass' in member access expression
is
ambiguous
static void static_method(U u) { u.TemplateClass::method(); }
^
example.cc:13:3: note: in instantiation of function template specialization
'TemplateClass::static_method
> >' requested here
TemplateClass::static_method(c);
^
example.cc:2:7: note: lookup in the object type
'TemplateClass >' refers here
class TemplateClass : public T {
^
example.cc:2:7: note: lookup from the current scope refers here
These last two notes are clearly trying to indicate the problem, but since they
don't list the template arguments they fail to point out the problem. The
problem would be more obvious if we said:
example.cc:2:7: note: lookup in the object type
'TemplateClass >' refers here [with T =
TemplateClass]
class TemplateClass : public T {
^
example.cc:2:7: note: lookup from the current scope refers here [with T =
EmptyClass]
It could also be useful to mention that the lookup found an injected-class-name
(but that wouldn't help in this particular 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 Mon Dec 12 08:49:34 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 14:49:34 +0000
Subject: [LLVMbugs] [Bug 11544] New: Trivial math builtins not inlined
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11544
Bug #: 11544
Summary: Trivial math builtins not inlined
Product: clang
Version: 3.0
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dsaritz at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When compiling for -march=armv7-a, Apple Clang 3.0 from Xcode 4.2 fails to
inline math builtins, both relatively complex ones like __builtin_fmodf as well
as trivial (single instruction) ones like __builtin_lrintf.
-ffast-math -D__NO_MATH_INLINES do not help...
__builtin_lrintf is most important to me as I need fast scalar float to int
rounding and there is no intrisic for that AFAIK (and the inline ARM assembler
is broken in Apple's Clang 3.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 Dec 12 10:36:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 16:36:47 +0000
Subject: [LLVMbugs] [Bug 11545] New: Analysis for this terminator not
implemented (CoreEngine.cpp:325)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11545
Bug #: 11545
Summary: Analysis for this terminator not implemented
(CoreEngine.cpp:325)
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: ch.ehrlicher at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I get the following error when I try scan-build on my code:
Analysis for this terminator not implemented.
UNREACHABLE executed at
/home/chehrlic/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp:325!
0 clang++ 0x0000000001a6565f
1 clang++ 0x0000000001a65b79
2 libpthread.so.0 0x00007f1df4d3dd00
3 libc.so.6 0x00007f1df4058d95 gsignal + 53
4 libc.so.6 0x00007f1df405a2ab abort + 379
5 clang++ 0x0000000001a55aef llvm::llvm_unreachable_internal(char
const*, char const*, unsigned int) + 463
6 clang++ 0x0000000000cb65a1
clang::ento::CoreEngine::HandleBlockExit(clang::CFGBlock const*,
clang::ento::ExplodedNode*) + 145
7 clang++ 0x0000000000cb61e5
clang::ento::CoreEngine::HandleBlockEntrance(clang::BlockEntrance const&,
clang::ento::ExplodedNode*) + 213
8 clang++ 0x0000000000cb58d5
clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*,
unsigned int, clang::ento::ProgramState const*) + 549
9 clang++ 0x0000000000c2d2e2
10 clang++ 0x0000000000c2ccd7
11 clang++ 0x0000000000c2c199
12 clang++ 0x0000000000c2c0a7
13 clang++ 0x000000000092cad5 clang::ParseAST(clang::Sema&, bool) + 421
14 clang++ 0x00000000006e5fdb
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 987
15 clang++ 0x00000000006cee90
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2816
16 clang++ 0x00000000006c63b9 cc1_main(char const**, char const**, char
const*, void*) + 5561
17 clang++ 0x00000000006cb165 main + 757
18 libc.so.6 0x00007f1df404523d __libc_start_main + 237
19 clang++ 0x00000000006c4d45
And here the testcase:
#include
void Error_terminate()
{
try
{
throw;
}
catch (...)
{
}
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 12:12:33 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 18:12:33 +0000
Subject: [LLVMbugs] [Bug 11527] find-cycles.pl finds cyclic dependencies
among LLVM libs
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11527
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |daniel at zuster.org
Resolution| |WONTFIX
--- Comment #3 from Daniel Dunbar 2011-12-12 12:12:33 CST ---
find-cycles.pl has some options to explain the cycle, check the source (or
maybe try --help) for more information.
We have already resolved this on TOT, because we no longer use find-cycles.pl.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 12:23:23 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 18:23:23 +0000
Subject: [LLVMbugs] [Bug 11530] llvm-config --libs returns empty string
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11530
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Daniel Dunbar 2011-12-12 12:23:23 CST ---
Fixed here:
http://llvm.org/viewvc/llvm-project?view=rev&revision=146388
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 Dec 12 12:33:38 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 18:33:38 +0000
Subject: [LLVMbugs] [Bug 11540] Crash with -std=c++11,
compiling cast-to-void* of cast-to-integer function
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11540
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Rafael ?vila de Esp?ndola 2011-12-12 12:33:38 CST ---
I was able to reproduce this with llvm 146344 and clang 146343, so this is
already fixed on 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 Mon Dec 12 15:22:29 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 21:22:29 +0000
Subject: [LLVMbugs] [Bug 11522] Clang hangs in infinite loop
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11522
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #3 from Eli Friedman 2011-12-12 15:22:29 CST ---
I can reproduce with Apple clang-211, but this appears to be already fixed on
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 Mon Dec 12 16:01:30 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 22:01:30 +0000
Subject: [LLVMbugs] [Bug 11527] find-cycles.pl finds cyclic dependencies
among LLVM libs
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11527
David Fang changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |
--- Comment #4 from David Fang 2011-12-12 16:01:30 CST ---
I just ignored the result of find-cycles.pl for now and forced the build to
continue... and eventually succeeded in finishing all libs and the clang
executables. Will eventually post more detailed results with tests results for
powerpc-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 Mon Dec 12 16:02:04 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 22:02:04 +0000
Subject: [LLVMbugs] [Bug 11527] find-cycles.pl finds cyclic dependencies
among LLVM libs
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11527
David Fang changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #5 from David Fang 2011-12-12 16:02:04 CST ---
Oops, didn't mean to change status (defaulted to reopen).
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 16:02:53 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 22:02:53 +0000
Subject: [LLVMbugs] [Bug 11527] find-cycles.pl finds cyclic dependencies
among LLVM libs
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11527
David Fang changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |WONTFIX
--- Comment #6 from David Fang 2011-12-12 16:02:53 CST ---
Arg, I meant WONTFIX.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 16:04:33 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 22:04:33 +0000
Subject: [LLVMbugs] [Bug 11546] New: Recursive template flagged when defined
out of line
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11546
Bug #: 11546
Summary: Recursive template flagged when defined out of line
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ivan at ootbcomp.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Found in clang 3.1, w & wo c++11 enabled:
s3:~/ootbc/common$ clang -v
clang version 3.1 (trunk 145795)
Target: x86_64-unknown-linux-gnu
Thread model: posix
This code:
template
class bitWidthHolding {
public:
/** width is the number of bits occupied by the template parameter v
*/
static const
int w1;
static const
int w2 = (v == 0 ? 0 : bitWidthHolding<(v >> 1)>::w2 + 1);
};
template
const
int bitWidthHolding::w1 =
(v == 0 ? 0 : bitWidthHolding<(v >> 1)>::w1 + 1);
int main() {
int v1 = bitWidthHolding<3>::w1;
int v2 = bitWidthHolding<3>::w2;
return 0;
}
gets you this:
s3:~/ootbc1/common$ clang++ -std=c++11 foo.cc
foo.cc:15:18: warning: variable 'w1' is uninitialized when used within its own
initialization [-Wuninitialized]
(v == 0 ? 0 : bitWidthHolding<(v >> 1)>::w1 + 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:15:45: note: in instantiation of static data member
'bitWidthHolding<0>::w1' requested here
(v == 0 ? 0 : bitWidthHolding<(v >> 1)>::w1 + 1);
^
foo.cc:15:45: note: in instantiation of static data member
'bitWidthHolding<1>::w1' requested here
(v == 0 ? 0 : bitWidthHolding<(v >> 1)>::w1 + 1);
^
foo.cc:18:31: note: in instantiation of static data member
'bitWidthHolding<3>::w1' requested here
int v1 = bitWidthHolding<3>::w1;
^
1 warning generated.
Note that no warning is issued when w2 is defined inside the class, but is
issued when w1 is defined outside; w1 and w2 are otherwise identical. No
warning is justified in either case, because the nested invocation has a
different template argument except for the zero argument case, for which the
recursive invocation should not be evaluated by ?:. However, right or wrong it
should not matter where the definition is.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 17:42:38 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 23:42:38 +0000
Subject: [LLVMbugs] [Bug 11547] New: Clang crash compiling newlib
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11547
Bug #: 11547
Summary: Clang crash compiling newlib
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jpbonn-keyword-llvmbug.a51747 at corniceresearch.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7716
--> http://llvm.org/bugs/attachment.cgi?id=7716
File causing crash
clang version 3.1 (git at github.com:milkymist/clang-lm32.git
http://llvm.org/git/clang.git 84db6ffdf895b7b31fae6d6ba0fd37b2f9a387ed)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang -S -emit-llvm -o /tmp/ce.ll /tmp/ce.c
0 clang 0x0000000002cd5a85
1 clang 0x0000000002cd5881
2 libpthread.so.0 0x00007fbbbf248c60
3 clang 0x00000000014a577c llvm::Value::getType() const + 12
4 clang 0x00000000014cab62
llvm::SelectInst::SelectInst(llvm::Value*, llvm::Value*, llvm::Value*,
llvm::Twine const&, llvm::Instruction*) + 60
5 clang 0x00000000014cac1e llvm::SelectInst::Create(llvm::Value*,
llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) + 84
6 clang 0x00000000014cc9bc llvm::IRBuilder
>::CreateSelect(llvm::Value*, llvm::Value*, llvm::Value*, llvm::Twine const&) +
198
7 clang 0x0000000001573b66
8 clang 0x00000000015760c5
9 clang 0x00000000015753d8
10 clang 0x0000000001567d19
11 clang 0x0000000001567d9c
12 clang 0x0000000001575b81
13 clang 0x0000000001567d19
14 clang 0x00000000015744b0
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 156
15 clang 0x000000000152eb07
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 83
16 clang 0x000000000152ea7b
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 97
17 clang 0x00000000015c6f9b
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 401
18 clang 0x00000000015c7574
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 292
19 clang 0x00000000015c733b
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 217
20 clang 0x00000000015c6e55
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 75
21 clang 0x00000000015ddf20
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
+ 154
22 clang 0x00000000015de393
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 819
23 clang 0x00000000014813ef
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 917
24 clang 0x000000000147f054
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 448
25 clang 0x000000000147eaec
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 834
26 clang 0x0000000001484330
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 310
27 clang 0x00000000014789bf
28 clang 0x000000000147743a
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 158
29 clang 0x0000000001601004 clang::ParseAST(clang::Sema&, bool) + 440
30 clang 0x000000000130170f clang::ASTFrontendAction::ExecuteAction()
+ 265
31 clang 0x00000000014769f5 clang::CodeGenAction::ExecuteAction() +
957
32 clang 0x0000000001301369 clang::FrontendAction::Execute() + 325
33 clang 0x00000000012dc67a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 740
34 clang 0x00000000012aeab5
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 969
35 clang 0x000000000129e0e7 cc1_main(char const**, char const**, char
const*, void*) + 990
36 clang 0x00000000012aa078 main + 496
37 libc.so.6 0x00007fbbbe51eeff __libc_start_main + 255
38 clang 0x000000000129d399
Stack dump:
0. Program arguments: /var/build/Debug+Asserts/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-llvm -disable-free -main-file-name ce.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21.0.20110327
-momit-leaf-frame-pointer -coverage-file /tmp/ce.ll -resource-dir
/var/build/Debug+Asserts/bin/../lib/clang/3.1 -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem /usr/local/include
-internal-isystem /var/build/Debug+Asserts/bin/../lib/clang/3.1/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdebug-compilation-dir
/home/jpbonn/Documents/mico32/newlib/build/lm32-rtems4.11/newlib/libc/stdio
-ferror-limit 19 -fmessage-length 82 -mstackrealign -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/ce.ll -x c /tmp/ce.c
1. parser at end of file
2. ../../../../../newlib-1.19.0/newlib/libc/stdio/clearerr.c:64:1: LLVM IR
generation of declaration 'clearerr'
3. ../../../../../newlib-1.19.0/newlib/libc/stdio/clearerr.c:64:1:
Generating code for declaration 'clearerr'
4. ../../../../../newlib-1.19.0/newlib/libc/stdio/clearerr.c:66:1: LLVM IR
generation of compound statement ('{}')
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/ce-wihH4b.i
clang: note: diagnostic msg: /tmp/ce-wihH4b.sh
"/var/build/Debug+Asserts/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu
-emit-llvm -disable-free -main-file-name ce.c -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.21.0.20110327
-momit-leaf-frame-pointer -coverage-file /tmp/ce.ll -resource-dir
/var/build/Debug+Asserts/bin/../lib/clang/3.1 -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem /usr/local/include
-internal-isystem /var/build/Debug+Asserts/bin/../lib/clang/3.1/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdebug-compilation-dir
/home/jpbonn/Documents/mico32/newlib/build/lm32-rtems4.11/newlib/libc/stdio
-ferror-limit 19 -fmessage-length 82 -mstackrealign -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/ce.ll -x c /tmp/ce.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 Mon Dec 12 17:58:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 12 Dec 2011 23:58:11 +0000
Subject: [LLVMbugs] [Bug 11548] New: no diagnostic for ill-formed call to
function on a member of the current instantiation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11548
Bug #: 11548
Summary: no diagnostic for ill-formed call to function on a
member of the current instantiation
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This bit me recently: see r146366. g++ diagnoses the following, but clang
doesn't notice anything wrong with it:
struct A {
void f(int);
};
template struct S {
A a;
void g() {
a.f();
}
};
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 19:05:52 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 01:05:52 +0000
Subject: [LLVMbugs] [Bug 11549] New: clang frontend command failed due to
signal
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11549
Bug #: 11549
Summary: clang frontend command failed due to signal
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: 876762257 at qq.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I tried to execute make, but get some error that i can't resolve
1) environment:
cygwin at win7
2) clang version:
$ clang -v
clang version 3.1 (trunk 146369)
Target: i386-pc-cygwin
Thread model: posix
3) command:
clang -ccc-host-triple arm-apple-darwin9 -include LocalPush-Prefix.pch -c
-ObjC -fblocks -std=c99 -isysroot /toolchain4/sys
-D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -g0 -O2 -Wno-attributes -Wno-trigraphs
-Wreturn-type -Wunused-variable -I"." main.m -o main.o
4) source file:
only a main function
int main(int argc, char *argv[])
{
//NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
//int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
//[pool release];
return 1;
}
5) error info
clang -ccc-host-triple arm-apple-darwin9 -include LocalPush-Prefix.pch -c
-ObjC -fblocks -std=c99 -isysroot /toolchain4/sys
-D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -g0 -O2 -Wno-attributes -Wno-trigraphs
-Wreturn-type -Wunused-variable -I"." main.m -o main.o
clang: error: unable to execute command: Program could not be executed
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: error: unable to execute command: Program could not be executed
clang: note: diagnostic msg: Error generating preprocessed source(s).
Makefile:116: recipe for target `main.o' failed
make: *** [main.o] Error 255
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 19:56:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 01:56:08 +0000
Subject: [LLVMbugs] [Bug 11550] New: Missing warning for unused variables of
a class type with user declare constructor
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11550
Bug #: 11550
Summary: Missing warning for unused variables of a class type
with user declare constructor
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
We don't warn about
-------------------
struct S {
S();
};
S foo();
void bar() {
S x = foo();
}
-----------------
gcc 4.6 warns about x being "set but not used", which I don't think is
technically correct, but it is better than nothing.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 21:35:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 03:35:45 +0000
Subject: [LLVMbugs] [Bug 11547] Clang crash compiling newlib
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11547
JP changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from JP 2011-12-12 21:35:45 CST ---
I'm closing this - I just built ToT on another machine and it's working. I'm
assuming the tree where it occurs has something wrong. I'll reopen if
necessary.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 02:20:09 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 08:20:09 +0000
Subject: [LLVMbugs] [Bug 11551] New: Header search problem with clang trunk
(3.1)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11551
Bug #: 11551
Summary: Header search problem with clang trunk (3.1)
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Headers
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ismail at namtrac.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7717
--> http://llvm.org/bugs/attachment.cgi?id=7717
clang 3.0 strace
Simple testcase:
#include
int main()
{
}
[/kutu/t]> clang -v
clang version 3.1 (trunk 146366)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[/kutu/t]> clang -c test.c
test.c:1:10: fatal error: 'stddef.h' file not found
#include
^
1 error generated.
Rolling back to clang 3.0
[/kutu/t]> clang -v
SUSE Linux clang version 3.0 (branches/release_30 145598) (based on LLVM 3.0)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[/kutu/t]> clang test.c
[/kutu/t]>
I will attached strace -efile clang -c test.c output for clang 3.0 and 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 Tue Dec 13 02:24:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 08:24:21 +0000
Subject: [LLVMbugs] [Bug 11552] New: make check-all not path independent,
e.g. Preprocessor/macro_paste_c_block_comment.c fails on
/scratch/...
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11552
Bug #: 11552
Summary: make check-all not path independent, e.g.
Preprocessor/macro_paste_c_block_comment.c fails on
/scratch/...
Product: Test Suite
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: lit
AssignedTo: unassignedbugs at nondot.org
ReportedBy: patrik.h.hagglund at ericsson.com
CC: daniel at zuster.org, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Preprocessor/macro_paste_c_block_comment.c contains 'not grep scratch', which
means that it fails if executed under for example /scratch/...
******************** TEST 'Clang :: Preprocessor/macro_paste_c_block_comment.c'
FAILED ********************
Script:
--
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/build/Release+Asserts/bin/clang
-cc1 -internal-isystem
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/build/Release+Asserts/bin/../lib/clang/3.1/include
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/source/tools/clang/test/Preprocessor/macro_paste_c_block_comment.c
-Eonly 2>&1 | grep error
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/build/Release+Asserts/bin/clang
-cc1 -internal-isystem
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/build/Release+Asserts/bin/../lib/clang/3.1/include
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/source/tools/clang/test/Preprocessor/macro_paste_c_block_comment.c
-Eonly 2>&1 | not grep unterminated
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/build/Release+Asserts/bin/clang
-cc1 -internal-isystem
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/build/Release+Asserts/bin/../lib/clang/3.1/include
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/source/tools/clang/test/Preprocessor/macro_paste_c_block_comment.c
-Eonly 2>&1 | not grep scratch
--
Exit Code: 1
Command Output (stdout):
--
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/source/tools/clang/test/Preprocessor/macro_paste_c_block_comment.c:6:1:
error: pasting formed '/*', an invalid preprocessing token
1 error generated.
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/source/tools/clang/test/Preprocessor/macro_paste_c_block_comment.c:6:1:
error: pasting formed '/*', an invalid preprocessing token
/scratch/bb-slaves/mipssw001/LLVM_optimize_install/source/tools/clang/test/Preprocessor/macro_paste_c_block_comment.c:5:16:
note: expanded from macro 'COMM'
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 08:22:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 14:22:45 +0000
Subject: [LLVMbugs] [Bug 11551] Header search problem with clang trunk (3.1)
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11551
?smail "cartman" D?nmez changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #5 from ?smail "cartman" D?nmez 2011-12-13 08:22:45 CST ---
Fixed by correctly setting clang resource directory.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 09:09:28 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 15:09:28 +0000
Subject: [LLVMbugs] [Bug 11553] New: clang segfaults when compiling
mesa-7.11.2 with debug symbols
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11553
Bug #: 11553
Summary: clang segfaults when compiling mesa-7.11.2 with debug
symbols
Product: clang
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: balicki.aleksander at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7721
--> http://llvm.org/bugs/attachment.cgi?id=7721
preprocessed source file
tried installing mesa by:
FEATURES=splitdebug CC=clang CXX=clang++ emerge =mesa-7.11.2
the installation crashes with clang segfaulting
attaching 2 preprocessed files that diagnostic messages suggested and the build
log
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 09:31:52 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 15:31:52 +0000
Subject: [LLVMbugs] [Bug 11554] New: basictypes.h: Conflict between int64
and hardcoded long long on GCC 4.6.2 64 bit host build.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11554
Bug #: 11554
Summary: basictypes.h: Conflict between int64 and hardcoded
long long on GCC 4.6.2 64 bit host build.
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: rickfoosusa at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7724
--> http://llvm.org/bugs/attachment.cgi?id=7724
Patch to fix int64t / long long conflict in sscanf.
Build on Fedora 16 64 bit host fails. Conflict in sscanf between SCNx64 (llx)
and SCNd64 (int64_t). Compiler defines int64_t as long.
Patch for basictypes.h below resolves build problem. Passes unittests. Since
'long long' was hardcoded in int_types.h, I also hardcoded it in basictypes.h.
Since long long should always translate to int64t (when available), seems to
make sense.
-Rick
make[5]: Entering directory `/home/rick/llvm/projects/compiler-rt'
COMPILE: clang_linux/asan-x86_64/x86_64:
/home/rick/llvm/projects/compiler-rt/lib/asan/sysinfo/sysinfo.cc
/home/rick/llvm/projects/compiler-rt/lib/asan/sysinfo/sysinfo.cc:324:27: error:
conversion specifies type 'unsigned long long *' but the argument has
type
'uint64 *' (aka 'unsigned long *') [-Werror,-Wformat]
if (sscanf(stext_, "%"SCNx64"-%"SCNx64" %4s %"SCNx64" %x:%x %"SCNd64" %n",
~~^
/home/rick/llvm/projects/compiler-rt/lib/asan/sysinfo/basictypes.h:82:19: note:
expanded from macro 'SCNx64'
#define SCNx64 "llx"
^
/home/rick/llvm/projects/compiler-rt/lib/asan/sysinfo/sysinfo.cc:324:37: error:
conversion specifies type 'unsigned long long *' but the argument has
type
'uint64 *' (aka 'unsigned long *') [-Werror,-Wformat]
if (sscanf(stext_, "%"SCNx64"-%"SCNx64" %4s %"SCNx64" %x:%x %"SCNd64" %n",
~~^
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 11:47:09 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 17:47:09 +0000
Subject: [LLVMbugs] [Bug 11555] New: OpenCL counts can overflow
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11555
Bug #: 11555
Summary: OpenCL counts can overflow
Product: clang
Version: 3.0
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schnetter at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In OpenCL, shift counts should be taken modulo the size of the datatype. This
piece of code shows that this is not the case:
if (((char)1 << (char)8) != (char)1) {
printf("char FAIL\n");
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 12:41:05 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 18:41:05 +0000
Subject: [LLVMbugs] [Bug 11556] New: VLA folded pedantic error in -std=gnu99
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11556
Bug #: 11556
Summary: VLA folded pedantic error in -std=gnu99
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: max at duempel.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following code generates a warning with -pedantic:
static const int size = 100;
void foo(void) { int data[size]; }
vla.c:2:27: warning: variable length array folded to constant array as an
extension [-pedantic]
The warning occurs only with "-std=gnu99" (or no "std" option, which defaults
to gnu99). It disappears with "-std=c99". Both C99 modes should behave the same
way here, and this warning makes sense only in "gnu89" 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 Dec 13 12:56:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 18:56:12 +0000
Subject: [LLVMbugs] [Bug 11557] New: Clang trunk build broken on Ubuntu
11.04 x64
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11557
Bug #: 11557
Summary: Clang trunk build broken on Ubuntu 11.04 x64
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: abiryan at ryand.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I have a nightly build of clang trunk (inside llvm trunk) running on an Ubuntu
11.04 x64 machine, and using the CMake build. The build was broken between
r146143 and r146243 (the commits added the day it broke). I get the following
message:
[ 59%] Building CXX object
tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/DiagnosticIDs.cpp.o
In file included from
/var/lib/jenkins/jobs/Clang-Trunk/workspace/llvm/tools/clang/lib/Basic/DiagnosticIDs.cpp:24:0:
/var/lib/jenkins/jobs/Clang-Trunk/workspace/llvm/tools/clang/include/clang/Serialization/SerializationDiagnostic.h:21:56:
fatal error: clang/Basic/DiagnosticSerializationKinds.inc: No such file or
directory
compilation terminated.
make[2]: ***
[tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/DiagnosticIDs.cpp.o] Error 1
make[1]: *** [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/all] Error 2
make: *** [all] Error 2
It continues to be broken since then, even on a completely clean checkout and
build, through at least my most recent build (r146476)
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 14:58:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 13 Dec 2011 20:58:21 +0000
Subject: [LLVMbugs] [Bug 11558] New: Crash in ActOnExplicitInstantiation():
"point of instantiation must be valid!"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11558
Bug #: 11558
Summary: Crash in ActOnExplicitInstantiation(): "point of
instantiation must be valid!"
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
tests-MacBook-Pro-2:delta test$ cat repro.ii
namespace std {
template
class basic_string;
typedef basic_string string;
template class BasicStringPiece;
template <> class BasicStringPiece {
};
extern template class BasicStringPiece;
template class BasicStringPiece;
} // namespace std
tests-MacBook-Pro-2:delta test$ gcc -x c++ -c repro.ii
tests-MacBook-Pro-2:delta test$
~/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/clang -x c++ -c
repro.ii
Assertion failed: (Loc.isValid() && "point of instantiation must be valid!"),
function setPointOfInstantiation, file
/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm/tools/clang/lib/Sema/../../include/clang/AST/DeclTemplate.h,
line 1416.
0 clang 0x00000001014c9ac2 _ZL15PrintStackTracePv + 34
1 clang 0x00000001014c9ff9 _ZL13SignalHandleri + 713
2 libsystem_c.dylib 0x00007fff8b0ffcfa _sigtramp + 26
3 clang 0x00000001002eb2ea clang::Parser::ParseTemplateArgument()
+ 138
4 clang 0x00000001000441e6 abort + 22
5 clang 0x0000000100044238 __assert_rtn + 56
6 clang 0x0000000100503cf5
clang::Sema::ActOnExplicitInstantiation(clang::Scope*, clang::SourceLocation,
clang::SourceLocation, unsigned int, clang::SourceLocation, clang::CXXScopeSpec
const&, clang::OpaquePtr, clang::SourceLocation,
clang::SourceLocation, clang::ASTTemplateArgsPtr, clang::SourceLocation,
clang::AttributeList*) + 2119
7 clang 0x00000001002c0ee8
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, bool) + 2710
8 clang 0x00000001002b3e5e
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 6218
9 clang 0x00000001002ed4b5
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier, clang::AttributeList*) + 717
10 clang 0x00000001002ea15d
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 429
11 clang 0x00000001002b6fc3
clang::Parser::ParseDeclaration(clang::ASTOwningVector&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 381
12 clang 0x00000001002f723e
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1776
13 clang 0x00000001002c287a
clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 256
14 clang 0x00000001002b861b clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 3323
15 clang 0x00000001002b706b
clang::Parser::ParseDeclaration(clang::ASTOwningVector