Opened 4 years ago

Closed 2 years ago

#62184 closed defect (worksforme)

gcc-devel on big sur Apple Silicon w/ xcode 12.4 fails to assemble pc-relative literal loads

Reported by: blu (Martin Krastev) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: arm64 Cc: mascguy (Christopher Nielsen), michaelld (Michael Dickens), cjones051073 (Chris Jones)
Port: gcc-devel

Description

gcc-devel @11-20210124 on big sur Apple Silicon w/ xcode 12.4 fails to assemble pc-relative literal loads (-mpc-relative-literal-loads)

// repro.cpp
int       __attribute__ ((vector_size(sizeof(int) * 4))) x;
int const __attribute__ ((vector_size(sizeof(int) * 4))) y = { 1, 2, 3, 4 };

int main(int, char**)
{
    int const __attribute__ ((vector_size(sizeof(int) * 4))) z = x * y;
    return z[0] + z[1] + z[2] + z[3];
}

$ xcrun g++-mp-devel repro.cpp -mpc-relative-literal-loads

Change History (4)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: arm64 added

You probably want to report this upstream; it's unlikely to be a MacPorts-specific problem.

comment:2 Changed 4 years ago by kencu (Ken)

The exact place to report this is here, for the time being:

<https://github.com/iains/gcc-darwin-arm64/issues>

comment:3 Changed 3 years ago by michaelld (Michael Dickens)

Is this still relevant with gcc-devel for ARM64 now at 12-20210716?

comment:4 in reply to:  3 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy michaelld cjones051073 added
Resolution: worksforme
Status: newclosed

Replying to michaelld:

Is this still relevant with gcc-devel for ARM64 now at 12-20210716?

No response after 13 months, closing. If this is still an issue, please reopen.

Note: See TracTickets for help on using tickets.