From bugzilla-daemon at llvm.org Sat Nov 1 01:17:33 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 01 Nov 2014 08:17:33 +0000
Subject: [LLVMbugs] [Bug 21440] Inconsistent Output at O1 optimization level
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21440
Suyog Sarda changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Suyog Sarda ---
-fwrapv flag make things clear.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sat Nov 1 01:25:54 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 01 Nov 2014 08:25:54 +0000
Subject: [LLVMbugs] [Bug 21441] New: Please change clang's component C++1y
to C++14, and add component C++1z
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21441
Bug ID: 21441
Summary: Please change clang's component C++1y to C++14, and
add component C++1z
Product: Bugzilla Admin
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Products
Assignee: unassignedbugs at nondot.org
Reporter: jonathan.sauer at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
As C++14 has been published, clang's component "C++1y" should be renamed to
"C++14". Also, as clang has been gaining initial support for C++1z, a component
"C++1z" should be added as well.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sat Nov 1 01:32:05 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 01 Nov 2014 08:32:05 +0000
Subject: [LLVMbugs] [Bug 21442] New: Product "Packaging",
component "binary tarballs" does not CC llvmbugs@cs.uiuc.edu by
default
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21442
Bug ID: 21442
Summary: Product "Packaging", component "binary tarballs" does
not CC llvmbugs at cs.uiuc.edu by default
Product: Bugzilla Admin
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Mail
Assignee: unassignedbugs at nondot.org
Reporter: jonathan.sauer at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Summary says it all: Currently the Bugzilla product "Packaging"'s component
"binary tarballs" does not automatically add llvmbugs at cs.uiuc.edu to a new
bug's CC list.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sat Nov 1 04:58:15 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 01 Nov 2014 11:58:15 +0000
Subject: [LLVMbugs] [Bug 21443] New: [PPC64] Wrong register generated for
inline assembler
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21443
Bug ID: 21443
Summary: [PPC64] Wrong register generated for inline assembler
Product: libraries
Version: trunk
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: PowerPC
Assignee: unassignedbugs at nondot.org
Reporter: kai at redstar.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13270
--> http://llvm.org/bugs/attachment.cgi?id=13270&action=edit
.ll file demonstrating the bug
The attached file ppc_inline.ll works fine if compiled with -O0 but not with a
higher optimization level. Root cause is that a std 23, 0(0) is generated which
causes a segmentation fault.
The original source is part of the D runtime library, see here:
https://github.com/ldc-developers/druntime/blob/ldc/src/core/thread.d#L2148
The purpose of the code is to store all nonvolatile GPRs on the stack to enable
the garbage collector to scan the register values.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sat Nov 1 09:38:29 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 01 Nov 2014 16:38:29 +0000
Subject: [LLVMbugs] [Bug 21444] New: Simple _Unwind_Backtrace test fails on
ARM
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21444
Bug ID: 21444
Summary: Simple _Unwind_Backtrace test fails on ARM
Product: libc++abi
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: renato.golin at linaro.org
CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
Classification: Unclassified
http://lab.llvm.org:8011/builders/libcxx-libcxxabi-arm-linux/builds/23/steps/test.libcxxabi/logs/stdio
backtrace_test.cpp:59: int main(): Assertion `nothrow_ntraced > 1' failed.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sat Nov 1 11:43:56 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 01 Nov 2014 18:43:56 +0000
Subject: [LLVMbugs] [Bug 21445] New: clang crashes on valid code at -O1 and
above on x86_64-linux-gnu
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21445
Bug ID: 21445
Summary: clang crashes on valid code at -O1 and above on
x86_64-linux-gnu
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: su at cs.ucdavis.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The current clang trunk and 3.5.0 crash when compiling the following test case
at -O1 and above in both 32-bit and 64-bit modes on x86_64-linux-gnu.
This is a regression from clang 3.4.x.
$ clang-trunk -v
clang version 3.6.0 (trunk 220897)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.1
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
$
$ clang-trunk -O0 -c small.c
$ clang-3.4.2 -O1 -c small.c
$
$ clang-trunk -O1 -c small.c
clang: /tmp/llvm/include/llvm/Support/Casting.h:237: typename cast_retty::ret_type llvm::cast(Y *) [X = llvm::Instruction, Y = llvm::Value]:
Assertion `isa(Val) && "cast() argument of incompatible type!"' failed.
#0 0x28de3fa llvm::sys::PrintStackTrace(_IO_FILE*)
(/usr/local/clang-trunk/bin/clang+0x28de3fa)
#1 0x28dfabb (/usr/local/clang-trunk/bin/clang+0x28dfabb)
#2 0x7f9caa08acb0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0xfcb0)
#3 0x7f9ca93c30d5 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x360d5)
#4 0x7f9ca93c683b abort (/lib/x86_64-linux-gnu/libc.so.6+0x3983b)
#5 0x7f9ca93bbd9e (/lib/x86_64-linux-gnu/libc.so.6+0x2ed9e)
#6 0x7f9ca93bbe42 (/lib/x86_64-linux-gnu/libc.so.6+0x2ee42)
#7 0x24c3949 (/usr/local/clang-trunk/bin/clang+0x24c3949)
#8 0x24c0c54 (/usr/local/clang-trunk/bin/clang+0x24c0c54)
#9 0x247dcfb (/usr/local/clang-trunk/bin/clang+0x247dcfb)
#10 0x247ea30 (/usr/local/clang-trunk/bin/clang+0x247ea30)
#11 0x286d513 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/local/clang-trunk/bin/clang+0x286d513)
#12 0x286d78b llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/local/clang-trunk/bin/clang+0x286d78b)
#13 0x286dce7 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/clang-trunk/bin/clang+0x286dce7)
#14 0x8f5d33 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) (/usr/local/clang-trunk/bin/clang+0x8f5d33)
#15 0x8eaa05 (/usr/local/clang-trunk/bin/clang+0x8eaa05)
#16 0xaed043 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/clang-trunk/bin/clang+0xaed043)
#17 0x6fc02e clang::FrontendAction::Execute()
(/usr/local/clang-trunk/bin/clang+0x6fc02e)
#18 0x6cf3cc clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/clang-trunk/bin/clang+0x6cf3cc)
#19 0x6b1622 clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/clang-trunk/bin/clang+0x6b1622)
#20 0x6a7d77 cc1_main(llvm::ArrayRef, char const*, void*)
(/usr/local/clang-trunk/bin/clang+0x6a7d77)
#21 0x6afccb main (/usr/local/clang-trunk/bin/clang+0x6afccb)
#22 0x7f9ca93ae76d __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2176d)
#23 0x6a79e9 _start (/usr/local/clang-trunk/bin/clang+0x6a79e9)
Stack dump:
0. Program arguments: /usr/local/clang-trunk/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name small.c
-mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -dwarf-column-info
-coverage-file /home/su/small.c -resource-dir
/usr/local/clang-trunk/bin/../lib/clang/3.6.0 -internal-isystem
/usr/local/include -internal-isystem
/usr/local/clang-trunk/bin/../lib/clang/3.6.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O1 -fdebug-compilation-dir /home/su
-ferror-limit 19 -fmessage-length 113 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o small.o -x c small.c
1. parser at end of file
2. Per-module optimization passes
3. Running pass 'Function Pass Manager' on module 'small.c'.
4. Running pass 'Combine redundant instructions' on function '@fn1'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0 (trunk 220897)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/small-de8c1c.c
clang: note: diagnostic msg: /tmp/small-de8c1c.sh
clang: note: diagnostic msg:
********************
$
----------------------------
int b[2], d;
static int *c = &b[1];
unsigned char e, g;
void
fn1 ()
{
int *h = &d;
g = (c != h) - 1;
if (e * g)
while (1)
;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sat Nov 1 16:46:42 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 01 Nov 2014 23:46:42 +0000
Subject: [LLVMbugs] [Bug 21445] clang crashes on valid code at -O1 and above
on x86_64-linux-gnu
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21445
David Majnemer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Assignee|unassignedclangbugs at nondot. |david.majnemer at gmail.com
|org |
--- Comment #2 from David Majnemer ---
Fixed in r221069.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sat Nov 1 19:54:42 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 02:54:42 +0000
Subject: [LLVMbugs] [Bug 21446] New: Trailing decltype in variadic function
with explicitly specified template parameters fails
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21446
Bug ID: 21446
Summary: Trailing decltype in variadic function with explicitly
specified template parameters fails
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: eniebler at boost.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This code fails to compile:
template
void boinc(Us...us)
{}
template
auto foo(Us...us) -> decltype(boinc(((Us)us)...))
{
}
int main()
{
foo(0,0,0);
}
The error I get is:
test.cpp:13:5: error: no matching function for call to 'foo'
foo(0,0,0);
^~~~~~~~~~~~~~~~~~
test.cpp:7:6: note: candidate template ignored: substitution failure
[with Us = ]: pack expansion contains parameter packs 'Us'
and 'us' that have different lengths (3 vs. 4)
auto foo(Us...us) -> decltype(boinc(((Us)us)...))
^ ~~~
1 error generated.
This is obviously bogus.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sat Nov 1 22:12:52 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 05:12:52 +0000
Subject: [LLVMbugs] [Bug 21441] Please change clang's component C++1y to
C++14, and add component C++1z
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21441
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Chris Lattner ---
Done, thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sat Nov 1 22:19:34 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 05:19:34 +0000
Subject: [LLVMbugs] [Bug 21447] New: string_view::to_string() is not marked
const
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21447
Bug ID: 21447
Summary: string_view::to_string() is not marked const
Product: libc++
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: jvp4846 at g.rit.edu
CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
Classification: Unclassified
The implementation of std::experimental::string_view::to_string() isn't marked
const, even though n4082[1] says it should be. The std::string conversion
operator *is* marked const, however.
If no one fixes this in a day or two, I'll write up a patch. I assume I'd have
to write tests for this?
[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4082.pdf
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 01:36:06 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 09:36:06 +0000
Subject: [LLVMbugs] [Bug 21448] New: Loads are not combined across
llvm.assume
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21448
Bug ID: 21448
Summary: Loads are not combined across llvm.assume
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: kfischer at college.harvard.edu
CC: hfinkel at anl.gov, llvmbugs at cs.uiuc.edu
Classification: Unclassified
I tried out the llvm.assume functionality and unfortunately it caused a rather
large regression in my test case because several loads were no longer combined
across the llvm.assume. I presume this is because LoadCombine does not know
that llvm.assume does not write to memory.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 01:47:21 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 09:47:21 +0000
Subject: [LLVMbugs] [Bug 18254] Templated lambda cause with C++ modules
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=18254
Vassil Vassilev changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 03:51:04 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 11:51:04 +0000
Subject: [LLVMbugs] [Bug 21449] New: Assertion EST != EST_Unevaluated && EST
!= EST_Uninstantiated with destructor and uniform initialization
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21449
Bug ID: 21449
Summary: Assertion EST != EST_Unevaluated && EST !=
EST_Uninstantiated with destructor and uniform
initialization
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: jonathan.sauer at gmx.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13271
--> http://llvm.org/bugs/attachment.cgi?id=13271&action=edit
log of clang execution
The following code crashes clang r220759 with an assertion:
struct Bar {
Bar();
~Bar();
};
struct Foo {
Bar a, b;
};
Foo* makeFoo()
{
return new Foo {
/*Bar*/{ },
/*Bar*/{ }
};
}
This results in (full log attached):
% ~/LLVM/build/Release+Asserts/bin/clang++ -std=c++11 -c clang.cpp
Assertion failed: (EST != EST_Unevaluated && EST != EST_Uninstantiated),
function isNothrow, file
/Users/rynnsauer/LLVM/llvm/tools/clang/lib/AST/Type.cpp, line 1701.
0 clang 0x000000010f157f0f
llvm::sys::PrintStackTrace(__sFILE*) + 47
1 clang 0x000000010f15872b SignalHandler(int) + 555
2 libsystem_platform.dylib 0x00007fff8ffe35aa _sigtramp + 26
3 libsystem_platform.dylib 000000000000000000 _sigtramp + 1879165552
4 clang 0x000000010f1584e6 abort + 22
5 clang 0x000000010f1584c1 __assert_rtn + 81
6 clang 0x000000010e4764f0
clang::FunctionProtoType::isNothrow(clang::ASTContext const&, bool) const + 256
7 clang 0x000000010d722130
clang::CodeGen::CodeGenModule::ConstructAttributeList(clang::CodeGen::CGFunctionInfo
const&, clang::Decl const*, llvm::SmallVector&,
unsigned int&, bool) + 528
8 clang 0x000000010d831af7
clang::CodeGen::CodeGenModule::SetFunctionAttributes(clang::GlobalDecl,
llvm::Function*, bool) + 199
9 clang 0x000000010d833d1b
clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef,
llvm::Type*, clang::GlobalDecl, bool, bool, llvm::AttributeSet) + 523
10 clang 0x000000010d71b7fb
clang::CodeGen::CodeGenModule::getAddrOfCXXStructor(clang::CXXMethodDecl
const*, clang::CodeGen::StructorType, clang::CodeGen::CGFunctionInfo const*,
llvm::FunctionType*, bool) + 283
11 clang 0x000000010d882f32 (anonymous
namespace)::ItaniumCXXABI::EmitDestructorCall(clang::CodeGen::CodeGenFunction&,
clang::CXXDestructorDecl const*, clang::CXXDtorType, bool, bool, llvm::Value*)
+ 258
[...]
Doing one of the following will make the crash disappear:
- Removing Bar's destructor.
- Changing makeFoo's return type from Foo* to Foo.
- Uncommenting one or both of the Bar's inside makeFoo.
This bug is similar to bug 20619: The same assertion is triggered, however not
in the context of a lambda function.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 07:35:53 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 15:35:53 +0000
Subject: [LLVMbugs] [Bug 21428] Truncated output of negative int64_t to
std::ostream with std::hex
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21428
Marshall Clow (home) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Marshall Clow (home) ---
Fixed in revision 221101.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 07:36:09 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 15:36:09 +0000
Subject: [LLVMbugs] [Bug 21428] Truncated output of negative int64_t to
std::ostream with std::hex
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21428
Marshall Clow (home) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #6 from Marshall Clow (home) ---
Sorry - wrong bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 07:36:33 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 15:36:33 +0000
Subject: [LLVMbugs] [Bug 21447] string_view::to_string() is not marked const
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21447
Marshall Clow (home) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Marshall Clow (home) ---
Fixed in revision 221101
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 08:31:38 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 16:31:38 +0000
Subject: [LLVMbugs] [Bug 21450] New: building boost on windows
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21450
Bug ID: 21450
Summary: building boost on windows
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: kreuzerkrieg at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Hi
it is more a question than a bug not sure how to qualify it. I'm trying to
build boost using pure msvc build chain and llvm (clang-cl), no mingw or
whatever Linux stuff for windows. I've spent two days searching for the answer,
applied numerous command line switches withno result, it still fails for
exception generating code. I've followed the link here
http://lists.boost.org/boost-build/2013/10/27057.php and still it cannot handle
exception code. I've added /GR- /D _HAS_EXCEPTIONS=0 to the command line in
clang-win.jam but it still does not compile with the same
".\boost/throw_exception.hpp(69,5) : error: cannot compile this throw
expression yet".
so the question, is it possible at all? and I guess I'm not the first one to
ask this question. may we have a tutorial how to build boost on windows?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 12:05:38 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 20:05:38 +0000
Subject: [LLVMbugs] [Bug 21451] New: PowerPC cc clobber should be an alias
for cr0
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21451
Bug ID: 21451
Summary: PowerPC cc clobber should be an alias for cr0
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: PowerPC
Assignee: unassignedbugs at nondot.org
Reporter: anton at samba.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In bug 19326 we made "cc" represent a clobber of the entire condition register.
It turns out "cc" is actually an alias for "cr0":
https://lists.ozlabs.org/pipermail/linuxppc-dev/2014-November/122391.html
I had the same incorrect assumption.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 12:23:50 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 20:23:50 +0000
Subject: [LLVMbugs] [Bug 21452] New: PowerPC inline assembly "=&r"
constraint failing
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21452
Bug ID: 21452
Summary: PowerPC inline assembly "=&r" constraint failing
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: PowerPC
Assignee: unassignedbugs at nondot.org
Reporter: anton at samba.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13272
--> http://llvm.org/bugs/attachment.cgi?id=13272&action=edit
Inline assembly testcase
The attached testcase built with -O2 -mcpu=power7 is buggy.
asm volatile(" lwsync\n"
"1: lwarx %0,0,%1 # atomic_dec_return\n"
" addic %0,%0,-1\n"
" stwcx. %0,0,%1\n"
" bne- 1b\n"
" sync\n"
:"=&r"(t)
:"r"(&v->counter)
:"cr0", "xer", "memory");
"=&r" should be enough to prevent t and v->counter ending up in the same
register, but it does:
1: lwarx 30,0,30 # atomic_dec_return
addic 30,30,-1
stwcx. 30,0,30
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 15:30:18 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 02 Nov 2014 23:30:18 +0000
Subject: [LLVMbugs] [Bug 13825] [patch] fixed unused std::string variable
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=13825
Will Dietz changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |llvmbugs at cs.uiuc.edu
Component|New Bugs |new bugs
Version|trunk |unspecified
Assignee|jtcriswel at gmail.com |unassignedbugs at nondot.org
Product|DSA |new-bugs
--- Comment #1 from Will Dietz ---
Looks like wrong project, not DSA.
Resetting project and assignment, not sure where this goes. Is this code still
part of LLVM?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Sun Nov 2 17:26:45 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 01:26:45 +0000
Subject: [LLVMbugs] [Bug 21460] New: Segfault istream.tellg() and
unordered_map
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21460
Bug ID: 21460
Summary: Segfault istream.tellg() and unordered_map
Product: clang
Version: 3.5
Hardware: PC
OS: Windows NT
Status: NEW
Severity: release blocker
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: mail at tylor.io
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
I get a segfault when calling tellg() on any istream.
#include
#include
int main() {
std::string str = "Hello, world";
std::istringstream in(str);
std::string word;
in >> word;
int pos = in.tellg();
}
I also get a segfault when trying to insert an element into a unordered_map
#include
int main() {
std::unordered_map int_map;
int_map[2] = 3;
}
When I run this through gdb I get this:
Program received signal SIGSEGV, Segmentation fault.
0x000000006fc8cac8 in ?? () from c:\msys64\mingw64\bin\libstdc++-6.dll
I running this on Windows 7 using the mingw64 package via msys2
I don't get this behavior with g++ 4.9.1 or in the mingw32 package of the same
version.
$ clang++ --version
clang version 3.5.0 (tags/RELEASE_350/final)
Target: x86_64-w64-windows-gnu
Thread model: posix
$ uname -a
MINGW64_NT-6.1 tower 2.0.0(0.279/5/3) 2014-10-27 06:58 x86_64 Msys
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 01:17:05 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 09:17:05 +0000
Subject: [LLVMbugs] [Bug 21461] New: Unsupported Modifier error :
UNREACHABLE executed at
..../lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp:78!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21461
Bug ID: 21461
Summary: Unsupported Modifier error : UNREACHABLE executed at
..../lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWrite
r.cpp:78!
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm at web.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following call of clang breaks with an error message - it should compile a
test code with a Hello Word C code for a powerpc target:
clang -integrated-as -g -fmemsafety -mrelocation-model static -target powerpc
tc.c -L/home/uid04950/WORK/LLVM_INSTALL/lib
-I/home/uid04950/WORK/LLVM_INSTALL/include
Target: powerpc
Thread model: posix
"/home/uid04950/WORK/LLVM_INSTALL/bin/clang" -cc1 -triple powerpc -emit-obj
-mrelax-all -disable-free -main-file-name tc.c -mrelocation-model static
-mdisable-fp-elim -fmath-errno -mconstructor-aliases -target-cpu ppc
-target-linker-version 2.24.51.20140703 -momit-leaf-frame-pointer -v -g
-resource-dir /home/uid04950/WORK/LLVM_INSTALL/bin/../lib/clang/3.2 -I
/home/uid04950/WORK/LLVM_INSTALL/include -fmodule-cache-path
/var/tmp/clang-module-cache -fdebug-compilation-dir
/home/uid04950/WORK/LLVM_INSTALL -ferror-limit 19 -fmessage-length 271
-fmemsafety -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/tc-DJ01MW.o -x c tc.c
clang -cc1 version 3.2 based upon LLVM 3.2svn default target
powerpc-unknown-elf
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/home/uid04950/WORK/LLVM_INSTALL/include
/home/uid04950/WORK/LLVM_INSTALL/bin/../lib/clang/3.2/include
/usr/include
End of search list.
Unsupported Modifier
UNREACHABLE executed at
/home/uid04950/WORK/LLVM_SRC/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp:78!
Stack dump:
0. Program arguments: /home/uid04950/WORK/LLVM_INSTALL/bin/clang -cc1
-triple powerpc -emit-obj -mrelax-all -disable-free -main-file-name tc.c
-mrelocation-model static -mdisable-fp-elim -fmath-errno -mconstructor-aliases
-target-cpu ppc -target-linker-version 2.24.51.20140703
-momit-leaf-frame-pointer -v -g -resource-dir
/home/uid04950/WORK/LLVM_INSTALL/bin/../lib/clang/3.2 -I
/home/uid04950/WORK/LLVM_INSTALL/include -fmodule-cache-path
/var/tmp/clang-module-cache -fdebug-compilation-dir
/home/uid04950/WORK/LLVM_INSTALL -ferror-limit 19 -fmessage-length 271
-fmemsafety -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/tc-DJ01MW.o -x c tc.c
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'tc.c'.
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (:
http://llvm.org/svn/llvm-project/safecode/branches/release_32/tools/clang)
Target: powerpc
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/tc-Fl8CKf.c
clang: note: diagnostic msg: /tmp/tc-Fl8CKf.sh
clang: note: diagnostic msg:
********************
/tmp/tc-Fl8CKf.sh:
/home/uid04950/WORK/LLVM_INSTALL/bin/clang -cc1 -triple powerpc -emit-obj
-mrelax-all -disable-free -main-file-name tc.c -mrelocation-model static
-mdisable-fp-elim -fmath-errno -mconstructor-aliases -target-cpu ppc
-target-linker-version 2.24.51.20140703 -momit-leaf-frame-pointer -v -g
-ferror-limit 19 -fmessage-length 271 -fmemsafety -mstackrealign
-fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -x c tc-Fl8CKf.c
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 01:46:52 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 09:46:52 +0000
Subject: [LLVMbugs] [Bug 20878] clang version 3.5 is not selectable as
version
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=20878
jwillemsen at remedy.nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from jwillemsen at remedy.nl ---
closing, 3.5 is now available
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 06:52:09 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 14:52:09 +0000
Subject: [LLVMbugs] [Bug 21366] clang and mingw disagree about dllexported
classes
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21366
Hans Wennborg changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Hans Wennborg ---
Looking closer, it seems that MinGW never dllimport's an inline function. It
even warns or errors if the user tries to put the attribute on a function.
This should now be fixed in r221154.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 08:10:13 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 16:10:13 +0000
Subject: [LLVMbugs] [Bug 21462] New: lib/Target/Mips/MipsABIInfo.h:40:
performance problem ?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21462
Bug ID: 21462
Summary: lib/Target/Mips/MipsABIInfo.h:40: performance problem
?
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dcb314 at hotmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
lib/Target/Mips/MipsABIInfo.h:40]: (performance) Function parameter 'Other'
should be passed by reference.
bool operator<(const MipsABIInfo Other) const {
Maybe
bool operator<(const MipsABIInfo & Other) const {
would be better.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 08:14:22 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 16:14:22 +0000
Subject: [LLVMbugs] [Bug 21463] New:
tools/clang/lib/Driver/ToolChains.cpp:2091: 2 * performance problem ?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21463
Bug ID: 21463
Summary: tools/clang/lib/Driver/ToolChains.cpp:2091: 2 *
performance problem ?
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dcb314 at hotmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
> [trunk/llvm/tools/clang/lib/Driver/ToolChains.cpp:2091]: (performance) Function parameter 'Ver' should be passed by reference.
> [trunk/llvm/tools/clang/lib/Driver/ToolChains.cpp:2092]: (performance) Function parameter 'MarchString' should be passed by reference.
static void GetHexagonLibraryPaths(
const ArgList &Args,
const std::string Ver,
const std::string MarchString,
const std::string &InstalledDir,
ToolChain::path_list *LibPaths)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 08:15:53 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 16:15:53 +0000
Subject: [LLVMbugs] [Bug 21464] New: tools/llvm-objdump/MachODump.cpp:127:
possible performance problem ?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21464
Bug ID: 21464
Summary: tools/llvm-objdump/MachODump.cpp:127: possible
performance problem ?
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dcb314 at hotmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
> [trunk/llvm/tools/llvm-objdump/MachODump.cpp:127]: (performance) Function parameter 'i' should be passed by reference.
> [trunk/llvm/tools/llvm-objdump/MachODump.cpp:128]: (performance) Function parameter 'j' should be passed by reference.
static bool compareDiceTableEntries(const DiceTableEntry i,
const DiceTableEntry j) {
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 08:20:18 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 16:20:18 +0000
Subject: [LLVMbugs] [Bug 21399] Don't dllexport vftable in anonymous classes
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21399
Hans Wennborg changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Hans Wennborg ---
Seeing as we already error for exporting/importing functions with internal
linkage, I figure we should do the same for classes.
r221160
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 09:48:01 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 17:48:01 +0000
Subject: [LLVMbugs] [Bug 21250] Cannot select: intrinsic %llvm.x86.sse41.dpps
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21250
Sanjay Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Sanjay Patel ---
The crashing should have been fixed in Clang trunk with:
http://llvm.org/viewvc/llvm-project?view=revision&revision=217311
Please reopen if this is still not working for you.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 10:39:20 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 18:39:20 +0000
Subject: [LLVMbugs] [Bug 21465] New: [NVPTX] byval parameters are
incorrectly lowered
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21465
Bug ID: 21465
Summary: [NVPTX] byval parameters are incorrectly lowered
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: PTX
Assignee: unassignedbugs at nondot.org
Reporter: wujingyue at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The current backend treats the base address of a byval parameter as a generic
pointer. However, generic loads don't actually work with a pointer to the
parameter space. Here's a small test case to reproduce this issue:
CUDA:
struct S {
int a, b;
};
__attribute__((global)) void TakesStruct(S input, int *output) {
*output = input.b;
}
LLVM IR:
target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
target triple = "nvptx64-unknown-unknown"
%struct.S = type { i32, i32 }
; Function Attrs: nounwind
define void @_Z11TakesStruct1SPi(%struct.S* byval nocapture readonly %input,
i32* nocapture %output) #0 {
entry:
%b = getelementptr inbounds %struct.S* %input, i64 0, i32 1
%0 = load i32* %b, align 4, !tbaa !2
store i32 %0, i32* %output, align 4, !tbaa !7
ret void
}
attributes #0 = { nounwind "less-precise-fpmad"="false"
"no-frame-pointer-elim"="false" "no-infs-fp-math"="false"
"no-nans-fp-math"="false" "stack-protector-buffer-size"="8"
"unsafe-fp-math"="false" "use-soft-float"="false" }
!nvvm.annotations = !{!0}
!llvm.ident = !{!1}
!0 = metadata !{void (%struct.S*, i32*)* @_Z11TakesStruct1SPi, metadata
!"kernel", i32 1}
!1 = metadata !{metadata !"clang version 3.6.0 (http://llvm.org/git/clang.git
1f064ca0a944bf0279b0d6508268a4ea0a354b8e) (http://llvm.org/git/llvm.git
8744520b533617fbbd55ef12ea936961f5225cf5)"}
!2 = metadata !{metadata !3, metadata !4, i64 4}
!3 = metadata !{metadata !"_ZTS1S", metadata !4, i64 0, metadata !4, i64 4}
!4 = metadata !{metadata !"int", metadata !5, i64 0}
!5 = metadata !{metadata !"omnipotent char", metadata !6, i64 0}
!6 = metadata !{metadata !"Simple C/C++ TBAA"}
!7 = metadata !{metadata !4, metadata !4, i64 0}
PTX (sm_35):
//
// Generated by LLVM NVPTX Back-End
//
.version 3.2
.target sm_35
.address_size 64
// .globl _Z11TakesStruct1SPi
// @_Z11TakesStruct1SPi
.visible .entry _Z11TakesStruct1SPi(
.param .align 4 .b8 _Z11TakesStruct1SPi_param_0[8],
.param .u64 _Z11TakesStruct1SPi_param_1
)
{
.reg .s32 %r<2>;
.reg .s64 %rd<3>;
// BB#0: // %entry
mov.b64 %rd1, _Z11TakesStruct1SPi_param_0;
ld.param.u64 %rd2, [_Z11TakesStruct1SPi_param_1];
ld.u32 %r1, [%rd1+4];
st.u32 [%rd2], %r1;
ret;
}
The problematic instructions are:
mov.b64 %rd1, _Z11TakesStruct1SPi_param_0;
ld.u32 %r1, [%rd1+4];
The compiled kernel crashes because the ld.u32 loads from a pointer to the
parameter space.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 12:23:48 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 20:23:48 +0000
Subject: [LLVMbugs] [Bug 21448] Loads are not combined across llvm.assume
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21448
Hal Finkel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Hal Finkel ---
With r221175, both unoptimized-assume.ll and unoptimized.ll, run through opt
-mem2reg -instcombine -early-cse, result in 7 loads.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 13:18:18 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 21:18:18 +0000
Subject: [LLVMbugs] [Bug 21466] New: Many memory leaks
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21466
Bug ID: 21466
Summary: Many memory leaks
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13280
--> http://llvm.org/bugs/attachment.cgi?id=13280&action=edit
leaks
Attached is the asan output of running just
./bin/llvm-lit -sv ./tools/lld/test/pecoff/trivial.test
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 13:30:43 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 21:30:43 +0000
Subject: [LLVMbugs] [Bug 21027] r218166 broke building the C code output
from the MIDL compiler
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21027
Reid Kleckner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Reid Kleckner ---
I downgraded this to a warning in r218394 and forgot to close this out, but
I've gone further in r221184 by making it not warn at all for unprototyped
definitions.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 13:42:35 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 21:42:35 +0000
Subject: [LLVMbugs] [Bug 21467] New: clang hangs on valid code at -Os and
above on x86_64-linux-gnu
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21467
Bug ID: 21467
Summary: clang hangs on valid code at -Os and above on
x86_64-linux-gnu
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: su at cs.ucdavis.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following test case causes the current clang trunk to hang when compiling
at -Os and above in both 32-bit and 64-bit modes on x86_64-linux-gnu.
It is regression from 3.1 and affects all earlier versions of clang since 3.2.
It also seems to affect MacOS X.
This should be different from PR 21377, which also affects clang 3.1.
$ clang-trunk -v
clang version 3.6.0 (trunk 220839)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.1
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
$
$ clang-trunk -O1 -c small.c
$ clang-3.1 -Os -c small.c
$
$ timeout -s 9 30 clang-trunk -Os -c small.c
Killed
$
-----------------------
struct { int f1; } b;
char a;
int c;
short
fn1 (int p1, int p2)
{
return p2 == 0 ? p1 : p1 / p2;
}
void fn2 () { }
void
fn3 ()
{
fn2 ();
unsigned char d = 0;
while (1)
{
d |= a;
c = fn1 (10, 1);
if (fn1 (1, c))
d |= 0;
else
b.f1 = 0;
d |= a;
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 13:56:58 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 21:56:58 +0000
Subject: [LLVMbugs] [Bug 21377] clang hangs on valid code at -Os and above
on x86_64-linux-gnu
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21377
David Majnemer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from David Majnemer ---
Fixed in r221187.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 14:01:20 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 22:01:20 +0000
Subject: [LLVMbugs] [Bug 21468] New: GVN should be able to sink instruction
into the latch
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21468
Bug ID: 21468
Summary: GVN should be able to sink instruction into the latch
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following used to be optimized by FoldOpIntoPhi before r221187 but this
stopped being the case after it was determine that permitting FoldOpIntoPhi to
insert instructions that the PHI may reach will lead to infinite loops.
Perhaps GVN should catch this instead.
; CHECK: fold_phi
define float @fold_phi(float %a) nounwind {
entry:
br label %for.body
for.body:
; CHECK: phi float
; CHECK-NEXT: br i1 undef
%sum.057 = phi float [ 0.000000e+00, %entry ], [ %add5, %bb0 ]
%add5 = fadd float %sum.057, 1.0 ;; Should be moved to the latch!
br i1 undef, label %bb0, label %end
; CHECK: bb0:
bb0:
; CHECK: fadd float
br label %for.body
end:
ret float %add5
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 14:33:17 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 22:33:17 +0000
Subject: [LLVMbugs] [Bug 21469] New: heap-buffer-overflow
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21469
Bug ID: 21469
Summary: heap-buffer-overflow
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Other than leaks, the two failing tests with asan are
lld :: mach-o/write-final-sections.yaml
lld :: pecoff/seh.test
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 14:34:53 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 03 Nov 2014 22:34:53 +0000
Subject: [LLVMbugs] [Bug 21470] New: Clang miscompiles fabs on
x86_64-w64-windows-gnu
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21470
Bug ID: 21470
Summary: Clang miscompiles fabs on x86_64-w64-windows-gnu
Product: clang
Version: 3.5
Hardware: PC
OS: other
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: szabo.antal.92 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13283
--> http://llvm.org/bugs/attachment.cgi?id=13283&action=edit
Test case
Clang miscompiles fabs on windows x64 using -O1 or greater, if it's parameter
is passed by reference to another function. Instead of the correct value, it
always returns 0. I couldn't reproduce the bug by separately optimizing with
opt, but using "clang -O1 -mllvm -print-before-all -mllvm -print-after-all
bug.cpp" I found that the "Interprocedural Sparse Conditional Constant
Propagation" pass is probably the cause; it replaces the correct return value
in @fabs with an undef ( see https://gist.github.com/Sh4rK/4ec63273c387f9978799
). Test case attached.
Clang version:
Downloaded from the MSYS2 project with pacman, package
"mingw64/mingw-w64-x86_64-clang" version 3.5.0-5 ( MSYS2 installation
instructions: http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/ )
clang -v
clang version 3.5.0 (tags/RELEASE_350/final)
Target: x86_64-w64-windows-gnu
Thread model: posix
OS: Windows 8 x64
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 16:27:10 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 00:27:10 +0000
Subject: [LLVMbugs] [Bug 21471] New: Encoded compilation options in bitcode
file
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21471
Bug ID: 21471
Summary: Encoded compilation options in bitcode file
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: dexonsmith at apple.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Many command-line options specified when compiling individual translation units
are ignored in the context of LTO. In particular, we don't properly encode all
options in the bitcode, and those that we do often aren't respected by CodeGen
and IR passes.
Eric is currently restructuring the LLVM backend to support per-function
subtarget info, which gets us most of the way there.
However, many options are sent to the backend as global flags (via -mllvm or
-backend-option) instead of as function attributes. Also, some function
attributes are duplicated via other mechanisms, so I suspect not all the
attributes are actually respected.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 16:27:52 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 00:27:52 +0000
Subject: [LLVMbugs] [Bug 21470] Clang miscompiles fabs on
x86_64-w64-windows-gnu
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21470
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Nick Lewycky ---
Right. The function has to retain its non-returnedness, and it does. It can't
just replace it with nothing but a "ret undef". Sorry, I misunderstood when
Reid told me about this bug, I thought it was replacing it with a "ret undef"
and no infinite self-recursion.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 16:38:33 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 00:38:33 +0000
Subject: [LLVMbugs] [Bug 21470] Clang miscompiles fabs on
x86_64-w64-windows-gnu
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21470
Reid Kleckner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #9 from Reid Kleckner ---
(In reply to comment #7)
> Right. The function has to retain its non-returnedness, and it does. It
> can't just replace it with nothing but a "ret undef". Sorry, I misunderstood
> when Reid told me about this bug, I thought it was replacing it with a "ret
> undef" and no infinite self-recursion.
We do in fact do that, however:
$ cat t.cpp
extern "C" int foo() { return foo(); }
$ clang -cc1 t.cpp -emit-llvm -O2 -o - | grep @foo -A3
define i32 @foo() #0 {
entry:
ret i32 undef
}
Probably because the call to foo has no users and foo is "readonly" so we do a
later cleanup to delete it.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 16:41:27 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 00:41:27 +0000
Subject: [LLVMbugs] [Bug 21472] New: Support/DataTypes.h requires C99
defines even when compiling in C11 mode
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21472
Bug ID: 21472
Summary: Support/DataTypes.h requires C99 defines even when
compiling in C11 mode
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: tilkax at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ echo '#include ' | clang -std=c11 -xc -
In file included from :1:
/usr/include/llvm/Support/DataTypes.h:58:3: error: "Must #define
__STDC_LIMIT_MACROS before #including Support/DataTypes.h"
# error "Must #define __STDC_LIMIT_MACROS before #including
Support/DataTypes.h"
^
/usr/include/llvm/Support/DataTypes.h:62:3: error: "Must #define
__STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h"
# error "Must #define __STDC_CONSTANT_MACROS before " \
^
2 errors generated.
The explanation in DataTypes.h:
"Note that this header's correct operation depends on __STDC_LIMIT_MACROS being
defined. We would define it here, but in order to prevent Bad Things happening
when system headers or C++ STL headers include stdint.h before we define it
here, we define it on the g++ command line (in Makefile.rules)."
I don't think this applies when compiling in C11 mode, e.g. when including this
header from third-party code.
Suggested fix: Surround the error message with "#if __STDC_VERSION__ < 201112L"
or something to that effect.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 17:47:31 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 01:47:31 +0000
Subject: [LLVMbugs] [Bug 21473] New: [CFGSimplification] Generate none
optimized constant ADD operations
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21473
Bug ID: 21473
Summary: [CFGSimplification] Generate none optimized constant
ADD operations
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: Hao.Liu at arm.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13285
--> http://llvm.org/bugs/attachment.cgi?id=13285&action=edit
CFGSimplification Test Case
To reproduce by following command lines:
clang -O3 -S -emit-llvm simple.c
llc -march=aarch64 < simple.ll -print-after-all
We can see that in AArch64 backend, CFGSimplification generate none optimized
ADDs as follows:
...
%inc.1.1 = add nsw i32 2, 1
...
%inc.2.1 = add nsw i32 %inc.1.1, 1
...
%inc.1.2 = add nsw i32 %inc.1.1, 2
...
Such ADDs can be replaced by constants 3, 4, 5.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 19:17:11 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 03:17:11 +0000
Subject: [LLVMbugs] [Bug 21467] clang hangs on valid code at -Os and above
on x86_64-linux-gnu
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21467
David Majnemer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |david.majnemer at gmail.com
Resolution|--- |INVALID
--- Comment #1 from David Majnemer ---
This test case cannot link because it has no entry point. Feel free to reopen
this PR with a program which links.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 19:19:26 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 03:19:26 +0000
Subject: [LLVMbugs] [Bug 21467] clang hangs on valid code at -Os and above
on x86_64-linux-gnu
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21467
David Majnemer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #2 from David Majnemer ---
Ah, nevermind. I misunderstood, reopening.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Nov 3 21:20:00 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 05:20:00 +0000
Subject: [LLVMbugs] [Bug 21467] clang hangs on valid code at -Os and above
on x86_64-linux-gnu
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21467
David Majnemer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #3 from David Majnemer ---
I can't reproduce on LLVM after r221187, reverting r221187 leads to a
reproduction. Feel free to reopen if you can still reproduce.
*** This bug has been marked as a duplicate of bug 21377 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 00:42:53 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 08:42:53 +0000
Subject: [LLVMbugs] [Bug 21464] tools/llvm-objdump/MachODump.cpp:127:
possible performance problem ?
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21464
David Majnemer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |david.majnemer at gmail.com
Resolution|--- |FIXED
Assignee|unassignedbugs at nondot.org |david.majnemer at gmail.com
--- Comment #1 from David Majnemer ---
Fixed in r221247.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 00:55:46 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 08:55:46 +0000
Subject: [LLVMbugs] [Bug 21463] tools/clang/lib/Driver/ToolChains.cpp:2091:
2 * performance problem ?
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21463
David Majnemer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |david.majnemer at gmail.com
Resolution|--- |FIXED
Assignee|unassignedbugs at nondot.org |david.majnemer at gmail.com
--- Comment #1 from David Majnemer ---
Fixed in r221249.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 04:13:42 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 12:13:42 +0000
Subject: [LLVMbugs] [Bug 21474] New: BGEU not implemented
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21474
Bug ID: 21474
Summary: BGEU not implemented
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: MIPS
Assignee: unassignedbugs at nondot.org
Reporter: csdavec at swan.ac.uk
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The GNU assembler implements BGEU as a pseudo that expands to SLTU followed by
BEQZ. LLVM is currently missing this, which is a blocker for FreeBSD libc.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 04:30:09 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 12:30:09 +0000
Subject: [LLVMbugs] [Bug 21475] New: compiler-rt (git) CMake Error in
AArch64 platform with GCC compiler
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21475
Bug ID: 21475
Summary: compiler-rt (git) CMake Error in AArch64 platform with
GCC compiler
Product: compiler-rt
Version: unspecified
Hardware: Other
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: yuxing.tang at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13287
--> http://llvm.org/bugs/attachment.cgi?id=13287&action=edit
the patch file for compiler-rt/cmake/config-ix.cmake in aarch64 platform
I got this Problem when try to build the whole llvm git tree in AArch64
platform. A simple test error in compiler-rt just stop the configuration
progress.
It seems cmake try to do some compiling test before the real build, but it
failed in aarch64. Form the log. I figure out the possible cause is the wrong
"-march" parameters for gcc. It seems the cmake build system try to push
"-march=aarch64" into the compiler testing command. After checking the current
gcc document and testing gcc-4.8.3 and gcc-4.9.0, I'm sure current gcc release
just recognize "-march=armv8-a", not "-march=aarch64"
The problem is in compiler-rt/cmake/config-ix.cmake file. If the platform is
aarch32, cmake will push the right parameter "-march=armv8-a". If the platform
is aarch64, the paramter will change to "-march=aarch64", which the gcc cannot
handle. So I produce a simple patch.
********************* possible patch ************************
--- ./llvmGIT/llvm/projects/compiler-rt/cmake/config-ix.cmake 2014-11-04
19:25:39.827152526 +0800
+++ ./llvm/projects/compiler-rt/cmake/config-ix.cmake 2014-10-28
08:25:15.189851798 +0800
@@ -148,7 +148,7 @@
elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch32")
test_target_arch(aarch32 "-march=armv8-a")
elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch64")
- test_target_arch(aarch64 "-march=aarch64")
+ test_target_arch(aarch64 "-march=armv8-a")
endif()
set(COMPILER_RT_OS_SUFFIX "")
endif()
*************************************************
This patch just work for aarch64/Linux-gcc platform
I have tested this patch has no side effect in x86_64/Linux-gcc. but
aarch64/Linux-llvm or aarch64/MacOS has not been tested.
***************** The Error message log just as below *************
CMake Error at projects/compiler-rt/cmake/config-ix.cmake:87 (message):
Cannot compile for aarch64:
...
...
CMakeFiles/cmTryCompileExec4150267559.dir/simple.cc.o -c
/home/xxx/SourceCode/llvmGIT/build/CMakeFiles/simple.cc
/home/xxx/SourceCode/llvmGIT/build/CMakeFiles/simple.cc:1:0: error: unknown
value ‘aarch64’ for -march
...
...
make: *** [cmTryCompileExec4150267559/fast] Error 2
Call Stack (most recent call first):
projects/compiler-rt/cmake/config-ix.cmake:151 (test_target_arch)
projects/compiler-rt/CMakeLists.txt:216 (include)
-- Configuring incomplete, errors occurred!
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 04:53:52 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 12:53:52 +0000
Subject: [LLVMbugs] [Bug 21476] New: sanitizer_platform_limits_posix.cc(git)
build error in aarch64 platrom
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21476
Bug ID: 21476
Summary: sanitizer_platform_limits_posix.cc(git) build error in
aarch64 platrom
Product: compiler-rt
Version: unspecified
Hardware: Other
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: yuxing.tang at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13288
--> http://llvm.org/bugs/attachment.cgi?id=13288&action=edit
the patch file for
compiler-rt/lib/sanitizer_common/santizer_platform_limits_posix.h
I got this problem during the build of llvm git source tree. Just during the
build of sanitizer_platform_limits_posix.cc.o in compiler-rt, the error rise
for wrong CHECK_TYPE_SIZE(__kernel_old_gid_t).
after dig into the source code, I find in the line #472 in
sanitizer_platform_limits_posix.h has been changed since the end of September.
The aarch64 don't use "unsigned int" for __sanitizer__kernel_old_git_t, but
change to "unsigned shot".
I just put this line back to the same as 3.5.0. The problem solved.
**** so the possible patch below **********
---
./llvmGIT/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
2014-11-04 19:25:39.907146059 +0800
+++
./llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
2014-11-04 17:08:34.903162640 +0800
@@ -472,7 +472,7 @@
typedef long __sanitizer___kernel_off_t;
#endif
-#if defined(__powerpc__) || defined(__mips__)
+#if defined(__powerpc__) || defined(__aarch64__) || defined(__mips__)
typedef unsigned int __sanitizer___kernel_old_uid_t;
typedef unsigned int __sanitizer___kernel_old_gid_t;
#else
****************************************
**** the error message below ***********
[ 62%] Building CXX object
projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSan
itizerCommon.aarch64.dir/sanitizer_platform_limits_posix.cc.o
In file included from
/home/tyx/SourceCode/llvm/projects/compiler-rt/lib/sanitizer_co
mmon/sanitizer_platform_limits_posix.cc:178:0:
/home/xxx/SourceCode/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_interna
l_defs.h:274:72: error: size of array ‘assertion_failed__1008’ is negative
typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]
...
...
/home/xxx/SourceCode/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platfor
m_limits_posix.cc:1009:1: note: in expansion of macro ‘CHECK_TYPE_SIZE’
CHECK_TYPE_SIZE(__kernel_old_gid_t);
^
cc1plus: warning: unrecognized command line option "-Wno-c99-extensions"
[enabled by
default]
cc1plus: warning: unrecognized command line option "-Wno-gnu" [enabled by
default]
make[2]: ***
[projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.
aarch64.dir/sanitizer_platform_limits_posix.cc.o] Error 1
make[1]: ***
[projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.
aarch64.dir/all] Error 2
make: *** [all] Error 2
***************************************
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 06:29:57 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 14:29:57 +0000
Subject: [LLVMbugs] [Bug 15590] Following 5 tests in Tooling test directory
fail with clang-check on a 64bit version of Windows 7.
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15590
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |geek4civic at gmail.com
Resolution|--- |FIXED
--- Comment #3 from NAKAMURA Takumi ---
- auto-detect-from-source-parent.cpp
- auto-detect-from-source.cpp
- clang-check-autodetect-dir.cpp
Backslash (aka JPY sign) should be avoided as possible in JSON.
Fixed in r221266.
- auto-detect-from-source-parent-of-cwd.cpp
- clang-check-pwd.cpp
They are still suppressed due to limitation of Lit internal runner.
Removed mention in r221267.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 09:01:31 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 17:01:31 +0000
Subject: [LLVMbugs] [Bug 21477] New: exact shift right of constant not
optimized (instcombine / value tracking)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21477
Bug ID: 21477
Summary: exact shift right of constant not optimized
(instcombine / value tracking)
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: spatel+llvm at rotateright.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
[Follow-on from bug 21412.]
An exact shift right guarantees that no set bits are shifted out, so this:
define i32 @exact_shift(i32 %shiftval) {
%shr = lshr exact i32 1, %shiftval
ret i32 %shr
}
...should be optimized to:
define i32 @exact_shift(i32 %shiftval) {
ret i32 1
}
Ie, %shiftval must be zero, or we have undefined behavior / poison.
In the other bug, the shift is followed by division, so the ideal optimization
for:
define i32 @exact_div(i32 %x, i32 %shiftval) {
%shr = lshr exact i32 1, %shiftval
%div = udiv i32 %x, %shr
ret i32 %div
}
...will be:
define i32 @exact_div(i32 %x, i32 %shiftval) {
ret i32 %x
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 09:26:45 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 17:26:45 +0000
Subject: [LLVMbugs] [Bug 17236] missed opportunity to use vector FMA
instruction
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=17236
Bug 17236 depends on bug 17172, which changed state.
Bug 17172 Summary: [SLP vectorization] missed opportunity to use absolute value vector instruction (vpabsd)
http://llvm.org/bugs/show_bug.cgi?id=17172
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 09:26:41 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 17:26:41 +0000
Subject: [LLVMbugs] [Bug 17172] [SLP vectorization] missed opportunity to
use absolute value vector instruction (vpabsd)
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=17172
Sanjay Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |spatel+llvm at rotateright.com
Resolution|--- |FIXED
--- Comment #7 from Sanjay Patel ---
This got fixed in the SLP vectorizer / cost-model sometime in the last year:
$ ./clang -v
clang version 3.6.0 (221222)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
$ ./clang -O3 -fomit-frame-pointer -march=corei7-avx vpsad.c -S -o -
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 9
.globl _foo
.align 4, 0x90
_foo: ## @foo
.cfi_startproc
## BB#0: ## %entry
vpabsd (%rdi), %xmm0
vmovdqu %xmm0, (%rdi)
retq
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 09:44:43 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 17:44:43 +0000
Subject: [LLVMbugs] [Bug 21478] New: MIPS assertions failed when
disassembling SC and CACHE instructions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21478
Bug ID: 21478
Summary: MIPS assertions failed when disassembling SC and CACHE
instructions
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: MIPS
Assignee: unassignedbugs at nondot.org
Reporter: csdavec at swan.ac.uk
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
A few instructions in the MIPS back end (SC and CACHE) have MemOpnd operands
that confuse the disassembler. They are a single operand, but the disassembler
treats them as two, resulting assertion failures because the operands are out
of range.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 10:19:08 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 18:19:08 +0000
Subject: [LLVMbugs] [Bug 21479] New: Regression Suite Failure: Win64 Visual
Studio 12 2013
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21479
Bug ID: 21479
Summary: Regression Suite Failure: Win64 Visual Studio 12 2013
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: arcfide at sacrideo.us
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
After building llvm/clang from trunk or 3.5.0 release, configuring with CMake
using the "Visual Studio 12 2013 Win64" configuration, and then building with
ALL_BUILD using any of the targets (Release/Debug/RelWithDebInfo) and the x64
target platform, running the check-all target gives 68 regression suite
failures.
Configuring CMake to use "Visual Studio 12 2013" (32-bit instead of 64-bit)
instead, the build works and all regression suite tests pass.
In Summary, it appears that building llvm/clang as a 64-bit binary on Windows
8.1 x64 does not work, while building clang as a 32-bit binary on the same does
work.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 10:42:03 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 18:42:03 +0000
Subject: [LLVMbugs] [Bug 21480] New: SROA asserts with "Cannot have vector
types of different sizes!"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21480
Bug ID: 21480
Summary: SROA asserts with "Cannot have vector types of
different sizes!"
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: fraser at codeplay.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I get the following assert in SROA:
/home/fraser/llvm-trunk/llvm/lib/Transforms/Scalar/SROA.cpp:1746:
isVectorPromotionViable(const llvm::DataLayout&, llvm::Type*, uint64_t,
uint64_t, {anonymous}::AllocaSlices::const_range,
llvm::ArrayRef<{anonymous}::Slice*>)::: Assertion `DL.getTypeSizeInBits(RHSTy) ==
DL.getTypeSizeInBits(LHSTy) && "Cannot have vector types of different sizes!"'
failed.
I'm compiling the IR snippet below with the following command:
clang -cc1 -O3 -emit-llvm-bc -o test.bc test.ll
=== test.ll ===
define <3 x float> @uint3_as_float3(<3 x i32> %x) #0 {
entry:
%x.addr = alloca <3 x i32>, align 16
%extractVec = shufflevector <3 x i32> %x, <3 x i32> undef, <4 x i32>
%storetmp = bitcast <3 x i32>* %x.addr to <4 x i32>*
store <4 x i32> %extractVec, <4 x i32>* %storetmp, align 16
%0 = bitcast <3 x i32>* %x.addr to <3 x float>*
%castToVec4 = bitcast <3 x float>* %0 to <4 x float>*
%loadVec4 = load <4 x float>* %castToVec4
%extractVec1 = shufflevector <4 x float> %loadVec4, <4 x float> undef, <3 x
i32>
ret <3 x float> %extractVec1
}
RHSTy is <4 x i32> and LHSTy is <3 x i32>
The full crash backtrace is attached here:
clang-3.5: /home/fraser/llvm-trunk/llvm/lib/Transforms/Scalar/SROA.cpp:1746:
isVectorPromotionViable(const llvm::DataLayout&, llvm::Type*, uint64_t,
uint64_t, {anonymous}::AllocaSlices::const_range,
llvm::ArrayRef<{anonymous}::Slice*>)::: Assertion `DL.getTypeSizeInBits(RHSTy) ==
DL.getTypeSizeInBits(LHSTy) && "Cannot have vector types of different sizes!"'
failed.
#0 0x959123e llvm::sys::PrintStackTrace(_IO_FILE*)
/home/fraser/llvm-trunk/llvm/lib/Support/Unix/Signals.inc:423:0
#1 0x959147e PrintStackTraceSignalHandler(void*)
/home/fraser/llvm-trunk/llvm/lib/Support/Unix/Signals.inc:480:0
#2 0x9590223 SignalHandler(int)
/home/fraser/llvm-trunk/llvm/lib/Support/Unix/Signals.inc:199:0
#3 0xf7717cc0 (linux-gate.so.1+0xcc0)
#4 0xf7717cf0 (linux-gate.so.1+0xcf0)
#5 0xf7350f37 __GI_raise (/usr/lib32/libc.so.6+0x2bf37)
#6 0xf7352579 __GI_abort (/usr/lib32/libc.so.6+0x2d579)
#7 0xf734a007 __assert_fail_base (/usr/lib32/libc.so.6+0x25007)
#8 0xf734a08b (/usr/lib32/libc.so.6+0x2508b)
#9 0x9d02797 isVectorPromotionViable(llvm::DataLayout const&, llvm::Type*,
unsigned long long, unsigned long long, llvm::iterator_range<(anonymous
namespace)::Slice const*>, llvm::ArrayRef<(anonymous
namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}::operator()(llvm::VectorType*, llvm::VectorType*) const
/home/fraser/llvm-trunk/llvm/lib/Transforms/Scalar/SROA.cpp:1747:0
#10 0x9d137f2 bool
__gnu_cxx::__ops::_Iter_comp_iter,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>::operator(),
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>::operator()>(llvm::VectorType**,
__gnu_cxx::__ops::_Iter_comp_iter,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>::operator())
/usr/include/c++/4.9.1/bits/predefined_ops.h:121:0
#11 0x9d15c6d void std::__insertion_sort,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}> >(llvm::VectorType**,
__gnu_cxx::__ops::_Iter_comp_iter,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>,
__gnu_cxx::__ops::_Iter_comp_iter,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>) /usr/include/c++/4.9.1/bits/stl_algo.h:1846:0
#12 0x9d13779 void std::__final_insertion_sort,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}> >(llvm::VectorType**,
__gnu_cxx::__ops::_Iter_comp_iter,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>,
__gnu_cxx::__ops::_Iter_comp_iter,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>) /usr/include/c++/4.9.1/bits/stl_algo.h:1889:0
#13 0x9d10bc1 void std::__sort,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}> >(llvm::VectorType**,
__gnu_cxx::__ops::_Iter_comp_iter,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>,
__gnu_cxx::__ops::_Iter_comp_iter,
llvm::ArrayRef<(anonymous namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>) /usr/include/c++/4.9.1/bits/stl_algo.h:1970:0
#14 0x9d0e0a8 void std::sort, llvm::ArrayRef<(anonymous
namespace)::Slice*>)::{lambda(llvm::VectorType*,
llvm::VectorType*)#3}>(llvm::VectorType**,
isVectorPromotionViable(llvm::DataLayout const&, llvm::Type*, unsigned long
long, unsigned long long, llvm::iterator_range<(anonymous namespace)::Slice
const*>, llvm::ArrayRef<(anonymous
namespace)::Slice*>)::{lambda(llvm::VectorType*, llvm::VectorType*)#3},
isVectorPromotionViable(llvm::DataLayout const&, llvm::Type*, unsigned long
long, unsigned long long, llvm::iterator_range<(anonymous namespace)::Slice
const*>, llvm::ArrayRef<(anonymous
namespace)::Slice*>)::{lambda(llvm::VectorType*, llvm::VectorType*)#3})
/usr/include/c++/4.9.1/bits/stl_algo.h:4707:0
#15 0x9d02cd9 isVectorPromotionViable(llvm::DataLayout const&, llvm::Type*,
unsigned long long, unsigned long long, llvm::iterator_range<(anonymous
namespace)::Slice const*>, llvm::ArrayRef<(anonymous namespace)::Slice*>)
/home/fraser/llvm-trunk/llvm/lib/Transforms/Scalar/SROA.cpp:1753:0
#16 0x9d0a285 (anonymous namespace)::SROA::rewritePartition(llvm::AllocaInst&,
(anonymous namespace)::AllocaSlices&, (anonymous namespace)::Slice*, (anonymous
namespace)::Slice*, long long, long long, llvm::ArrayRef<(anonymous
namespace)::Slice*>)
/home/fraser/llvm-trunk/llvm/lib/Transforms/Scalar/SROA.cpp:3217:0
#17 0x9d0b1bb (anonymous namespace)::SROA::splitAlloca(llvm::AllocaInst&,
(anonymous namespace)::AllocaSlices&)
/home/fraser/llvm-trunk/llvm/lib/Transforms/Scalar/SROA.cpp:3412:0
#18 0x9d0b9ff (anonymous namespace)::SROA::runOnAlloca(llvm::AllocaInst&)
/home/fraser/llvm-trunk/llvm/lib/Transforms/Scalar/SROA.cpp:3542:0
#19 0x9d0c6cf (anonymous namespace)::SROA::runOnFunction(llvm::Function&)
/home/fraser/llvm-trunk/llvm/lib/Transforms/Scalar/SROA.cpp:3708:0
#20 0x9247792 llvm::FPPassManager::runOnFunction(llvm::Function&)
/home/fraser/llvm-trunk/llvm/lib/IR/LegacyPassManager.cpp:1541:0
#21 0x9247511 llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&)
/home/fraser/llvm-trunk/llvm/lib/IR/LegacyPassManager.cpp:1490:0
#22 0x924710d llvm::legacy::FunctionPassManager::run(llvm::Function&)
/home/fraser/llvm-trunk/llvm/lib/IR/LegacyPassManager.cpp:1408:0
#23 0x9a7a03c (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
llvm::raw_ostream*)
/home/fraser/llvm-trunk/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp:586:0
#24 0x9a7a19e clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*)
/home/fraser/llvm-trunk/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp:609:0
#25 0x9a639e9 clang::CodeGenAction::ExecuteAction()
/home/fraser/llvm-trunk/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:723:0
#26 0x976bf45 clang::FrontendAction::Execute()
/home/fraser/llvm-trunk/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:428:0
#27 0x9735640 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/home/fraser/llvm-trunk/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:801:0
#28 0x9871d0e clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/home/fraser/llvm-trunk/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:222:0
#29 0x8bc6181 cc1_main(llvm::ArrayRef, char const*, void*)
/home/fraser/llvm-trunk/llvm/tools/clang/tools/driver/cc1_main.cpp:110:0
#30 0x8bbe769 ExecuteCC1Tool(llvm::ArrayRef, llvm::StringRef)
/home/fraser/llvm-trunk/llvm/tools/clang/tools/driver/driver.cpp:371:0
#31 0x8bbed11 main
/home/fraser/llvm-trunk/llvm/tools/clang/tools/driver/driver.cpp:417:0
#32 0xf733ce5e __libc_start_main (/usr/lib32/libc.so.6+0x17e5e)
#33 0x8bbbb31 _start (/home/fraser/llvm-trunk/build/bin/clang-3.5+0x8bbbb31)
Stack dump:
0. Program arguments: /home/fraser/llvm-trunk/build/bin/clang-3.5 -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
test.ll -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -momit-leaf-frame-pointer -dwarf-column-info -resource-dir
/home/fraser/llvm-trunk/build/bin/../lib/clang/3.6.0 -O3
-fdebug-compilation-dir /home/fraser -ferror-limit 19 -fmessage-length 135
-mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -o /tmp/test-b90a0f.o -x ir test.ll
1. Per-function optimization
2. Running pass 'SROA' on function '@uint3_as_float3'
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 14:11:31 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 22:11:31 +0000
Subject: [LLVMbugs] [Bug 21328] Un-necessary relocations generated for local
label subtractions in apple_xxx debug sections
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21328
Rafael Ávila de Espíndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Rafael Ávila de Espíndola ---
Fixed in r221304.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 14:45:20 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 22:45:20 +0000
Subject: [LLVMbugs] [Bug 21481] New: Overload is incorrectly ignored
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21481
Bug ID: 21481
Summary: Overload is incorrectly ignored
Product: clang
Version: 3.5
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: graeser at mi.fu-berlin.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13290
--> http://llvm.org/bugs/attachment.cgi?id=13290&action=edit
Test case failing with clang-3.5. Compile with -std=c++11
Under certain conditions clang ignores a function overload due to a
substitution failure although substitution should succeed. Suppose you have
template
struct Foo
{};
template
struct Foo
{
typedef T0 First;
};
and two overloaded functions selected using enable_if
template >::value, int>::type =0>
int bar()
{
return 0;
}
template >::value), int>::type =0>
auto bar()
-> decltype(typename C::First()) // This should be OK by SFINAE
{
return 0;
}
Then substitution of C::First should work for C=Foo. However clang rejects
bar, char>(). Surprisingly the overload is used if the additional char
parameter is omitted or if an instance of Foo is created in main().
A test case that fails with clang-3.5 is attached. Notice that the variadic
templates seem to be necessary to trigger the problem.
Side note: gcc-4.8 accepts the code.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 15:49:26 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 04 Nov 2014 23:49:26 +0000
Subject: [LLVMbugs] [Bug 21412] wrong code at -O3 on x86_64-linux-gnu (LICM)
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21412
David Majnemer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Assignee|unassignedclangbugs at nondot. |david.majnemer at gmail.com
|org |
--- Comment #11 from David Majnemer ---
Fixed in r221318.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 16:06:49 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 00:06:49 +0000
Subject: [LLVMbugs] [Bug 21482] New: dependency-dump.m fails with super-long
pathname
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21482
Bug ID: 21482
Summary: dependency-dump.m fails with super-long pathname
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: paul_robinson at playstation.sony.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13291
--> http://llvm.org/bugs/attachment.cgi?id=13291&action=edit
repro script
Our internal Windows bots use some pretty long path names, and
something about how Modules works is tripping over them.
I've attached a .bat script that will repro this failure outside of
the lit framework; that makes it easy to manipulate the length of the
directory name passed to -fmodules-cache-path and -module-dependency-dir.
As attached, the script causes FileCheck to fail as follows:
e:\upstream\llvm\tools\clang\test\Modules\dependency-dump.m:9:9: error:
expected
string not found in input
// VFS: 'name': "SubFramework.h"
^
e:\cmplr\scratch\incredible-ridiculously-long-directory-component\incredible-rid
iculously-long-directory-component\123456789012345678901\vfs\vfs.yaml:1:1:
note:
scanning from here
{
^
e:\cmplr\scratch\incredible-ridiculously-long-directory-component\incredible-rid
iculously-long-directory-component\123456789012345678901\vfs\vfs.yaml:26:2:
note
: possible intended match here
'name': "Sub.h",
^
But, if you make that directory name 1 character shorter, it passes.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 17:00:17 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 01:00:17 +0000
Subject: [LLVMbugs] [Bug 21477] exact shift right of constant not optimized
(instcombine / value tracking)
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21477
David Majnemer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |david.majnemer at gmail.com
Resolution|--- |FIXED
Assignee|unassignedbugs at nondot.org |david.majnemer at gmail.com
--- Comment #1 from David Majnemer ---
Fixed in r221325.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 18:00:59 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 02:00:59 +0000
Subject: [LLVMbugs] [Bug 21484] New: Clang crashes on lambdas with arguments
of invalid types derived from template arguments
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21484
Bug ID: 21484
Summary: Clang crashes on lambdas with arguments of invalid
types derived from template arguments
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: rtrieu at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Code:
template
void bar(T t) {
auto x = [](typename T::ns::type &k) {};
}
class S {};
void foo() {
bar(5);
bar(S());
}
Commandline:
clang -std=c++11 test.cc
Error:
bar(5) produces:
test.cc:3:24: error: type 'int' cannot be used prior to '::' because it has no
members
auto x = [](typename T::ns::type &k) {};
^
test.cc:9:3: note: in instantiation of function template specialization
'bar' requested here
bar(5);
^
bar(S()) [with bar(5) commented out] produces:
test.cc:3:27: error: no member named 'ns' in 'S'
auto x = [](typename T::ns::type &k) {};
~~~^
test.cc:10:3: note: in instantiation of function template specialization
'bar' requested here
bar(S());
^
Assertion:
clang-3.6: ../tools/clang/lib/Sema/TypeLocBuilder.h:106: clang::TypeSourceInfo
*clang::TypeLocBuilder::getTypeSourceInfo(clang::ASTContext &,
clang::QualType): Assertion `T == LastTy && "type doesn't match last type
pushed!"' failed.
QualType T in the assertion is a null QualType.
I suspect that TransformLambdaExpr (which calls getTypeSoucreInfo at lint 9017
and triggers the assertion) is not handling invalid types properly along all
paths.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 23:14:31 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 07:14:31 +0000
Subject: [LLVMbugs] [Bug 19227] line_iterator is confused with CRLF
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=19227
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |geek4civic at gmail.com,
| |rafael.espindola at gmail.com
Resolution|--- |FIXED
--- Comment #1 from NAKAMURA Takumi ---
Fixed in r221153.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 23:30:13 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 07:30:13 +0000
Subject: [LLVMbugs] [Bug 13147] CMake-generated Makefiles block one
library's source files on the previous library's link step
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=13147
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |brad.king at kitware.com
Resolution|--- |FIXED
--- Comment #4 from NAKAMURA Takumi ---
Resolved to introduce target_link_libraries(INTERFACE) and "objlib" stuff.
We could also cut redundant deps between tblgen and each source file, if CMake
introduced "pre-generate" hook.
Add hook for project-defined check-build-system actions
http://www.cmake.org/Bug/view.php?id=14729
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 23:33:03 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 07:33:03 +0000
Subject: [LLVMbugs] [Bug 14976] Lit malforms multiline RUN: line,
eg. clang/test/Preprocessor/macro-multiline.c
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=14976
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |alp at nuanti.com,
| |geek4civic at gmail.com
Resolution|--- |WONTFIX
--- Comment #1 from NAKAMURA Takumi ---
Alp tweaked the test in r206703 and I think we might not fix Lit for this
issue.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 23:36:14 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 07:36:14 +0000
Subject: [LLVMbugs] [Bug 18809] DebugInfo/empty.ll crashes for targeting
pecoff/dw2 (cygming).
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=18809
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from NAKAMURA Takumi ---
David Blaikie fixed it in r204780.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Nov 4 23:38:13 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 07:38:13 +0000
Subject: [LLVMbugs] [Bug 20321] CLANG_ENABLE_REWRITER=0 makes crash report
unavailable (preprocessed source is not generated)
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=20321
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #3 from NAKAMURA Takumi ---
Rafael, sure. Closed.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 02:48:23 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 10:48:23 +0000
Subject: [LLVMbugs] [Bug 9780] [Win32] constant may be emitted to .rdata
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9780
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |geek4civic at gmail.com
Resolution|--- |FIXED
--- Comment #1 from NAKAMURA Takumi ---
David Majnemer fixed it in r187956. See also bug 16831.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 03:50:08 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 11:50:08 +0000
Subject: [LLVMbugs] [Bug 21485] New: -fsanitize=bounds does not detect
out-of-bounds access
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21485
Bug ID: 21485
Summary: -fsanitize=bounds does not detect out-of-bounds access
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: polacek at redhat.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
int a[10];
void
foo (int x)
{
int v = a[x]++;
}
int
main ()
{
foo (10);
}
$ clang -fsanitize=bounds -O2 u2.c; ./a.out
says nothing. If I change foo (10); to foo (11);, then it's detected:
u2.c:5:11: runtime error: index 11 out of bounds for type 'int [10]'
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 04:46:33 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 12:46:33 +0000
Subject: [LLVMbugs] [Bug 21486] New: [mips] isel crash
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21486
Bug ID: 21486
Summary: [mips] isel crash
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: tima0900 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13292
--> http://llvm.org/bugs/attachment.cgi?id=13292&action=edit
c source file
Hi,
we have a c-file that crashes with clang.
Tried with the 3.5 release as well as with a fairly new clang(trunk about 1.5
months old).
It crashes during instruction selection. The input is attached.
The output of clang:
C:\Program Files\LLVM\bin>clang -c -EL -G 0 -O2 -mips1 -fsigned-char -target
mips-unknown-unknown -D__MIPSEL -DNDEBUG -w -S -I"D:\D7FBGen\include"
-I"D:\D7FBGen\sde\include"
"E:\REC_BEO_BR_39\GeneratedFiles\TDC-FM\BEO39_body.c" -o
"E:\REC_BEO_BR_39\GeneratedFiles\TDC-FM\BEO39_body.s" -v
clang version 3.5.0 (217039)
Target: mipsel-unknown-unknown
Thread model: posix
"C:\Program Files\LLVM\bin\clang.exe" -cc1 -triple mipsel-unknown-unknown -S
-disable-free -main-file-name BEO39_body.c -mrelocation-model static
-mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases
-target-cpu mips1 -target-feature -n64 -target-feature +o32 -target-abi o32
-mfloat-abi hard -mllvm -mips-ssection-threshold=0 -v -dwarf-column-info
-coverage-file "E:\\REC_BEO_BR_39\\GeneratedFiles\\TDC-FM\\BEO39_body.s"
-resource-dir "C:\\Program Files\\LLVM\\bin\\..\\lib\\clang\\3.5.0" -D __MIPSEL
-D NDEBUG -I "D:\\D7FBGen\\include" -I "D:\\D7FBGen\\sde\\include" -O2 -w
-fno-dwarf-directory-asm -fdebug-compilation-dir "C:\\Program Files\\LLVM\\bin"
-ferror-limit 19 -fmessage-length 9999 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o "E:\\REC_BEO_BR_39\\GeneratedFiles\\TDC-FM\\BEO39_body.s" -x c
"E:\\REC_BEO_BR_39\\GeneratedFiles\\TDC-FM\\BEO39_body.c"
clang -cc1 version 3.5.0 based upon LLVM 3.5.0 default target
i686-pc-windows-gnu
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
D:\D7FBGen\include
D:\D7FBGen\sde\include
C:\Program Files\LLVM\bin\..\lib\clang\3.5.0\include
End of search list.
fatal error: error in backend: Cannot select: 0x4cce258: f64 = select
0x4ccda80, 0x4ccdf90, 0x4ccd330 [ORD=18] [ID=57]
0x4ccda80: i32 = or 0x4ccd4e0, 0x4ccc2e0 [ORD=16] [ID=56]
0x4ccd4e0: i32 = MipsISD::CMovFP_T 0x4ccdb10, 0x4ccd960, 0x4ccc0a0,
0x4ccd9f0 [ORD=14] [ID=55]
0x4ccdb10: i32 = Constant<1> [ID=17]
0x4ccd960: i32 = Register %FCC0 [ID=18]
0x4ccc0a0: i32 = Constant<0> [ID=19]
0x4ccd9f0: glue = MipsISD::FPCmp 0x4cccf40, 0x4cccd90, 0x4ccc640 [ORD=14]
[ID=52]
0x4cccf40: f32,ch = load 0x4ccdc30, 0x4ccce20,
0x4ccdd50)> [ORD=12] [ID=50]
0x4ccce20: i32 = add 0x4ccca30, 0x4ccde70 [ORD=11] [ID=33]
0x4ccca30: i32,ch = CopyFromReg 0x48fb6c0, 0x4ccc910 [ORD=2]
[ID=24]
0x4ccc910: i32 = Register %vreg357 [ID=1]
0x4ccde70: i32 = Constant<28> [ID=5]
0x4ccdd50: i32 = undef [ID=3]
0x4cccd90: f32,ch = load 0x48fb6c0, 0x4ccbe68,
0x4ccdd50 [ID=38]
0x4ccbe68: i32 = add 0x4ccc5b0, 0x4ccc760 [ID=35]
0x4ccc5b0: i32 = MipsISD::Hi 0x4ccc520 [ID=25]
0x4ccc520: i32 = TargetConstantPool 0
[TF=5] [ID=20]
0x4ccc760: i32 = MipsISD::Lo 0x4ccd7b0 [ID=26]
0x4ccd7b0: i32 = TargetConstantPool 0
[TF=6] [ID=21]
0x4ccdd50: i32 = undef [ID=3]
0x4ccc640: i32 = Constant<4> [ID=16]
0x4ccc2e0: i32 = MipsISD::CMovFP_T 0x4ccdb10, 0x4ccd960, 0x4ccc0a0,
0x4ccc250 [ORD=15] [ID=54]
0x4ccdb10: i32 = Constant<1> [ID=17]
0x4ccd960: i32 = Register %FCC0 [ID=18]
0x4ccc0a0: i32 = Constant<0> [ID=19]
0x4ccc250: glue = MipsISD::FPCmp 0x4cccf40, 0x4cccf40, 0x4ccdb10 [ORD=15]
[ID=51]
0x4cccf40: f32,ch = load 0x4ccdc30, 0x4ccce20,
0x4ccdd50)> [ORD=12] [ID=50]
0x4ccce20: i32 = add 0x4ccca30, 0x4ccde70 [ORD=11] [ID=33]
0x4ccca30: i32,ch = CopyFromReg 0x48fb6c0, 0x4ccc910 [ORD=2]
[ID=24]
0x4ccc910: i32 = Register %vreg357 [ID=1]
0x4ccde70: i32 = Constant<28> [ID=5]
0x4ccdd50: i32 = undef [ID=3]
0x4cccf40: f32,ch = load 0x4ccdc30, 0x4ccce20,
0x4ccdd50)> [ORD=12] [ID=50]
0x4ccce20: i32 = add 0x4ccca30, 0x4ccde70 [ORD=11] [ID=33]
0x4ccca30: i32,ch = CopyFromReg 0x48fb6c0, 0x4ccc910 [ORD=2]
[ID=24]
0x4ccc910: i32 = Register %vreg357 [ID=1]
0x4ccde70: i32 = Constant<28> [ID=5]
0x4ccdd50: i32 = undef [ID=3]
0x4ccdb10: i32 = Constant<1> [ID=17]
0x4ccdf90: f64,ch = load 0x48fb6c0, 0x4ccba78, 0x4ccdd50
[ID=39]
0x4ccba78: i32 = add 0x4ccbb08, 0x4ccd8d0 [ID=36]
0x4ccbb08: i32 = MipsISD::Hi 0x4ccceb0 [ID=27]
0x4ccceb0: i32 = TargetConstantPool 0 [TF=5]
[ID=22]
0x4ccd8d0: i32 = MipsISD::Lo 0x4ccc400 [ID=28]
0x4ccc400: i32 = TargetConstantPool 0 [TF=6]
[ID=23]
0x4ccdd50: i32 = undef [ID=3]
0x4ccd330: f64 = fp_extend 0x4cccf40 [ORD=13] [ID=53]
0x4cccf40: f32,ch = load 0x4ccdc30, 0x4ccce20,
0x4ccdd50)> [ORD=12] [ID=50]
0x4ccce20: i32 = add 0x4ccca30, 0x4ccde70 [ORD=11] [ID=33]
0x4ccca30: i32,ch = CopyFromReg 0x48fb6c0, 0x4ccc910 [ORD=2] [ID=24]
0x4ccc910: i32 = Register %vreg357 [ID=1]
0x4ccde70: i32 = Constant<28> [ID=5]
0x4ccdd50: i32 = undef [ID=3]
In function: _ZN18REC_BEO_BR_39_User4stepEv
Stack dump:
0. Program arguments: C:\Program Files\LLVM\bin\clang.exe -cc1 -triple
mipsel-unknown-unknown -S -disable-free -main-file-name BEO39_body.c
-mrelocation-model static -mdisable-fp-elim -fmath-errno -no-integrated-as
-mconstructor-aliases -target-cpu mips1 -target-feature -n64 -target-feature
+o32 -target-abi o32 -mfloat-abi hard -mllvm -mips-ssection-threshold=0 -v
-dwarf-column-info -coverage-file
E:\REC_BEO_BR_39\GeneratedFiles\TDC-FM\BEO39_body.s -resource-dir C:\Program
Files\LLVM\bin\..\lib\clang\3.5.0 -D __MIPSEL -D NDEBUG -I D:\D7FBGen\include
-I D:\D7FBGen\sde\include -O2 -w -fno-dwarf-directory-asm
-fdebug-compilation-dir C:\Program Files\LLVM\bin -ferror-limit 19
-fmessage-length 9999 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o E:\REC_BEO_BR_39\GeneratedFiles\TDC-FM\BEO39_body.s -x c
E:\REC_BEO_BR_39\GeneratedFiles\TDC-FM\BEO39_body.c
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'E:\REC_BEO_BR_39\GeneratedFiles\TDC-FM\BEO39_body.c'.
4. Running pass 'MIPS DAG->DAG Pattern Instruction Selection' on function
'@_ZN18REC_BEO_BR_39_User4stepEv'
clang.exe: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.5.0 (217039)
Target: mipsel-unknown-unknown
Thread model: posix
clang.exe: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 06:33:22 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 14:33:22 +0000
Subject: [LLVMbugs] [Bug 21487] New: Incorrect detection of nil object
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21487
Bug ID: 21487
Summary: Incorrect detection of nil object
Product: clang
Version: 3.5
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: jacobisrael at mail.usf.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Under NON-ARC
NSString *fileName = nil;
if(){
if(){
if(){
fileName = [[NSString alloc] initWithString:iconfileName];
// ....
}
}
}
if(fileName)
{
// ...
[fileName release];
}
// Analyzer complains that fileName could be a potential memory leak
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 07:27:56 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 15:27:56 +0000
Subject: [LLVMbugs] [Bug 21488] New: Assertion failed:
(isa( FunctionScopes[FunctionScopes.size() -
1]) && "The function on the top of sema's function-info stack must be a
lambda")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21488
Bug ID: 21488
Summary: Assertion failed: (isa(
FunctionScopes[FunctionScopes.size() - 1]) && "The
function on the top of sema's function-info stack must
be a lambda")
Product: clang
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++14
Assignee: unassignedclangbugs at nondot.org
Reporter: ldionne.2 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following code causes Clang r221326 to segfault:
------------------------------------------------------------------------------
#include
std::tuple id(std::tuple x) { return x; }
template
auto depth4(Xs xs) {
int s;
auto capture = [=](auto _) { _(xs), s; };
capture(id);
}
template
auto depth3(Xs xs) {
depth4(xs);
}
template
auto depth2(Xs xs) {
depth3(xs);
}
template
auto depth1(Xs xs) {
depth2(xs);
}
int main() {
std::tuple xs;
depth1(xs);
}
------------------------------------------------------------------------------
Note that the code will also _sometimes_ compile, and other times Clang will
simply stay stuck at 100% CPU usage until I kill it. Doing even slight
modifications like removing one depthN function seems to make Clang happy,
so I wasn't able to reduce the example more than that.
When it segfaults, the exact output is:
------------------------------------------------------------------------------
> ~/code/llvm/debug/bin/clang++ -std=c++1y -o /dev/null ~/desktop/bugreports/segfault_capture/main.cpp
Assertion failed: (isa(
FunctionScopes[FunctionScopes.size() - 1]) && "The function on the top of
sema's function-info stack must be a lambda"), function
getStackIndexOfNearestEnclosingCaptureReadyLambda, file
/Users/ldionne/code/llvm/tools/clang/lib/Sema/SemaLambda.cpp, line 72.
0 clang-3.6 0x000000011194410e
llvm::sys::PrintStackTrace(__sFILE*) + 46
1 clang-3.6 0x00000001119454bb
PrintStackTraceSignalHandler(void*) + 27
2 clang-3.6 0x0000000111945905 SignalHandler(int) + 565
3 libsystem_platform.dylib 0x00007fff8c10a5aa _sigtramp + 26
4 clang-3.6 0x0000000113da0d1b
clang::DeclarationNameInfo::DeclarationNameInfo(clang::DeclarationName,
clang::SourceLocation, clang::DeclarationNameLoc) + 43
5 clang-3.6 0x00000001119454eb raise + 27
6 clang-3.6 0x00000001119455a2 abort + 18
7 clang-3.6 0x0000000111945581 __assert_rtn + 129
8 clang-3.6 0x000000011350ffe7
getStackIndexOfNearestEnclosingCaptureReadyLambda(llvm::ArrayRef, clang::VarDecl*) + 167
9 clang-3.6 0x000000011350fcbd
clang::getStackIndexOfNearestEnclosingCaptureCapableLambda(llvm::ArrayRef, clang::VarDecl*, clang::Sema&) + 93
10 clang-3.6 0x000000011347963f
CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures(clang::Expr*,
clang::sema::LambdaScopeInfo*, clang::Sema&) + 559
11 clang-3.6 0x0000000113479259
clang::Sema::ActOnFinishFullExpr(clang::Expr*, clang::SourceLocation, bool,
bool, bool) + 1337
12 clang-3.6 0x00000001135e4207
clang::Sema::ActOnExprStmt(clang::ActionResult) + 135
13 clang-3.6 0x000000011375a778 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2920
14 clang-3.6 0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
15 clang-3.6 0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
16 clang-3.6 0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
17 clang-3.6 0x000000011378a94a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformLambdaScope(clang::LambdaExpr*,
clang::CXXMethodDecl*,
llvm::ArrayRef,
clang::QualType> >) + 2938
18 clang-3.6 0x0000000113789dc0 (anonymous
namespace)::TemplateInstantiator::TransformLambdaScope(clang::LambdaExpr*,
clang::CXXMethodDecl*,
llvm::ArrayRef,
clang::QualType> >) + 192
19 clang-3.6 0x000000011378926c clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformLambdaExpr(clang::LambdaExpr*) +
2380
20 clang-3.6 0x00000001137803d2 (anonymous
namespace)::TemplateInstantiator::TransformLambdaExpr(clang::LambdaExpr*) + 98
21 clang-3.6 0x000000011375b6d7 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 3095
22 clang-3.6 0x000000011375c329 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformInitializer(clang::Expr*, bool) +
457
23 clang-3.6 0x0000000113757cf9
clang::Sema::SubstInitializer(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&, bool) + 121
24 clang-3.6 0x00000001137b1092
clang::Sema::InstantiateVariableInitializer(clang::VarDecl*, clang::VarDecl*,
clang::MultiLevelTemplateArgumentList const&) + 242
25 clang-3.6 0x000000011379fd34
clang::Sema::BuildVariableInstantiation(clang::VarDecl*, clang::VarDecl*,
clang::MultiLevelTemplateArgumentList const&,
llvm::SmallVector*,
clang::DeclContext*, clang::LocalInstantiationScope*, bool) + 2180
26 clang-3.6 0x000000011379efdc
clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*, bool) + 1004
27 clang-3.6 0x000000011379ebe2
clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*) + 34
28 clang-3.6 0x000000011379051b
clang::declvisitor::Base::Visit(clang::Decl*) + 1435
29 clang-3.6 0x00000001137a8b72
clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*,
clang::MultiLevelTemplateArgumentList const&) + 162
30 clang-3.6 0x000000011376b4e4 (anonymous
namespace)::TemplateInstantiator::TransformDefinition(clang::SourceLocation,
clang::Decl*) + 84
31 clang-3.6 0x000000011376748f clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformDeclStmt(clang::DeclStmt*) + 207
32 clang-3.6 0x0000000113759e65 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 597
33 clang-3.6 0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
34 clang-3.6 0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
35 clang-3.6 0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
36 clang-3.6 0x0000000113759be1
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 129
37 clang-3.6 0x00000001137af279
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3801
38 clang-3.6 0x0000000113709fb8
clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation,
bool) + 184
39 clang-3.6 0x00000001133643d0
clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, clang::SourceLocation,
clang::ObjCInterfaceDecl const*, bool) + 912
40 clang-3.6 0x00000001135b1be0
clang::FinishOverloadedCallExpr(clang::Sema&, clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*,
clang::OverloadCandidateSet*, clang::OverloadCandidate**,
clang::OverloadingResult, bool) + 464
41 clang-3.6 0x00000001135b19a9
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*, bool)
+ 681
42 clang-3.6 0x000000011336a378
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*, bool)
+ 2360
43 clang-3.6 0x000000011378c6a7 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::RebuildCallExpr(clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef,
clang::SourceLocation, clang::Expr*) + 167
44 clang-3.6 0x000000011378d253 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 611
45 clang-3.6 0x000000011377d532 (anonymous
namespace)::TemplateInstantiator::TransformCallExpr(clang::CallExpr*) + 66
46 clang-3.6 0x000000011375b0e8 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1576
47 clang-3.6 0x000000011375a733 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2851
48 clang-3.6 0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
49 clang-3.6 0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
50 clang-3.6 0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
51 clang-3.6 0x0000000113759be1
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 129
52 clang-3.6 0x00000001137af279
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3801
53 clang-3.6 0x0000000113709fb8
clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation,
bool) + 184
54 clang-3.6 0x00000001133643d0
clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, clang::SourceLocation,
clang::ObjCInterfaceDecl const*, bool) + 912
55 clang-3.6 0x00000001135b1be0
clang::FinishOverloadedCallExpr(clang::Sema&, clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*,
clang::OverloadCandidateSet*, clang::OverloadCandidate**,
clang::OverloadingResult, bool) + 464
56 clang-3.6 0x00000001135b19a9
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*, bool)
+ 681
57 clang-3.6 0x000000011336a378
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*, bool)
+ 2360
58 clang-3.6 0x000000011378c6a7 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::RebuildCallExpr(clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef,
clang::SourceLocation, clang::Expr*) + 167
59 clang-3.6 0x000000011378d253 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 611
60 clang-3.6 0x000000011377d532 (anonymous
namespace)::TemplateInstantiator::TransformCallExpr(clang::CallExpr*) + 66
61 clang-3.6 0x000000011375b0e8 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1576
62 clang-3.6 0x000000011375a733 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2851
63 clang-3.6 0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
64 clang-3.6 0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
65 clang-3.6 0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
66 clang-3.6 0x0000000113759be1
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 129
67 clang-3.6 0x00000001137af279
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3801
68 clang-3.6 0x0000000113709fb8
clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation,
bool) + 184
69 clang-3.6 0x00000001133643d0
clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, clang::SourceLocation,
clang::ObjCInterfaceDecl const*, bool) + 912
70 clang-3.6 0x00000001135b1be0
clang::FinishOverloadedCallExpr(clang::Sema&, clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*,
clang::OverloadCandidateSet*, clang::OverloadCandidate**,
clang::OverloadingResult, bool) + 464
71 clang-3.6 0x00000001135b19a9
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*, bool)
+ 681
72 clang-3.6 0x000000011336a378
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*, bool)
+ 2360
73 clang-3.6 0x000000011378c6a7 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::RebuildCallExpr(clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef,
clang::SourceLocation, clang::Expr*) + 167
74 clang-3.6 0x000000011378d253 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 611
75 clang-3.6 0x000000011377d532 (anonymous
namespace)::TemplateInstantiator::TransformCallExpr(clang::CallExpr*) + 66
76 clang-3.6 0x000000011375b0e8 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1576
77 clang-3.6 0x000000011375a733 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2851
78 clang-3.6 0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
79 clang-3.6 0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
80 clang-3.6 0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
81 clang-3.6 0x0000000113759be1
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 129
82 clang-3.6 0x00000001137af279
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3801
83 clang-3.6 0x0000000113709fb8
clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation,
bool) + 184
84 clang-3.6 0x00000001133643d0
clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, clang::SourceLocation,
clang::ObjCInterfaceDecl const*, bool) + 912
85 clang-3.6 0x00000001135b1be0
clang::FinishOverloadedCallExpr(clang::Sema&, clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*,
clang::OverloadCandidateSet*, clang::OverloadCandidate**,
clang::OverloadingResult, bool) + 464
86 clang-3.6 0x00000001135b19a9
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*, bool)
+ 681
87 clang-3.6 0x000000011336a378
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*, bool)
+ 2360
88 clang-3.6 0x0000000112e60b7c
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult) + 3580
89 clang-3.6 0x0000000112e65a69
clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) + 17225
90 clang-3.6 0x0000000112e5fc83
clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) +
83
91 clang-3.6 0x0000000112e5eb74
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 196
92 clang-3.6 0x0000000112e5ea7f
clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 31
93 clang-3.6 0x0000000112ea46ac
clang::Parser::ParseExprStatement() + 60
94 clang-3.6 0x0000000112ea3689
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2649
95 clang-3.6 0x0000000112ea2ae5
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector&, bool, clang::SourceLocation*) + 133
96 clang-3.6 0x0000000112ea9f62
clang::Parser::ParseCompoundStatementBody(bool) + 1282
97 clang-3.6 0x0000000112eaaad8
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 328
98 clang-3.6 0x0000000112ec764d
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
3709
99 clang-3.6 0x0000000112e30f08
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 520
100 clang-3.6 0x0000000112ec67bc
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 1228
101 clang-3.6 0x0000000112ec5ed5
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 197
102 clang-3.6 0x0000000112ec5660
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3456
103 clang-3.6 0x0000000112ec4895
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 773
104 clang-3.6 0x0000000112e1efec clang::ParseAST(clang::Sema&,
bool, bool) + 988
105 clang-3.6 0x0000000111d8eb3a
clang::ASTFrontendAction::ExecuteAction() + 522
106 clang-3.6 0x0000000112341853
clang::CodeGenAction::ExecuteAction() + 3939
107 clang-3.6 0x0000000111d8e0b8
clang::FrontendAction::Execute() + 120
108 clang-3.6 0x0000000111d1fe49
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1017
109 clang-3.6 0x0000000111dfdff1
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3201
110 clang-3.6 0x000000010fff6290 cc1_main(llvm::ArrayRef, char const*, void*) + 2496
111 clang-3.6 0x000000010ffe964b
ExecuteCC1Tool(llvm::ArrayRef, llvm::StringRef) + 171
112 clang-3.6 0x000000010ffe8407 main + 1271
113 libdyld.dylib 0x00007fff8b48c5fd start + 1
Stack dump:
0. Program arguments: /Users/ldionne/code/llvm/debug/bin/clang-3.6 -cc1
-triple x86_64-apple-macosx10.9.0 -emit-obj -mrelax-all -disable-free
-main-file-name main.cpp -mrelocation-model pic -pic-level 2 -mthread-model
posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-dwarf-column-info -resource-dir
/Users/ldionne/code/llvm/debug/bin/../lib/clang/3.6.0 -stdlib=libc++ -std=c++1y
-fdeprecated-macro -fdebug-compilation-dir /Users/ldionne/code/hana/debug
-ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature -fcxx-exceptions
-fexceptions -fmax-type-align=16 -fdiagnostics-show-option -o
/var/folders/6f/d7xhg3bx4zq467t3d6kb4fr80000gn/T/main-330091.o -x c++
/Users/ldionne/desktop/bugreports/segfault_capture/main.cpp
1. /Users/ldionne/desktop/bugreports/segfault_capture/main.cpp:31:14: current
parser token ')'
2. /Users/ldionne/desktop/bugreports/segfault_capture/main.cpp:29:12: parsing
function body 'main'
3. /Users/ldionne/desktop/bugreports/segfault_capture/main.cpp:29:12: in
compound statement ('{}')
clang-3.6: error: unable to execute command: Illegal instruction: 4
clang-3.6: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0
Target: x86_64-apple-darwin13.4.0
Thread model: posix
clang-3.6: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.6: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.6: note: diagnostic msg:
/var/folders/6f/d7xhg3bx4zq467t3d6kb4fr80000gn/T/main-c04c11.cpp
clang-3.6: note: diagnostic msg:
/var/folders/6f/d7xhg3bx4zq467t3d6kb4fr80000gn/T/main-c04c11.sh
clang-3.6: note: diagnostic msg:
********************
------------------------------------------------------------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 10:21:47 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 18:21:47 +0000
Subject: [LLVMbugs] [Bug 21465] [NVPTX] byval parameters are incorrectly
lowered
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21465
Justin Holewinski changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Justin Holewinski ---
Should be fixed in r221377. However, this requires an opt-level pass, so
you'll have to add -nvptx-lower-struct-args to your opt line.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 10:26:18 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 18:26:18 +0000
Subject: [LLVMbugs] [Bug 21490] New: LTO treats ObjC @selector's as compile
time constants, which they are not
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21490
Bug ID: 21490
Summary: LTO treats ObjC @selector's as compile time constants,
which they are not
Product: new-bugs
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: freik at fb.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
For static/global values initialized with @selector syntax, the link time
optimizer treats them as if they're compile-time constants. This is true for
OSX and iOS.
Compile this -O2 (or -O3) with & without -flto:
#include
#import
@interface MyInterface : NSObject
// This selector also exists on NSString, so it gets adjusted at load time
-(NSUInteger)length;
@end
static SEL MySel = @selector(length);
int main(int argc, const char * argv[]) {
if (@selector(length) != MySel) {
printf("LTO BUG!\n");
return -1;
}
return 0;
}
The workaround for this issue is to use sel_registerName("length") instead of
the @selector syntax, though this is much slower.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 12:52:31 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 20:52:31 +0000
Subject: [LLVMbugs] [Bug 21491] New: Add to C libclang API the ability to
detect whether namespace are inline, whether a template type is a pack,
and whether an enum is scoped
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21491
Bug ID: 21491
Summary: Add to C libclang API the ability to detect whether
namespace are inline, whether a template type is a
pack, and whether an enum is scoped
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: libclang
Assignee: unassignedclangbugs at nondot.org
Reporter: s_bugzilla at nedprod.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Inline namespaces:
bool isInline=false;
{
using namespace clang;
const Decl *D = static_cast(cursor.data[0]);
if(const NamespaceDecl *TD = dyn_cast_or_null(D))
{
isInline=TD->isInline();
}
}
Parameter packs:
bool isPack=false;
{
using namespace clang;
QualType T =
QualType::getFromOpaquePtr(type.data[0]);
if (!T.isNull())
{
isPack=T->containsUnexpandedParameterPack();
}
}
Scoped enums:
bool isScoped=false;
{
using namespace clang;
const Decl *D = static_cast(cursor.data[0]);
if(const EnumDecl *TD = dyn_cast_or_null(D))
{
isScoped=TD->isScoped();
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 13:34:36 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 21:34:36 +0000
Subject: [LLVMbugs] [Bug 21492] New: Fused Multiply-Add (FMA) yields wrong
results when inlined
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21492
Bug ID: 21492
Summary: Fused Multiply-Add (FMA) yields wrong results when
inlined
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dan.spencer.np at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Reproducible in:
* x86-64 Ubuntu 14.04, clang++ 3.4 and 3.5.1
* x86-64 Ubuntu 14.04, Rust nightly
If the third argument to std::fma() in C++11 or Float::mul_add() in Rust is 0,
it always returns the first argument. If the third argument is != 0, it returns
the correct result. This happens for both the float and double types.
The issue occurs only when all arguments are constants and compiler
optimizations are turned on. This is why I believe this is an issue with LLVM
inlining the call.
gcc does not produce this issue.
clang++ -O2 --std=c++11 fmatest.cpp
#include
#include
int main() {
// prints "10"
std::cout << std::fma(10.0f, 20.0f, 0.0f) << std::endl;
// prints "200.001" (10*20 + 0.001)
std::cout << std::fma(10.0f, 20.0f, 0.001f) << std::endl;
return 0;
}
rustc -O fmatest.rs
fn main() {
// prints "10"
println!("{}", Float::mul_add(10.0f32, 20.0, 0.0));
// prints "200.001007" (10*20 + 0.001)
println!("{}", Float::mul_add(10.0f32, 20.0, 0.001));
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Nov 5 13:44:48 2014
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 05 Nov 2014 21:44:48 +0000
Subject: [LLVMbugs] [Bug 21493] New: Compilation error when initializing in
an agreggate containing a deleted copy constructor using initializer list
from a template function
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=21493
Bug ID: 21493
Summary: Compilation error when initializing in an agreggate
containing a deleted copy constructor using
initializer list from a template function
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: ogoffart at kde.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This valid code:
struct X { X(int); X(const X&) = delete; };
struct A { X v; };
template void id() { A s{ {0 } }; }
int main() { id(); }
does not compile:
test.cc:3:43: error: call to deleted constructor of 'X'
template void id() { A s { {0 } }; }
^~~~
test.cc:4:14: note: in instantiation of function template specialization
'id