Skip to content

Commit ad2dc12

Browse files
committed
removed spurious FIT command in P1 org/end inline assembly
1 parent affac81 commit ad2dc12

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Version 7.6.2
22
- Added check for `NO_COLOR` environment variable (thanks to Ada)
33
- Added a warning for P1 code with _clkfreq but no _clkmode
4+
- Removed spurious FIT command in P1 org/end inlines
45

56
Version 7.6.1
67
- Fixed looking up namespaced asm symbols from Spin code

backends/asm/inlineasm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ CompileTraditionalInlineAsm(IRList *irl, AST *origtop, unsigned asmFlags)
820820
if (relpc > gl_fcache_size) {
821821
ERROR(origtop, "Inline assembly too large to fit in fcache");
822822
}
823-
if (fcache) {
823+
if (fcache && gl_p2) {
824824
fitir = NewIR(OPC_FIT);
825825
fitir->dst = NewImmediate(gl_fcache_size);
826826
fitir->flags |= FLAG_USER_INSTR;

0 commit comments

Comments
 (0)