[Webkit-unassigned] [Bug 235573] New: [WTF] Make CRASH_WITH_INFO more useful when using GCC

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 25 04:23:27 PST 2022


            Bug ID: 235573
           Summary: [WTF] Make CRASH_WITH_INFO more useful when using GCC
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com

As per the comment in wtf/Assertions.h:

  // GCC does not allow ##__VA_ARGS__ unless GNU extensions are enabled (--std=gnu++NN instead of
  // --std=c++NN) and I think we don't want that, so we'll have a fallback path for GCC. Obviously
  // this will not actually succeed at getting the desired info into registers before crashing, but
  // it's just a fallback anyway.
  // FIXME: When we enable C++20, we should replace ##__VA_ARGS__ with format __VA_OPT__(,) __VA_ARGS__
  // so that we can remove this fallback.

Nowadays we are passing -std=c++20 to the compiler, so we can use __VA_OPT__ and remove the FIXME.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220125/131071d9/attachment.htm>

More information about the webkit-unassigned mailing list