Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #20556
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Announce: gforth-0.7.1 |
| Date | 2013-03-11 20:49 +0100 |
| Organization | 1&1 Internet AG |
| Message-ID | <khlcgr$70u$1@online.de> (permalink) |
| References | <kg8apk$vbv$1@online.de> <e48f8c5f-d1bc-4a84-9ff9-8a00f7478833@googlegroups.com> |
Michael L Gassanenko wrote:
> On Friday, February 22, 2013 9:44:19 PM UTC+4, Bernd Paysan wrote:
>> Since gcc 4.7, gforth-0.7.0 doesn't compile out of the box
>
> What was the problem?
The newline string was defined as char newline = {} inside a block, and GCC
now made sure that the livetime of this string does not exceed this block,
so we need to declare it static const (starting with gcc 4.7). And some gcc
4.6.x versions (but not all; this is a bug in GCC, which was fixed in 4.7
and AFAIK also 4.6.2) failed to compile our static superinstructions
correctly, so we needed to reorder the way we create the C code (which then
doesn't trigger the bug).
--
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/
Back to comp.lang.forth | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Announce: gforth-0.7.1 Michael L Gassanenko <m_l_g3@yahoo.com> - 2013-03-11 01:41 -0700 Re: Announce: gforth-0.7.1 Bernd Paysan <bernd.paysan@gmx.de> - 2013-03-11 20:49 +0100
csiph-web