Skip to content

compiletest powerpc64 arch is useless #47737

Closed

Description

The ARCH_TABLE in compiletest contains a useless entry for powerpc64.
https://github.com/rust-lang/rust/blob/79b25c666fec/src/tools/compiletest/src/util.rs#L34

The only user of that table is get_arch which scans the table sequentially to see if a target contains an architecture in the table. Since powerpc is a substring of powerpc64, the entry for powerpc64 will never match anything and is therefore useless.

This also means that all ignore-powerpc64 headers in the testsuite currently do nothing. I also found a few ignore-powerpc64le headers which probably do nothing as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.O-PowerPCTarget: PowerPC processorsTarget: PowerPC processorsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions