Discussion:
AHCC V4.8
(too old to reply)
Henk Robbers
2011-11-27 21:25:08 UTC
Permalink
LS

There is a new version available on my home page (see sig)

Changes:

november 28 2011
v4.8
Compiler:
Fix a crash that sometimes could occur when a local
initializer was absent or was wrong.
Fix a crash when a while expression is wrong or absent.
Allow {} around any local initializer.

Deny arrays of void.
Deny returning of arrays.

Fixed a regression since 4.7 leading to incorrect code
in rare situations.

Fix a error preventing floating constants of the form:
nE-n from compiling correctly.

Coldfire:
Fix incorrect code when a temporary was needed
from a memory location.

Library:
Fixed a leftover from Sozobon, where a floating point
integral part could not exceed |2^31|.

Changed v_pie --> v_pieslice


Have fun
--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: TT-Digger; http://digger.atari.org
A Home Cooked C compiler: AHCC; http://ahcc.atari.org
Matthias Arndt
2011-11-29 18:50:23 UTC
Permalink
Hello Henk,

I hope "Deny arrays of void." does not included array of void functions,
or more precise arrays of pointers to functions with no return value.

Sometimes such function pointers can be very handy.

Best regards and thanks for your great work on AHCC!
Matthias
Post by Henk Robbers
LS
There is a new version available on my home page (see sig)
november 28 2011
v4.8
Fix a crash that sometimes could occur when a local
initializer was absent or was wrong.
Fix a crash when a while expression is wrong or absent.
Allow {} around any local initializer.
Deny arrays of void.
Deny returning of arrays.
Fixed a regression since 4.7 leading to incorrect code
in rare situations.
nE-n from compiling correctly.
Fix incorrect code when a temporary was needed
from a memory location.
Fixed a leftover from Sozobon, where a floating point
integral part could not exceed |2^31|.
Changed v_pie --> v_pieslice
Have fun
--
Matthias Arndt <***@asmsoftware.de>
PGP-Key: http://www.final-memory.org/files/marndt.asc
Jabber: ***@atari-jabber.org
Henk Robbers
2011-11-29 21:25:08 UTC
Permalink
Post by Matthias Arndt
Hello Henk,
I hope "Deny arrays of void." does not included array of void functions,
or more precise arrays of pointers to functions with no return value.
Hi Matthias.
Good question.

I discovered that denying of arrays of void was absent through a typo:

I think you will like this. :-)

Someone tried to define just an array of pointers to void functions.
It was wrong in a funny way.

void (*draw)(void)[] = foobar;

It should have been:

void (*draw[])(void) = foobar;


The first is: pointer to function returning array of void.
Two errors that are now properly denied.

The second one is OK as it was intended:
array of pointers to functions returning void.

That always has worked correctly.


Satisfied? :-)

C can sometimes look weird.
--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: TT-Digger; http://digger.atari.org
A Home Cooked C compiler: AHCC; http://ahcc.atari.org
Matthias Arndt
2011-12-03 09:15:15 UTC
Permalink
Hello Henk,

indeed satisfied. I just wanted to make sure that this useful feature is
working properly with AHCC.

BTW does AHCC support inlining of C functions with the keyword inline?

cheers,
Matthias
Post by Henk Robbers
Post by Matthias Arndt
Hello Henk,
I hope "Deny arrays of void." does not included array of void functions,
or more precise arrays of pointers to functions with no return value.
Hi Matthias.
Good question.
I think you will like this. :-)
Someone tried to define just an array of pointers to void functions.
It was wrong in a funny way.
void (*draw)(void)[] = foobar;
void (*draw[])(void) = foobar;
The first is: pointer to function returning array of void.
Two errors that are now properly denied.
array of pointers to functions returning void.
That always has worked correctly.
Satisfied? :-)
C can sometimes look weird.
--
Matthias Arndt <***@asmsoftware.de>
PGP-Key: http://www.final-memory.org/files/marndt.asc
Jabber: ***@atari-jabber.org
Henk Robbers
2011-12-03 23:21:30 UTC
Permalink
Post by Matthias Arndt
BTW does AHCC support inlining of C functions with the keyword inline?
No, and never (not by me, that is).
--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: TT-Digger; http://digger.atari.org
A Home Cooked C compiler: AHCC; http://ahcc.atari.org
Loading...