diff options
author | 2020-03-12 23:13:57 +0000 | |
---|---|---|
committer | 2020-03-12 23:13:57 +0000 | |
commit | a976eefad7cd78cf43c28d3d73884473327eea73 (patch) | |
tree | 218965295b462332d91165215725f6564fbb1cda /dev-lang/mmix/files | |
parent | dev-python/sphinx_rtd_theme: mark 0.4.3-r1 ~sparc, bug #711622 (diff) | |
download | gentoo-a976eefad7cd78cf43c28d3d73884473327eea73.tar.gz gentoo-a976eefad7cd78cf43c28d3d73884473327eea73.tar.bz2 gentoo-a976eefad7cd78cf43c28d3d73884473327eea73.zip |
dev-lang/mmix: tweak for gcc-10
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-lang/mmix/files')
-rw-r--r-- | dev-lang/mmix/files/mmix-20160804-gcc-10.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-lang/mmix/files/mmix-20160804-gcc-10.patch b/dev-lang/mmix/files/mmix-20160804-gcc-10.patch new file mode 100644 index 000000000000..076d22952a51 --- /dev/null +++ b/dev-lang/mmix/files/mmix-20160804-gcc-10.patch @@ -0,0 +1,24 @@ +gcc-10 defaults to -fno-common. Causes linker errors for +duplicate 'buffer' definition. +--- a/mmix-config.w ++++ b/mmix-config.w +@@ -357,7 +357,7 @@ print error messages. + + @<Global variables@>= + FILE *config_file; /* input comes from here */ +-char buffer[BUF_SIZE]; /* input lines go here */ ++static char buffer[BUF_SIZE]; /* input lines go here */ + char token[BUF_SIZE]; /* and tokens are copied to here */ + char *buf_pointer=buffer; /* this is our current position */ + bool token_prescanned; /* does |token| contain the next token already? */ +--- a/mmmix.w ++++ b/mmmix.w +@@ -115,7 +115,7 @@ and \Hex{fedcba9876543210} into location \Hex{0123456789b0}. + octa cur_loc; + octa cur_dat; + bool new_chunk; +-char buffer[BUF_SIZE]; ++static char buffer[BUF_SIZE]; + FILE *prog_file; + + @ @<Input a rudimentary hexadecimal file@>= |