Fat LTO ignores user GCC flags
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the cited code in src/back/write.rs around line 146 and trace how Fat LTO creates its gccjit context and passes compiler arguments. Check where llvm_args are handled and compare that path with compilation without LTO. Done means the user's GCC flags are preserved for Fat LTO and the reported MIPS $gp-relative relocations no longer break linking.
索引モデルが issue の本文から書いたものです。
説明
In my MIPS program, I have GCC flags specifically to disable $gp-relative accesses, which works fine without LTO enabled. But if I enable LTO, it starts compiling with $gp-relative accesses/relocations, which breaks the entire build at the linking stage.
After some investigation, I figured out that this piece of code may be the culprit. It seems like it creates a new gccjit context and only sets a few arguments (disregarding whatever I set in llvm_args) before it starts compiling.
https://github.com/rust-lang/rustc_codegen_gcc/blob/master/src/back/write.rs#L146
- 主要言語
- Rust
- スター
- 1.2k
- フォーク
- 106
- 平均マージ
- 11時間 14分
- マージ済み PR(30日)
- 25
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/rustc_codegen_gcc のほかの issue
-
tests
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
rust-lang/rustc_codegen_gcc#993 ·
メンテナーはふだん 1 日以内に返信
-
Cannot compile sysroot if having a build.build-dir cargo config対応中かも @GuillaumeGomez が 10 日前に担当しました。 オープン
rust-lang/rustc_codegen_gcc#1011 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
tests
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
rust-lang/rustc_codegen_gcc#992 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rust-lang/rustc_codegen_gcc#970 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
rust-lang/rustc_codegen_gcc#943 ·
メンテナーはふだん 1 日以内に返信
rust-lang/rustc_codegen_gcc の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
yunfie-twitter/Palleria#474 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
servo/rust-smallvec#827 ·
メンテナーはふだん 1 日以内に返信
-
bug tests
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信