[llvm-bugs] [Bug 26647] New: False positive - Switch statement analysis assumes default cannot be taken
https://llvm.org/bugs/show_bug.cgi?id=26647 Bug ID: 26647 Summary: False positive - Switch statement analysis assumes default cannot be taken Product: clang Version: unspecified Hardware: Macintosh OS: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kreme...@apple.com Reporter: avi.bugzi...@mail.ashevin.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 15915 --> https://llvm.org/bugs/attachment.cgi?id=15915&action=edit Sample code illustrating bug When an enumerated type is used as a bit mask, the analyzer assumes that covering all the individual enumeration values precludes reaching the default case. This can lead to warnings of unused initializations. In the attached sample code, the analyzer warns that "bc" is initialized, but not read. The output of the program correctly logs "BC". (Please forgive the extraneous bits. The sample code is used for quick testing of ideas.) -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26648] New: "inline" shouldn't be recognized as a C keyword in MSVC 2013 compatibility mode
https://llvm.org/bugs/show_bug.cgi?id=26648 Bug ID: 26648 Summary: "inline" shouldn't be recognized as a C keyword in MSVC 2013 compatibility mode Product: clang Version: trunk Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: andreybokha...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified There is a subtle, yet important (at least, many of our internal tests are affected) MSVC compatibility bug. MSVC 2013 compiler doesn't recognize "inline" as a keyword in *.c programs: $ cat H:/test.c int inline = 0; $ type cl cl is c:/Program files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64/cl.EXE $ cl -c H:/test.c Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64 Copyright (C) Microsoft Corporation. All rights reserved. test.c MSVC 2015 does recognize "inline" as a keyword and disallow its usage as an identifier: $ type cl cl is c:/Program files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64/cl.EXE $ cl -c H:/test.c Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 Copyright (C) Microsoft Corporation. All rights reserved. test.c H:/test.c(1): error C2513: 'int': no variable declared before '=' clang-cl always recognizes "inline" as a keyword, in both MSVC2013 and MSVC2015 modes. Yours, Andrey == Software Engineer Intel Compiler Team -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26649] New: buggy adaptive locking case
https://llvm.org/bugs/show_bug.cgi?id=26649 Bug ID: 26649 Summary: buggy adaptive locking case Product: OpenMP Version: unspecified Hardware: Other OS: All Status: NEW Severity: normal Priority: P Component: Runtime Library Assignee: unassignedb...@nondot.org Reporter: pawel.osmialow...@foss.arm.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Hello, In __kmp_get_user_lock_owner() function in kmp_lock.cpp I've found following switch: switch (seq) { case lockseq_tas: case lockseq_nested_tas: return __kmp_get_tas_lock_owner((kmp_tas_lock_t *)lck); #if KMP_HAS_FUTEX case lockseq_futex: case lockseq_nested_futex: return __kmp_get_futex_lock_owner((kmp_futex_lock_t *)lck); #endif case lockseq_ticket: case lockseq_nested_ticket: return __kmp_get_ticket_lock_owner((kmp_ticket_lock_t *)lck); case lockseq_queuing: case lockseq_nested_queuing: #if KMP_USE_ADAPTIVE_LOCKS case lockseq_adaptive: return __kmp_get_queuing_lock_owner((kmp_queuing_lock_t *)lck); #endif case lockseq_drdpa: case lockseq_nested_drdpa: return __kmp_get_drdpa_lock_owner((kmp_drdpa_lock_t *)lck); default: return 0; } Seems like '#endif' correspondig to '#if KMP_USE_ADAPTIVE_LOCKS' was placed one line too low causing queuing and nested queuing lock cases are currently handled by drdpa lock case function when KMP_USE_ADAPTIVE_LOCKS is not 1. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26650] New: clang-format treats multiplication as pointer dereference
https://llvm.org/bugs/show_bug.cgi?id=26650 Bug ID: 26650 Summary: clang-format treats multiplication as pointer dereference Product: clang Version: 3.6 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Formatter Assignee: unassignedclangb...@nondot.org Reporter: charles.r.h...@gmail.com CC: djas...@google.com, kli...@google.com, llvm-bugs@lists.llvm.org Classification: Unclassified Consider the following code: a=b*c; clang-format correctly renders it as follows: a = b * c; However, this breaks if a is a pointer which we must dereference: *a=b*c; clang-format now renders this as: *a = b *c; Note that it thinks we are dereferencing c, instead of multiplying by it! -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26074] Assertion in ~CallGraphNode "Node deleted while references remain"
https://llvm.org/bugs/show_bug.cgi?id=26074 and...@fubar.geek.nz changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from and...@fubar.geek.nz --- Fixed in r257279. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26059] [meta] 3.8.0 Release Blockers
https://llvm.org/bugs/show_bug.cgi?id=26059 Bug 26059 depends on bug 26074, which changed state. Bug 26074 Summary: Assertion in ~CallGraphNode "Node deleted while references remain" https://llvm.org/bugs/show_bug.cgi?id=26074 What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26059] [meta] 3.8.0 Release Blockers
https://llvm.org/bugs/show_bug.cgi?id=26059 Bug 26059 depends on bug 26476, which changed state. Bug 26476 Summary: [mips] std::regex_traits considers '-' to be a member of the 'w' class https://llvm.org/bugs/show_bug.cgi?id=26476 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26476] [mips] std::regex_traits considers '-' to be a member of the 'w' class
https://llvm.org/bugs/show_bug.cgi?id=26476 Daniel Sanders changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #8 from Daniel Sanders --- Committed an '#ifdef __mips__' version in r261088 and merged it in r261097 -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26651] New: compiler-rt fails to build on FreeBSD: fatal error: 'stdarg.h' file not found
https://llvm.org/bugs/show_bug.cgi?id=26651 Bug ID: 26651 Summary: compiler-rt fails to build on FreeBSD: fatal error: 'stdarg.h' file not found Product: compiler-rt Version: unspecified Hardware: PC OS: FreeBSD Status: NEW Severity: normal Priority: P Component: compiler-rt Assignee: unassignedb...@nondot.org Reporter: ema...@freebsd.org CC: llvm-bugs@lists.llvm.org Classification: Unclassified >From the build log (http://lab.llvm.org:8014/builders/clang-x86_64-freebsd11/builds/223/steps/build%20stage%201/logs/stdio) FAILED: /usr/bin/CC -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/compiler-rt/lib/tsan -I/home/buildbot/clang-x86_64-freebsd/llvm/projects/compiler-rt/lib/tsan -Iinclude -I/home/buildbot/clang-x86_64-freebsd/llvm/include -I/usr/local/include -I/home/buildbot/clang-x86_64-freebsd/llvm/projects/compiler-rt/lib/tsan/.. -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wall -std=c++11 -O3-UNDEBUG -m64 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fvisibility-inlines-hidden -fno-function-sections -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fPIE -fno-rtti -msse3 -Wframe-larger-than=512 -Wglobal-constructors --sysroot=. -MMD -MT projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o -MF projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o.d -o projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o -c /home/buildbot/clang-x86_64-freebsd/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc In file included from /home/buildbot/clang-x86_64-freebsd/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:2432: /home/buildbot/clang-x86_64-freebsd/llvm/projects/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:41:10: fatal error: 'stdarg.h' file not found #include ^ 1 error generated. ninja: build stopped: subcommand failed. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26433] Can't build LLVM with -D LLVM_USE_INTEL_JITEVENTS:BOOL=ON
https://llvm.org/bugs/show_bug.cgi?id=26433 Hans Wennborg changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #8 from Hans Wennborg --- Merged to 3.8 in r261106. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26059] [meta] 3.8.0 Release Blockers
https://llvm.org/bugs/show_bug.cgi?id=26059 Bug 26059 depends on bug 26433, which changed state. Bug 26433 Summary: Can't build LLVM with -D LLVM_USE_INTEL_JITEVENTS:BOOL=ON https://llvm.org/bugs/show_bug.cgi?id=26433 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26652] New: X86 instruction selection encounters invalid shufflevector instructions
https://llvm.org/bugs/show_bug.cgi?id=26652 Bug ID: 26652 Summary: X86 instruction selection encounters invalid shufflevector instructions Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Backend: X86 Assignee: unassignedb...@nondot.org Reporter: andrew.b.ad...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 15916 --> https://llvm.org/bugs/attachment.cgi?id=15916&action=edit .ll that triggers the issue Some time over the last day trunk llvm starting barfing on the attached .ll with the stack trace below. There are a bunch of shufflevector instructions in the input, but all look legal to me. $ ./llvm/trunk/build-64-g++-4.8/bin/llc bugpoint-reduced-function.ll llc: /usr/local/google/home/abadams/projects/Halide/llvm/trunk/lib/IR/Instructions.cpp:1791: static int llvm::ShuffleVectorInst::getMaskValue(llvm::Constant*, unsigned int): Assertion `i < Mask->getType()->getVectorNumElements() && "Index out of range"' failed. #0 0x013d8f25 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x13d8f25) #1 0x013d6cd6 llvm::sys::RunSignalHandlers() (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x13d6cd6) #2 0x013d6f01 SignalHandler(int) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x13d6f01) #3 0x7f4d41173330 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10330) #4 0x7f4d40325cb7 gsignal /tmp/tmp.Htw1L27e9P/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0 #5 0x7f4d403290a8 abort /tmp/tmp.Htw1L27e9P/stdlib/abort.c:91:0 #6 0x7f4d4031eb76 __assert_fail_base /tmp/tmp.Htw1L27e9P/assert/assert.c:92:0 #7 0x7f4d4031ec22 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc22) #8 0x0105e96c llvm::ShuffleVectorInst::getMaskValue(llvm::Constant*, unsigned int) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x105e96c) #9 0x0126249b isVectorReductionOp(llvm::User const*) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x126249b) #10 0x0127300c llvm::SelectionDAGBuilder::visitBinary(llvm::User const&, unsigned int) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x127300c) #11 0x01293c1a llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x1293c1a) #12 0x012d0901 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x12d0901) #13 0x012d8c0f llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x12d8c0f) #14 0x012da44c llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x12da44c) #15 0x0065ed04 (anonymous namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x65ed04) #16 0x010817d3 llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x10817d3) #17 0x01081b8b llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x1081b8b) #18 0x01081e9f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x1081e9f) #19 0x006055a6 compileModule(char**, llvm::LLVMContext&) (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x6055a6) #20 0x005d2250 main (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x5d2250) #21 0x7f4d40310ec5 __libc_start_main /tmp/tmp.Htw1L27e9P/csu/libc-start.c:321:0 #22 0x005fd646 _start (/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64-g++-4.8/bin/llc+0x5fd646) Stack dump: 0.Program arguments: ./llvm/trunk/build-64-g++-4.8/bin/llc bugpoint-reduced-function.ll 1.Running pass 'Function Pass Manager' on module 'bugpoint-reduced-function.ll'. 2.Running pass 'X86 DAG->DAG Instruction Selection' on function '@__argvcall' Aborted (core dumped) -- You are receiving this mail because: You are on the CC li
[llvm-bugs] [Bug 26653] New: Regression: static int llvm::ShuffleVectorInst::getMaskValue(llvm::Constant*, unsigned int): Assertion `i < Mask->getType()->getVectorNumElements() && "Index out of range"
https://llvm.org/bugs/show_bug.cgi?id=26653 Bug ID: 26653 Summary: Regression: static int llvm::ShuffleVectorInst::getMaskValue(llvm::Constant*, unsigned int): Assertion `i < Mask->getType()->getVectorNumElements() && "Index out of range"' failed during chromium/android/asan builds Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: System Library Assignee: unassignedb...@nondot.org Reporter: nicolaswe...@gmx.de CC: llvm-bugs@lists.llvm.org Classification: Unclassified FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/webrtc/common_audio/signal_processing/common_audio_neon.cross_correlation_neon.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=261077 -DCOMPONENT_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DUSE_PROPRIETARY_CODECS -DENABLE_BROWSER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DFIELDTRIAL_TESTING_ENABLED -DADDRESS_SANITIZER -DMEMORY_TOOL_REPLACES_ALLOCATOR -DMEMORY_SANITIZER_INITIAL_SIZE -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_SPELLCHECK=1 -DUSE_BROWSER_SPELLCHECKER=1 -DENABLE_SUPERVISED_USERS=1 -DVIDEO_HOLE=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DENABLE_WEBVR -DSAFE_BROWSING_DB_REMOTE -DWEBRTC_RESTRICT_LOGGING -DEXPAT_RELATIVE_PATH -DWEBRTC_CHROMIUM_BUILD -DLOGGING_INSIDE_WEBRTC -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DUSE_OPENSSL_CERTS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DANDROID -D__GNU_SOURCE=1 '-DCHROME_BUILD_ID=""' -DHAVE_SYS_UIO_H -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -Igen -I../.. -I../../third_party/webrtc_overrides -I../../third_party -fstack-protector --param=ssp-buffer-size=4 -Werror -fno-strict-aliasing -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -fcolor-diagnostics -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-shift-negative-value -mfpu=neon -mllvm -enable-interleaved-mem-accesses=0 -march=armv7-a -mtune=generic-armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -marm -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -ffunction-sections -funwind-tables -g -fstack-protector -fno-short-enums --sysroot=../../third_party/android_tools/ndk//platforms/android-16/arch-arm -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -target arm-linux-androideabi -mllvm -asan-globals=0 -Os -g -fdata-sections -ffunction-sections -funwind-tables -g0 -c ../../third_party/webrtc/common_audio/signal_processing/cross_correlation_neon.c -o obj/third_party/webrtc/common_audio/signal_processing/common_audio_neon.cross_correlation_neon.o clang-3.9: /b/build/slave/ClangToTAndroidASan/build/src/third_party/llvm/lib/IR/Instructions.cpp:1791: static int llvm::ShuffleVectorInst::getMaskValue(llvm::Constant*, unsigned int): Assertion `i < Mask->getType()->getVectorNumElements() && "Index out of range"' failed. 0 clang-3.9 0x018f26d5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37 1 clang-3.9 0x018f0466 llvm::sys::RunSignalHandlers() + 54 2 clang-3.9 0x018f0691 3 libc.so.6 0x7f67141de150 4 libc.so.6 0x7f67141de0d5 gsignal + 53 5 libc.so.6 0x7f67141e183b abort + 379 6 libc.so.6 0x7f67141d6d9e 7 libc.so.6 0x7f67141d6e42 8 clang-3.9 0x0157215c llvm::ShuffleVectorInst::getMaskValue(llvm::Constant*, unsigned int) + 252 9 clang-3.9 0x01ecc23b 10 clang-3.9 0x01edcd08 llvm::SelectionDAGBuilder::visitBinary(llvm::User const&, unsigned int) + 424 11 clang-3.9 0x01efd4ea llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 58 12 clang-3.9 0x01f3a921 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 49 13 clang-3.9 0x01f42cfe llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1198 14 clang-3.9 0x01f446fc llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1484 15 clang-3.9 0x00a59604 16 clang-3.9 0x01596003 llvm::FPPassManager::runOnFunction(llvm::Function&) + 643 17 clang-3.9 0x015963bb llvm::FPPassManager::runOnModule(llvm::Module&) + 43 18 clang-3.9 0x015966cf llvm::legacy::PassManagerImpl::run(llvm::Module&) + 751 19 clang-3.9 0x01a3159a clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::
[llvm-bugs] [Bug 26653] Regression(261065:261077): static int llvm::ShuffleVectorInst::getMaskValue(llvm::Constant*, unsigned int): Assertion `i < Mask->getType()->getVectorNumElements() && "Index out
https://llvm.org/bugs/show_bug.cgi?id=26653 David Majnemer changed: What|Removed |Added Status|NEW |RESOLVED CC||david.majne...@gmail.com Resolution|--- |DUPLICATE --- Comment #2 from David Majnemer --- *** This bug has been marked as a duplicate of bug 26652 *** -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26616] wrong code (compiled code hangs) at -O3 on x86_64-linux-gnu
https://llvm.org/bugs/show_bug.cgi?id=26616 David Majnemer changed: What|Removed |Added Status|NEW |RESOLVED CC||david.majne...@gmail.com Resolution|--- |WORKSFORME --- Comment #1 from David Majnemer --- I cannot reproduce this on trunk: clang version 3.9.0 (trunk 261109) (llvm/trunk 261122) -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26654] New: std::unique_ptr<[]> does not work with vector types
https://llvm.org/bugs/show_bug.cgi?id=26654 Bug ID: 26654 Summary: std::unique_ptr<[]> does not work with vector types Product: libc++ Version: 3.8 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: unassignedclangb...@nondot.org Reporter: eugeni.stepa...@gmail.com CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com Classification: Unclassified $ cat 1.cc #include typedef float T __attribute__((__vector_size__(16))); void f(T t) { std::unique_ptr ptr(new T[5]); ptr[0] = t; } $ clang++ 1.cc -c -std=c++11 -stdlib=libc++ 1.cc:13:10: error: expression is not assignable ptr[0] = get(); ~~ ^ 1 error generated. It looks like __is_referenceable is false and unique_ptr::operator[]() gets T as the return type instead of T&. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26655] New: [Thumb2] Incorrect CPSR liveness for bundled instructions
https://llvm.org/bugs/show_bug.cgi?id=26655 Bug ID: 26655 Summary: [Thumb2] Incorrect CPSR liveness for bundled instructions Product: tools Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: llc Assignee: unassignedb...@nondot.org Reporter: mgr...@codeaurora.org CC: llvm-bugs@lists.llvm.org Classification: Unclassified For Thumb2 instructions which have the CPSR and which are part of an instruction bundle, the CPSR liveness is always false. But the function UpdateCPSRUse does not recognize this and expects the liveness to be true and hence asserts: clang-3.8: /prj/llvm-arm/home/nightly/src/qc-38/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp:1381: bool UpdateCPSRUse(llvm::MachineInstr &, bool): Assertion `LiveCPSR && "CPSR liveness tracking is wrong!"' failed. We need to fix this by skipping the assert for such instructions. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26608] check-sanitizer produces four unexpected failures on x86_64 darwin
https://llvm.org/bugs/show_bug.cgi?id=26608 Alexey Samsonov changed: What|Removed |Added Status|NEW |RESOLVED CC||vonos...@gmail.com Resolution|--- |FIXED --- Comment #2 from Alexey Samsonov --- Should be fixed by r261150. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26656] New: std::swap does not work with vector types
https://llvm.org/bugs/show_bug.cgi?id=26656 Bug ID: 26656 Summary: std::swap does not work with vector types Product: libc++ Version: 3.8 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: unassignedclangb...@nondot.org Reporter: eugeni.stepa...@gmail.com CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com Classification: Unclassified #include typedef float T __attribute__((__vector_size__(16))); void f(T &a, T &b) { std::swap(a, b); } 1.cc:7:3: error: no matching function for call to 'swap' std::swap(a, b); ^ /code/build-llvm/bin/../include/c++/v1/type_traits:4240:5: note: candidate template ignored: disabled by 'enable_if' [with _Tp = __attribute__((__vector_size__(4 * sizeof(float float] is_move_constructible<_Tp>::value && ^ /code/build-llvm/bin/../include/c++/v1/utility:245:1: note: candidate template ignored: could not match '_Tp [_Np]' against 'T' (vector of 4 'float' values) swap(_Tp (&__a)[_Np], _Tp (&__b)[_Np]) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value) ^ /code/build-llvm/bin/../include/c++/v1/utility:495:1: note: candidate template ignored: could not match 'pair' against '__attribute__((__vector_size__(4 * sizeof(float float' (vector of 4 'float' values) swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) ^ 1 error generated. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26657] New: __gnu_cxx::hash_map copy constructor is broken
https://llvm.org/bugs/show_bug.cgi?id=26657 Bug ID: 26657 Summary: __gnu_cxx::hash_map copy constructor is broken Product: libc++ Version: 3.8 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: unassignedclangb...@nondot.org Reporter: eugeni.stepa...@gmail.com CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com Classification: Unclassified #include __gnu_cxx::hash_map h1; __gnu_cxx::hash_map h2(h1); In file included from ../llvm/4.cc:1: /code/build-llvm/bin/../include/c++/v1/ext/hash_map:213:5: warning: Use of the header is deprecated. Migrate to [-W#warnings] # warning Use of the header is deprecated. Migrate to ^ /code/build-llvm/bin/../include/c++/v1/ext/hash_map:432:57: error: '__non_const_iterator' is a private member of 'std::__1::__hash_const_iterator, void *> *>' __hash_map_iterator __i) ^ /code/build-llvm/bin/../include/c++/v1/ext/hash_map:659:16: note: in instantiation of template class '__gnu_cxx::__hash_map_const_iterator, void *> *> >' requested here insert(__u.begin(), __u.end()); ^ ../llvm/4.cc:9:31: note: in instantiation of member function '__gnu_cxx::hash_map, std::__1::equal_to, std::__1::allocator > >::hash_map' requested here __gnu_cxx::hash_map h2(h1); ^ /code/build-llvm/bin/../include/c++/v1/__hash_table:383:39: note: implicitly declared private here typedef __hash_iterator<_NodePtr> __non_const_iterator; ^ 1 warning and 1 error generated. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26658] New: Clang confuses backend... somehow.
https://llvm.org/bugs/show_bug.cgi?id=26658 Bug ID: 26658 Summary: Clang confuses backend... somehow. Product: clang Version: 3.7 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: chriskitch...@linux.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 15918 --> https://llvm.org/bugs/attachment.cgi?id=15918&action=edit Reduced testcase Process the given file like so: "/usr/bin/clang-3.7" "-cc1" -save-temps "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "-disable-free" "-disable-llvm-verifier" "-main-file-name" "FeaturePyramid.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-fmath-errno" "-fno-signed-zeros" "-freciprocal-math" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array" "-target-cpu" "x86-64" "-momit-leaf-frame-pointer" "-g" "-dwarf-column-info" "-D" "ENABLE_DBG_ASSERTIONS" "-D" "c3_EXPORTS" "-D" "SENTRY" "-D" "NDEBUG" "-O3" "-Wall" "-Wpedantic" "-Wextra" "-Wno-sign-compare" "-Wall" "-Wpedantic" "-Wextra" "-Wno-sign-compare" "-Wall" "-Wpedantic" "-Wextra" "-Wno-sign-compare" "-std=c++11" "-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "142" "-mstackrealign" "-fobjc-runtime=gcc" "-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-vectorize-slp-aggressive" "-x" "c++" "FeaturePyramid-827290.cpp" Produces: fatal error: error in backend: Cannot select: 0x3134990: i32 = any_extend 0x3135be8 [ORD=71] [ID=74]FeaturePyramid-827290.cpp:30:11 0x3135be8: i64 = extract_vector_elt 0x31323a8, 0x3101948 [ORD=71] [ID=71]FeaturePyramid-827290.cpp:30:11 0x31323a8: v2i64 = bitcast 0x3102160 [ORD=71] [ID=67]FeaturePyramid-827290.cpp:30:11 0x3102160: v4i32 = X86ISD::PSHUFD 0x31372e8, 0x31343c8 [ORD=71] [ID=63]FeaturePyramid-827290.cpp:30:11 0x31372e8: v4i32 = X86ISD::PSHUFD 0x3132280, 0x3133858 [ORD=71] [ID=59]FeaturePyramid-827290.cpp:30:11 0x3132280: v4i32 = X86ISD::CMPP 0x312f020, 0x3134d08, 0x3133f48 [ORD=71] [ID=55]FeaturePyramid-827290.cpp:30:11 0x312f020: v4f32 = fsub 0x3128058, 0x31274c8 [ORD=62] [ID=51]FeaturePyramid-827290.cpp:20:15 0x3128058: v4f32 = fsub 0x3127f30, 0x31274c8 [ORD=57] [ID=48]FeaturePyramid-827290.cpp:20:15 0x3127f30: v4f32 = fsub 0x3132bc0, 0x31274c8 [ORD=52] [ID=45]FeaturePyramid-827290.cpp:20:15 0x3132bc0: v4f32 = X86ISD::UNPCKL 0x312e240, 0x312e5b8 [ORD=51] [ID=40] 0x31274c8: v4f32 = undef [ID=14] 0x31274c8: v4f32 = undef [ID=14] 0x31274c8: v4f32 = undef [ID=14] 0x3134d08: v4f32 = bitcast 0x3131710 [ORD=74] [ID=41] 0x3131710: v4i32 = BUILD_VECTOR 0x3131f28, 0x3131f28, 0x3131f28, 0x3131f28 [ORD=74] [ID=36] 0x3131f28: i32 = Constant<0> [ID=26] 0x3131f28: i32 = Constant<0> [ID=26] 0x3131f28: i32 = Constant<0> [ID=26] 0x3131f28: i32 = Constant<0> [ID=26] 0x3133f48: i8 = Constant<4> [ID=17]FeaturePyramid-827290.cpp:30:11 0x3133858: i8 = Constant<-44> [ID=24]FeaturePyramid-827290.cpp:30:11 0x31343c8: i8 = Constant<78> [ID=30]FeaturePyramid-827290.cpp:30:11 0x3101948: i64 = Constant<0> [ID=8] In function: _Z19resizeBilinearFloatI3VecIfLm3EEEv3MatIT_E Apologies for the lack of much in the way of actual investigation. -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[llvm-bugs] [Bug 26657] __gnu_cxx::hash_map copy constructor is broken
https://llvm.org/bugs/show_bug.cgi?id=26657 Eric Fiselier changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #2 from Eric Fiselier --- Really fixed in r261180 (with tests following in r261181). -- You are receiving this mail because: You are on the CC list for the bug. ___ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs