[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ANN] CHICKEN 5.2.0 release candidate available
From: |
Sven Hartrumpf |
Subject: |
Re: [ANN] CHICKEN 5.2.0 release candidate available |
Date: |
Wed, 15 Jan 2020 08:32:05 +0100 (CET) |
Hi.
The RC1 generates uncompilable C code for my Scheme code.
This code worked for all previous Chicken versions (tested
today: 5.1.0).
If I use csc -O3 (-O2 is ok), I get 19 gcc errors, e.g.
nallch.c:1395027: error: void value not ignored as it ought to be
av2[3]=C_rest_arg_out_of_bounds_error(C_fix(0),C_fix(0),C_fix(0));
If I increase the optimization level to csc -O5, the error changes
because this function call is inlined in the argument position of another
function call, e g.
'gcc-8' 'nallch.c' -o 'nallch.o' -c -fno-strict-aliasing -fwrapv
-DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -O1 -march=nehalem
-I/usr/local/chicken-5.2.0-64/include/chicken
nallch.c: In function f_574889
nallch.c:924744: error: invalid use of void expression
f_606388(t2,lf[908],C_rest_arg_out_of_bounds_error(C_fix(0),C_fix(0),C_fix(0)));}
As other C problems in past weeks, it is related to the
optimization of rest args. I like this optimization, but it seems to be more
and more tricky ...
Does anyone have a simple test case for such errors with rest args
when compiling with -O3 or higher?
Ciao
Sven
- [ANN] CHICKEN 5.2.0 release candidate available, Peter Bex, 2020/01/12
- Re: [ANN] CHICKEN 5.2.0 release candidate available, felix . winkelmann, 2020/01/12
- Re: [ANN] CHICKEN 5.2.0 release candidate available, Thomas Chust, 2020/01/12
- Re: [ANN] CHICKEN 5.2.0 release candidate available, Peter Bex, 2020/01/13
- Re: [ANN] CHICKEN 5.2.0 release candidate available, Vasilij Schneidermann, 2020/01/14
- Re: [ANN] CHICKEN 5.2.0 release candidate available,
Sven Hartrumpf <=
- Re: [ANN] CHICKEN 5.2.0 release candidate available, Alexander Shendi (Web.DE), 2020/01/15
- Re: [ANN] CHICKEN 5.2.0 release candidate available, Jeronimo Pellegrini, 2020/01/24