Author: Michael Forney <firstname.lastname@example.org>
Date: Sun, 19 May 2019 15:14:45 -0700
Add notes about building gcc 4.7
2 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
@@ -5,10 +5,9 @@ the [ISC] license.
Several GNU C [extensions] are also implemented.
-There is still much to do and some parts of the code are a little
-rough, but it currently implements most of the language and is capable
-of building some useful [software] including itself, mcpp, binutils,
+There is still much to do and some parts of the code are a little rough,
+but it currently implements most of the language and is capable of
+[building software] including itself, mcpp, gcc 4.7, binutils, and more.
It was inspired by several other small C compilers including [8cc],
[c], [lacc], and [scc].
@@ -100,7 +99,7 @@ be created, which will then become the preferred form of contribution.
+[building software]: https://man.sr.ht/~mcf/cc/doc/software.md
diff --git a/doc/software.md b/doc/software.md
@@ -68,6 +68,25 @@ Configure with
+## gcc 4.7
+Requires a number patches available here:
+Also requires gmp headers modified for C99 inline semantics:
+git clone -b gcc-4_7-branch https://github.com/michaelforney/gcc
+hg clone https://hg.sr.ht/~mcf/gmp-6.1 gmp
+(cd gmp && aux_dir=. ltdl_dir=. ./.bootstrap)
+./configure --disable-multilib --disable-bootstrap --disable-lto --enable-languages=c,c++
Requires disabling CPU identification inline assembly and deprecation