[Aldor-l] Compiling setup
Page, Bill
Bill.Page at drdc-rddc.gc.ca
Thu Aug 10 21:13:38 EDT 2006
On Thursday, August 10, 2006 8:56 PM Gabriel Dos Reis wrote:
> ...
> What you have to do is that you need to modify the variable
> gcc-hacks from section [gcc] of /usr/local/aldor/linux/
> 1.0.3/aldor.conf not to include -fwritable-strings. There
> is an obscure comment about why that flags is needed.
>
> Mine now reads:
>
> # On some platforms string literals are stored in read-only
> segments.
> # This causes problems when users write Aldor programs in
> which a
> # string literal is used as a buffer. The result is a
> segfault that
> # is extremely hard to track down, even for experienced
> Aldor coders.
> # GDR: Well, either that is a bug in Aldor, or a bug in
> those experienced
> # GDR: aldor coders' programs. At any rate, that option
> is no
> # longer supported.
> # gcc-hacks = -fwritable-strings
> gcc-hacks =
>
Rather than "bug" I think it would be more fair to call
this a "design flaw"... :)
Does your change to aldor.conf actually work?? If so great!
But this does contradict a statement made recently by one
of (the only?) Aldor compiler developer here on this list.
How much testing have you done?
I presumed that the gcc developers removed rewritable-strings
because this "feature" of the C language is no longer
supported -- not just because they are "purists", right? ;)
So if Aldor can generate C code that violates this restriction,
it is probably not such a good idea to remove this "gcc-hack"
until the Aldor developers say it is no longer required. No?
Regards,
Bill Page.
More information about the Aldor-l
mailing list