Merge pull request #1852 from xexyl/lmfjyh1993-alt

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2024-01-11 11:10:10 -08:00
commit 8b2e264a77
3 files changed
+18 -8

No files matched your search

+9 -3
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence # Common C compiler warnings to silence
# #
CSILENCE= CSILENCE= -Wno-implicit-int
# Common C compiler warning flags # Common C compiler warning flags
# #
@@ -130,8 +130,14 @@ all: data ${TARGET}
${PROG}: ${PROG}.c ${PROG}: ${PROG}.c
@echo "NOTE: This will not compile when using modern compilers because" @echo "NOTE: This will not compile when using modern compilers because"
@echo "it relies on a compiler bug which was fixed in gcc 2.3.3 (a very" @echo "it relies on a compiler bug which was fixed in gcc 2.3.3 (a very"
@echo "long time ago now). Try make alt for a version that works with gcc" @echo "long time ago now). We will build the alt version as $@ in the very"
@echo ">=2.3.3." @echo "likely case this fails to compile. If however you wish to manually"
@echo "compile the alt version you should do:"
@echo
@echo " make alt"
@echo
@echo "and then run ${ALT_TARGET}."
@echo
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c ${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
${CP} lmfjyh.c \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c ${CP} lmfjyh.c \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
${CC} ${CFLAGS} \ ${CC} ${CFLAGS} \
+3 -3
View File
@@ -22,9 +22,9 @@ alternate version for [those of
us](https://www.collinsdictionary.com/dictionary/english/everyone) with gcc >= us](https://www.collinsdictionary.com/dictionary/english/everyone) with gcc >=
2.3.3. See [Alternate code](#alternate-code) section below for more details. 2.3.3. See [Alternate code](#alternate-code) section below for more details.
However, there is an another version that will be compiled in case this fails. However, there is an another version that will be compiled in the extremely
This should happen automatically. See [Alternate code](#alternate-code) below likely case this fails. This should happen automatically. See [Alternate
for more details on it. code](#alternate-code) below for more details on it.
### Bugs and (Mis)features: ### Bugs and (Mis)features:
+6 -2
View File
@@ -1672,8 +1672,12 @@ files for functions.
version](/1993/lmfjyh/README.md#alternate-code) which does what the program did version](/1993/lmfjyh/README.md#alternate-code) which does what the program did
with gcc < 2.3.3. See the README.md file for details and for why this was made with gcc < 2.3.3. See the README.md file for details and for why this was made
the alternate version, not the actual entry. This alternate version will compile the alternate version, not the actual entry. This alternate version will compile
automatically in the very likely case (if you don't have gcc < 2.3.3) that the automatically (as `lmfjyh` itself) in the very likely case (if you don't have
entry fails to compile. gcc < 2.3.3) that the entry fails to compile.
Cody also made the Makefile delete the very unsafe filename that is compiled (or
would be compiled if gcc < 2.3.3) whether or not compilation succeeds (which is
highly unlikely).
## <a name="1993_plummer"></a>[1993/plummer](/1993/plummer/plummer.c) ([README.md](/1993/plummer/README.md])) ## <a name="1993_plummer"></a>[1993/plummer](/1993/plummer/plummer.c) ([README.md](/1993/plummer/README.md]))