<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Diagnostics from inline assembly should honor -ferror-limit"
   href="https://bugs.llvm.org/show_bug.cgi?id=41229">41229</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Diagnostics from inline assembly should honor -ferror-limit
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre><a href="https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8918351155945340336/+/steps/compile/0/stdout">https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8918351155945340336/+/steps/compile/0/stdout</a>
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

)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>