Fix build on gcc [v8/v8 : main]

0 views
Skip to first unread message

Jakob Linke (Gerrit)

unread,
12:59 AM (11 hours ago) 12:59 AM
to Abdirahim, Nico Hartmann, Milad Farazmand, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org
Attention needed from Abdirahim and Nico Hartmann

Jakob Linke voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Abdirahim
  • Nico Hartmann
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I175700665c7bbb4f07588e9cac3d55d9afce44d0
Gerrit-Change-Number: 6987408
Gerrit-PatchSet: 1
Gerrit-Owner: Abdirahim <abdirah...@ibm.com>
Gerrit-Reviewer: Jakob Linke <jgr...@chromium.org>
Gerrit-Reviewer: Nico Hartmann <nicoha...@chromium.org>
Gerrit-CC: Milad Farazmand <mfar...@ibm.com>
Gerrit-Attention: Nico Hartmann <nicoha...@chromium.org>
Gerrit-Attention: Abdirahim <abdirah...@ibm.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 04:59:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Nico Hartmann (Gerrit)

unread,
3:48 AM (8 hours ago) 3:48 AM
to Abdirahim, V8 LUCI CQ, Jakob Linke, Milad Farazmand, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org
Attention needed from Abdirahim

Nico Hartmann added 1 comment

File src/compiler/turboshaft/builtin-call-descriptors.h
Line 69, Patchset 1 (Latest): struct arguments_base {
Nico Hartmann . unresolved

Using a base class to solve this caused some issues on our side that's why I went away from that. I would prefer if we could find a different solution.

If the problem is just from the nested struct, we can easily just change `struct builtin` to `namespace builtin`, which I was considering to do anyway. Can you please check if this would solve the issue?

Open in Gerrit

Related details

Attention is currently required from:
  • Abdirahim
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I175700665c7bbb4f07588e9cac3d55d9afce44d0
    Gerrit-Change-Number: 6987408
    Gerrit-PatchSet: 1
    Gerrit-Owner: Abdirahim <abdirah...@ibm.com>
    Gerrit-Reviewer: Jakob Linke <jgr...@chromium.org>
    Gerrit-Reviewer: Nico Hartmann <nicoha...@chromium.org>
    Gerrit-CC: Milad Farazmand <mfar...@ibm.com>
    Gerrit-Attention: Abdirahim <abdirah...@ibm.com>
    Gerrit-Comment-Date: Fri, 26 Sep 2025 07:48:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Abdirahim (Gerrit)

    unread,
    11:35 AM (15 minutes ago) 11:35 AM
    to V8 LUCI CQ, Nico Hartmann, Jakob Linke, Milad Farazmand, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org
    Attention needed from Nico Hartmann

    Abdirahim added 1 comment

    File src/compiler/turboshaft/builtin-call-descriptors.h
    Line 69, Patchset 1 (Latest): struct arguments_base {
    Nico Hartmann . unresolved

    Using a base class to solve this caused some issues on our side that's why I went away from that. I would prefer if we could find a different solution.

    If the problem is just from the nested struct, we can easily just change `struct builtin` to `namespace builtin`, which I was considering to do anyway. Can you please check if this would solve the issue?

    Abdirahim

    Hello Nico, I'm rab a build to see if changing builtin to a namespace resolves the issue:

    ```diff
    diff --git a/src/compiler/turboshaft/builtin-call-descriptors.h b/src/compiler/turboshaft/builtin-call-descriptors.h
    index 1a6e66969cc..82c4eab43aa 100644
    --- a/src/compiler/turboshaft/builtin-call-descriptors.h
    +++ b/src/compiler/turboshaft/builtin-call-descriptors.h
    @@ -55,7 +55,7 @@ struct IndexTag<0> {
    // TODO(nicohartmann): Consider a different name, but currently everything that
    // is not lengthy is already used in so many other places that constant name
    // collisions are unavoidable.
    -struct builtin {
    +namespace builtin {
    // TODO(nicohartmann@): Unfortunately, we cannot define builtins with
    // void/never return types properly (e.g. in Torque), but they typically have
    // a JSAny dummy return type. Use Void/Never sentinels to express that in

    ```

    Unfortunately that also failed in the same way as before.
    GCC seems to think that the meaning of `index_counter` and `make_args_type_list_n` is being changed in the ARGS macro.

    If its of use I can work on developing a simple example showing the issue in
    compiler explorer.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Nico Hartmann
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I175700665c7bbb4f07588e9cac3d55d9afce44d0
    Gerrit-Change-Number: 6987408
    Gerrit-PatchSet: 1
    Gerrit-Owner: Abdirahim <abdirah...@ibm.com>
    Gerrit-Reviewer: Jakob Linke <jgr...@chromium.org>
    Gerrit-Reviewer: Nico Hartmann <nicoha...@chromium.org>
    Gerrit-CC: Milad Farazmand <mfar...@ibm.com>
    Gerrit-Attention: Nico Hartmann <nicoha...@chromium.org>
    Gerrit-Comment-Date: Fri, 26 Sep 2025 15:35:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Nico Hartmann <nicoha...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages