Commit 0c3761b
committed
Emit an error message on unsupported llvm_asm
llvm_asm was never meant to be completely supported since it has been
replaced with the asm macro but we still need it to compile some parts
of libcore, previously the compiler was aborting when an unsupported
llvm_asm construct was found.
gcc/rust/ChangeLog:
* ast/rust-expr.h: Add const getters to llvm members.
* hir/rust-ast-lower-expr.cc (check_llvm_asm_support): Check llvm_asm
usage validity.
(ASTLoweringExpr::visit): Emit an error message instead of aborting.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>1 parent 34ad192 commit 0c3761b
2 files changed
Lines changed: 33 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5669 | 5669 | | |
5670 | 5670 | | |
5671 | 5671 | | |
| 5672 | + | |
| 5673 | + | |
| 5674 | + | |
| 5675 | + | |
5672 | 5676 | | |
5673 | 5677 | | |
5674 | 5678 | | |
| |||
5687 | 5691 | | |
5688 | 5692 | | |
5689 | 5693 | | |
| 5694 | + | |
5690 | 5695 | | |
| 5696 | + | |
5691 | 5697 | | |
5692 | 5698 | | |
| 5699 | + | |
5693 | 5700 | | |
5694 | 5701 | | |
5695 | 5702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
997 | 1014 | | |
998 | 1015 | | |
999 | 1016 | | |
| |||
1026 | 1043 | | |
1027 | 1044 | | |
1028 | 1045 | | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1036 | 1055 | | |
1037 | 1056 | | |
1038 | 1057 | | |
| |||
0 commit comments