From 126e085d930ea13ec0f31ee7c08c9666b0d0948d Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 19 May 2019 15:14:45 -0700 Subject: Add notes about building gcc 4.7 --- doc/software.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3