Opened 4 weeks ago

Last modified 4 weeks ago

#62184 new defect

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:
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 (2)

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

Keywords: arm64 added

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

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

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

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

Note: See TracTickets for help on using tickets.