equal
deleted
inserted
replaced
1 |
|
2 # HG changeset patch |
|
3 # User Zhao Jiazhong <zhaojiazhong-hf@loongson.cn> |
|
4 # Date 1631000649 0 |
|
5 # Node ID eac40293649628d32911c909219d514bebb8ce63 |
|
6 # Parent 6582d77235867224aaf8621bad8ee167dfb31460 |
|
7 Bug 1729124 - [MIPS64][ARM64] Fix gcc build issue. r=lth |
|
8 |
|
9 The SpecificRegs struct needs a constructor. |
|
10 |
|
11 Differential Revision: https://phabricator.services.mozilla.com/D124535 |
|
12 |
|
13 diff --git a/js/src/wasm/WasmBCRegDefs.h b/js/src/wasm/WasmBCRegDefs.h |
|
14 --- a/js/src/wasm/WasmBCRegDefs.h |
|
15 +++ b/js/src/wasm/WasmBCRegDefs.h |
|
16 @@ -374,25 +374,31 @@ struct SpecificRegs { |
|
17 }; |
|
18 #elif defined(JS_CODEGEN_ARM) |
|
19 struct SpecificRegs { |
|
20 RegI64 abiReturnRegI64; |
|
21 |
|
22 SpecificRegs() : abiReturnRegI64(ReturnReg64) {} |
|
23 }; |
|
24 #elif defined(JS_CODEGEN_ARM64) |
|
25 -struct SpecificRegs {}; |
|
26 +struct SpecificRegs { |
|
27 + // Required by gcc. |
|
28 + SpecificRegs() {} |
|
29 +}; |
|
30 #elif defined(JS_CODEGEN_MIPS32) |
|
31 struct SpecificRegs { |
|
32 RegI64 abiReturnRegI64; |
|
33 |
|
34 SpecificRegs() : abiReturnRegI64(ReturnReg64) {} |
|
35 }; |
|
36 #elif defined(JS_CODEGEN_MIPS64) |
|
37 -struct SpecificRegs {}; |
|
38 +struct SpecificRegs { |
|
39 + // Required by gcc. |
|
40 + SpecificRegs() {} |
|
41 +}; |
|
42 #else |
|
43 struct SpecificRegs { |
|
44 # ifndef JS_64BIT |
|
45 RegI64 abiReturnRegI64; |
|
46 # endif |
|
47 |
|
48 SpecificRegs() { MOZ_CRASH("BaseCompiler porting interface: SpecificRegs"); } |
|
49 }; |
|
50 |
|