diff options
author | Mike Pall <mike> | 2023-08-12 14:29:02 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-08-12 14:29:02 +0200 |
commit | 91914b23f69ce2863ba1cca90f2a9fc69ad2675b (patch) | |
tree | d266cb0c03399e16e7f32bb1fcdb213cc8850ac3 /dynasm | |
parent | 8635cbabf3094c4d8bd00578c7d812bea87bb2d3 (diff) | |
download | luajit-91914b23f69ce2863ba1cca90f2a9fc69ad2675b.tar.gz luajit-91914b23f69ce2863ba1cca90f2a9fc69ad2675b.tar.bz2 luajit-91914b23f69ce2863ba1cca90f2a9fc69ad2675b.zip |
DynASM: Fix regression due to warning fix.
Thanks to Dmitry Stogov. #1041 #970
Diffstat (limited to 'dynasm')
-rw-r--r-- | dynasm/dasm_arm.h | 1 | ||||
-rw-r--r-- | dynasm/dasm_arm64.h | 1 | ||||
-rw-r--r-- | dynasm/dasm_mips.h | 1 | ||||
-rw-r--r-- | dynasm/dasm_ppc.h | 1 | ||||
-rw-r--r-- | dynasm/dasm_x86.h | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/dynasm/dasm_arm.h b/dynasm/dasm_arm.h index aa16014e..4570cd12 100644 --- a/dynasm/dasm_arm.h +++ b/dynasm/dasm_arm.h | |||
@@ -142,6 +142,7 @@ void dasm_setup(Dst_DECL, const void *actionlist) | |||
142 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); | 142 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); |
143 | for (i = 0; i < D->maxsection; i++) { | 143 | for (i = 0; i < D->maxsection; i++) { |
144 | D->sections[i].pos = DASM_SEC2POS(i); | 144 | D->sections[i].pos = DASM_SEC2POS(i); |
145 | D->sections[i].rbuf = D->sections[i].buf - D->sections[i].pos; | ||
145 | D->sections[i].ofs = 0; | 146 | D->sections[i].ofs = 0; |
146 | } | 147 | } |
147 | } | 148 | } |
diff --git a/dynasm/dasm_arm64.h b/dynasm/dasm_arm64.h index e04898f1..dffd64e8 100644 --- a/dynasm/dasm_arm64.h +++ b/dynasm/dasm_arm64.h | |||
@@ -144,6 +144,7 @@ void dasm_setup(Dst_DECL, const void *actionlist) | |||
144 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); | 144 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); |
145 | for (i = 0; i < D->maxsection; i++) { | 145 | for (i = 0; i < D->maxsection; i++) { |
146 | D->sections[i].pos = DASM_SEC2POS(i); | 146 | D->sections[i].pos = DASM_SEC2POS(i); |
147 | D->sections[i].rbuf = D->sections[i].buf - D->sections[i].pos; | ||
147 | D->sections[i].ofs = 0; | 148 | D->sections[i].ofs = 0; |
148 | } | 149 | } |
149 | } | 150 | } |
diff --git a/dynasm/dasm_mips.h b/dynasm/dasm_mips.h index 495eaa0e..2273dba2 100644 --- a/dynasm/dasm_mips.h +++ b/dynasm/dasm_mips.h | |||
@@ -141,6 +141,7 @@ void dasm_setup(Dst_DECL, const void *actionlist) | |||
141 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); | 141 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); |
142 | for (i = 0; i < D->maxsection; i++) { | 142 | for (i = 0; i < D->maxsection; i++) { |
143 | D->sections[i].pos = DASM_SEC2POS(i); | 143 | D->sections[i].pos = DASM_SEC2POS(i); |
144 | D->sections[i].rbuf = D->sections[i].buf - D->sections[i].pos; | ||
144 | D->sections[i].ofs = 0; | 145 | D->sections[i].ofs = 0; |
145 | } | 146 | } |
146 | } | 147 | } |
diff --git a/dynasm/dasm_ppc.h b/dynasm/dasm_ppc.h index 30b757e3..14db019d 100644 --- a/dynasm/dasm_ppc.h +++ b/dynasm/dasm_ppc.h | |||
@@ -141,6 +141,7 @@ void dasm_setup(Dst_DECL, const void *actionlist) | |||
141 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); | 141 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); |
142 | for (i = 0; i < D->maxsection; i++) { | 142 | for (i = 0; i < D->maxsection; i++) { |
143 | D->sections[i].pos = DASM_SEC2POS(i); | 143 | D->sections[i].pos = DASM_SEC2POS(i); |
144 | D->sections[i].rbuf = D->sections[i].buf - D->sections[i].pos; | ||
144 | D->sections[i].ofs = 0; | 145 | D->sections[i].ofs = 0; |
145 | } | 146 | } |
146 | } | 147 | } |
diff --git a/dynasm/dasm_x86.h b/dynasm/dasm_x86.h index 66a68ea5..ae5cb429 100644 --- a/dynasm/dasm_x86.h +++ b/dynasm/dasm_x86.h | |||
@@ -140,6 +140,7 @@ void dasm_setup(Dst_DECL, const void *actionlist) | |||
140 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); | 140 | if (D->pclabels) memset((void *)D->pclabels, 0, D->pcsize); |
141 | for (i = 0; i < D->maxsection; i++) { | 141 | for (i = 0; i < D->maxsection; i++) { |
142 | D->sections[i].pos = DASM_SEC2POS(i); | 142 | D->sections[i].pos = DASM_SEC2POS(i); |
143 | D->sections[i].rbuf = D->sections[i].buf - D->sections[i].pos; | ||
143 | D->sections[i].ofs = 0; | 144 | D->sections[i].ofs = 0; |
144 | } | 145 | } |
145 | } | 146 | } |