git: 9front

Download patch

ref: 3b2d76319d53a02b1336609e7f1311d927595ce4
parent: 3a2b2862d506539debb8f0fb40d5522880a50871
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Oct 16 13:57:09 EDT 2023

7l: avoid hitting old 7c bug with 64-bit constant propagation

This is just to prevent breaking builds in case
someone compiles 7l with a old 7c compiler that
has the constant propagation bug.

The solution is to move the 64-bit assignments
together at the front.

--- a/sys/src/cmd/7l/obj.c
+++ b/sys/src/cmd/7l/obj.c
@@ -59,10 +59,10 @@
 	outfile = 0;
 	nerrors = 0;
 	curtext = P;
-	HEADTYPE = -1;
 	INITTEXT = -1;
-	INITTEXTP = -1;
 	INITDAT = -1;
+	HEADTYPE = -1;
+	INITTEXTP = -1;
 	INITRND = -1;
 	INITENTRY = 0;
 
--