Commit 6c70342
committed
[flang][RISCV][WIP] Add target-abi ModuleFlag.
This is needed to generate proper ABI flags in the ELF header for LTO builds.
If these flags aren't set correctly, we can't link with objects that
were built with the correct flags.
For non-LTO builds the mcpu/mattr in the TargetMachine will cause
the backend to infer an ABI. For LTO builds the mcpu/mattr aren't set.
Still need testing and validation of the ABI name.1 parent c3b7894 commit 6c70342
File tree
4 files changed
+16
-1
lines changed- clang/lib/Driver/ToolChains
- flang
- include/flang/Frontend
- lib/Frontend
4 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| 467 | + | |
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
923 | 926 | | |
924 | 927 | | |
925 | 928 | | |
926 | | - | |
927 | 929 | | |
928 | 930 | | |
929 | 931 | | |
930 | 932 | | |
931 | 933 | | |
932 | 934 | | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
933 | 940 | | |
934 | 941 | | |
935 | 942 | | |
| |||
0 commit comments