aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-05-19 15:14:45 -0700
committerMichael Forney <mforney@mforney.org>2019-05-19 15:16:42 -0700
commit126e085d930ea13ec0f31ee7c08c9666b0d0948d (patch)
tree55c54910ad333fdaa641fbcfea821f0cfaeb9320 /doc
parent6463066a7858c064626b4260a4ea4b3903e53886 (diff)
Add notes about building gcc 4.7
Diffstat (limited to 'doc')
-rw-r--r--doc/software.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/software.md b/doc/software.md
index 368fa8d..5711860 100644
--- a/doc/software.md
+++ b/doc/software.md
@@ -68,6 +68,25 @@ Configure with
[f6a7d135]: https://git.sr.ht/~mcf/qbe/commit/f6a7d135d54f5281547f20cc4f72a5e85862157c
+## gcc 4.7
+
+Requires a number patches available here:
+https://github.com/michaelforney/gcc/tree/gcc-4_7-branch
+
+Also requires gmp headers modified for C99 inline semantics:
+https://hg.sr.ht/~mcf/gmp-6.1/rev/53195faa26dfeafeacd57f54035373988e2a16a3
+
+Build with
+
+```
+git clone -b gcc-4_7-branch https://github.com/michaelforney/gcc
+cd 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++
+make
+```
+
## zstd
Requires disabling CPU identification inline assembly and deprecation