From d2f02075f6f218201667fed8036c710efb60709e Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 19 Dec 2023 09:47:22 -0800 Subject: [PATCH] Re-enable optimiser in 2001/williams The bugs.md was updated to remind people when debugging crashes that it would be wise to have -O0 and -g (or if they can -ggdb3). That should be noted in general for debugging but it's especially useful for crashes and I'm trying to get this part done so I can resume 2019. --- 2001/williams/Makefile | 2 +- bugs.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/2001/williams/Makefile b/2001/williams/Makefile index 6e003cf2e..95cf1373a 100644 --- a/2001/williams/Makefile +++ b/2001/williams/Makefile @@ -68,7 +68,7 @@ CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11 # Optimization # -OPT= -ggdb3 +OPT= -O3 # Default flags for ANSI C compilation # diff --git a/bugs.md b/bugs.md index 28c7d8989..d61bffcaa 100644 --- a/bugs.md +++ b/bugs.md @@ -302,6 +302,9 @@ crashes. NOTE: this does NOT apply to entries under the INABIAF status (though they're not mutually exclusive in some cases). +REMINDER: if you're debugging a crash it will be very helpful to have `-O0 -g` +or if you can `-ggdb3` when compiling as that will help with debugging symbols. + ## STATUS: uses gets() - change to fgets() if possible