| Issue |
87945
|
| Summary |
Command line option `-mno-strict-align` valid for C input but not valid for object input?
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
sh1boot
|
No problem with this:
```
$ clang-19 --target=riscv64-linux-gnu -march=rv64gcv -mno-strict-align test.c
```
But if you compile it and then try to pass the object file it becomes a problem:
```
$ clang-19 --target=riscv64-linux-gnu -march=rv64gcv -mno-strict-align test.o
clang-19: error: unsupported option '-mno-strict-align' for target 'riscv64-linux-gnu'
```
The same thing happens with `--target=aarch64-linux-gnu`.
And some build tools seem to like mixing `CFLAGS` in on top of `LDFLAGS` to make this a serious impediment.
Curiously, for `-munaligned-access` RISC-V seems to have this problem the other way around, where it's only accepted with object files; while aarch64 has no problem with that switch in either case.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs