[llvm-bugs] [Bug 41229] New: Diagnostics from inline assembly should honor -ferror-limit
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Mar 25 18:11:19 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41229
Bug ID: 41229
Summary: Diagnostics from inline assembly should honor
-ferror-limit
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8918351155945340336/+/steps/compile/0/stdout
has 18000 (!) lines of errors from inline asm. They all kind of look like
clang_x64/gen/v8/embedded.S:474:1: error: unknown directive
.def Builtins_RecordWrite; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:474:28: error: unknown directive
.def Builtins_RecordWrite; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:474:42: error: expected identifier in directive
.def Builtins_RecordWrite; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:474:46: error: unknown directive
.def Builtins_RecordWrite; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:529:1: error: unknown directive
.def Builtins_AdaptorWithExitFrame; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:529:37: error: unknown directive
.def Builtins_AdaptorWithExitFrame; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:529:51: error: expected identifier in directive
.def Builtins_AdaptorWithExitFrame; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:529:55: error: unknown directive
.def Builtins_AdaptorWithExitFrame; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:549:1: error: unknown directive
.def Builtins_AdaptorWithBuiltinExitFrame; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:549:44: error: unknown directive
.def Builtins_AdaptorWithBuiltinExitFrame; .scl 2; .type 32; .endef;
^
clang_x64/gen/v8/embedded.S:549:58: error: expected identifier in directive
.def Builtins_AdaptorWithBuiltinExitFrame; .scl 2; .type 32; .endef;
^
Inline asm should honor -ferror-limit and stop printing errors a lot earlier
than after 18k lines of output.
(The build command with all that output is:
../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF
clang_x64/obj/v8/v8_external_snapshot/embedded.o.d -DDCHECK_ALWAYS_ON=1
-DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1
-DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL
-DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"356698\"
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2
-DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr
-D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=356640
-DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64
-DENABLE_MINOR_MC -DV8_ENABLE_ALLOCATION_TIMEOUT -DV8_ENABLE_FORCE_SLOW_PATH
-DV8_INTL_SUPPORT -DENABLE_HANDLE_ZAPPING -DV8_USE_SNAPSHOT
-DV8_USE_EXTERNAL_STARTUP_DATA -DV8_CONCURRENT_MARKING -DV8_EMBEDDED_BUILTINS
-DV8_DEPRECATION_WARNINGS -DV8_TARGET_ARCH_X64 -DDEBUG
-DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DBUILDING_V8_SHARED
-DV8_DEPRECATION_WARNINGS -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0
-DUSE_CHROMIUM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE
-DUCHAR_TYPE=uint16_t -I../.. -Iclang_x64/gen -I../../v8 -Iclang_x64/gen/v8
-I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -fPIC
-fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector
-funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin
-pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang
-instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -std=c11 -m64
-march=x86-64 -g1 --sysroot=../../build/linux/debian_sid_amd64-sysroot -c
clang_x64/gen/v8/embedded.S -o clang_x64/obj/v8/v8_external_snapshot/embedded.o
)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190326/3bca162d/attachment-0001.html>
More information about the llvm-bugs
mailing list