Issue |
90001
|
Summary |
clang misleading diagnostic: error: 'f' requires 'float' type support, but ABI 'aapcs' does not support it
|
Labels |
clang,
clang:diagnostics
|
Assignees |
|
Reporter |
jroelofs
|
```
float f(void) { return 1.f; }
```
+
```
-mgeneral-regs-only
```
gives:
```
<source>:1:7: error: 'f' requires 'float' type support, but ABI 'aapcs' does not support it
1 | float f(void) { return 1.f; }
| ^
1 error generated.
```
https://clang.godbolt.org/z/d3vGv9ahM
The diagnostic should blame `-mgeneral-regs-only` instead of the ABI, which has been modified by the flag.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs