From 156e745be9f6a1b19b0f8e2a931148786d7acad4 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Wed, 23 Jul 2025 06:47:21 -0400 Subject: all: remove need for `-fcommon` Use `extern` where appropriate so that we can remove `-fcommon` on macOS and others. On macOS, `-fcommon` generates a number of linker warnings. I've tested building on macOS, Linux, FreeBSD, NetBSD, OpenBSD and illumos. I am not in a position to test on AIX or other more esoteric platforms, however. --- src/cmd/acid/acid.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/cmd/acid') diff --git a/src/cmd/acid/acid.h b/src/cmd/acid/acid.h index 5b1339fe..da7e314d 100644 --- a/src/cmd/acid/acid.h +++ b/src/cmd/acid/acid.h @@ -47,14 +47,14 @@ Extern Node* code; Extern int na; Extern int wtflag; Extern Regs* acidregs; -Extern Regs* correg; -Extern Map* cormap; -Extern Map* symmap; +extern Regs* correg; +extern Map* cormap; +extern Map* symmap; Extern Lsym* hash[Hashsize]; Extern long dogc; Extern Rplace* ret; -Extern char* symfil; -Extern char* corfil; +extern char* symfil; +extern char* corfil; Extern int gotint; Extern long flen; Extern Gc* gcl; @@ -66,8 +66,8 @@ Extern Node* fomt; Extern List* tracelist; Extern int initialising; Extern int quiet; -Extern Fhdr* corhdr; -Extern Fhdr* symhdr; +extern Fhdr* corhdr; +extern Fhdr* symhdr; extern void (*expop[])(Node*, Node*); #define expr(n, r) (r)->store.comt=0; (*expop[(unsigned char)((n)->op)])(n, r); -- cgit v1.2.3