Skip to content

Conversation

FractalFir
Copy link
Contributor

This PR adds support for parsing targets with architectures supported by GCC, but not LLVM.

I am currently working on adding support for those architectures to rustc_codegen_gcc . Adding full support for those architectures would allow Rust packages to be built for all the platforms debian supports.

Since alpha and SuperH(sh) have multiple variants, I use starts_with to detect them, as seems to be the convention.

The GCC config does not mention any variants of parisc, so I just match on that strict.

@FractalFir FractalFir force-pushed the main branch 5 times, most recently from 525f9f4 to 98252af Compare July 24, 2025 19:29

// Arches supported by gcc, but not LLVM.
arch if arch.starts_with("alpha") => "alpha", // DEC Alpha
"parisc" => "parisc", // https://en.wikipedia.org/wiki/PA-RISC, also known as HPPA
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I googled and can't find any target with parisc name in it https://parisc.docs.kernel.org/en/latest/binutils.html

For PA-RISC, binutils supports several targets, including hppa-linux, hppa64-linux, hppa-netbsd, hppa-hpux, hppa64-hpux.

cc @madsmtm @ChrisDenton

Copy link
Contributor Author

@FractalFir FractalFir Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my bad. I got deceived by some GCC config options, which call this ISA parisc instead of hppa.

image

The correct name seems to be indeed hppa.

https://packages.debian.org/sid/gcc-hppa-linux-gnu

@FractalFir
Copy link
Contributor Author

Fixed the incorrect naming("parisc" -> "hppa").

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM, the next scheduled release is on next Thursday/Friday, do you want a new release now?

@NobodyXu NobodyXu merged commit fcc7fc4 into rust-lang:main Jul 26, 2025
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants