tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Best workaround for VLA's


From: Luis Alejandro Muzzachiodi
Subject: Re: [Tinycc-devel] Best workaround for VLA's
Date: Tue, 12 Apr 2011 23:24:33 -0700 (PDT)

--- The mon 11-apr-11, Thomas Preud'homme wrote:
>The page http://p99.gforge.inria.fr/c99-conformance/c99-conformance-
>tcc-0.9.25.html is interesting. It lists a bunch of bug to fix in tcc. Maybe
>you'd be interested in fixing some of them? One first thing could be to try with
>the latest mob branch to see if some of them have been fixed.


These are the results of the c99 conformance test of p99.
Note: my TCC isn't the latest mob. It's as old as 18-03-2011 (175712...?).
Next, I paste the command line, the result and the line(s) related(s) to the warnings or errors (as you see, when a new issue is founded i've deactivated it with one SKIP option).
I hope this be useful.
Saludos,

Alejandro
----------------------------- Results of the test of C99 conformance -------------------------

c:\tccnew\win32\tcc.exe -Wall -c  test-p99-conformance.c
test-p99-conformance.c:49: error: 'n' undeclared
Where ...
line 49: double has_VLA_function(unsigned n, double A[n][n]) {

c:\tccnew\win32\tcc.exe -Wall -c -DSKIP_VLA test-p99-conformance.c
<paste>:1: warning: pasting "(" and ")" does not give a valid preprocessing token
test-p99-conformance.c:212: error: identifier expected
 Where ...
warning line 170: char const has_concat_of_hash_hash[] = STRINGIFY(CONCAT2(#, #));
error line 212 : void has_static_parameter(double A[static 10]){
     
c:\tccnew\win32\tcc.exe -Wall -c -DSKIP_VLA -DSKIP_TOKEN_CONCAT_HASH_HASH -DSKIP_STATIC_PARAMETER test-p99-conformance.c
test-p99-conformance.c:217: error: identifier expected
Where ...   
line 217: void has_const_parameter(double A[const 10]){
   
c:\tccnew\win32\tcc.exe -Wall -c -DSKIP_VLA -DSKIP_TOKEN_CONCAT_HASH_HASH -DSKIP_STATIC_PARAMETER -DSKIP_CONST_PARAMETER test-p99-conformance.c
test-p99-conformance.c:222: error: identifier expected
Where ...   
line 222: void has_volatile_parameter(double A[volatile 10]){

c:\tccnew\win32\tcc.exe -Wall -c -DSKIP_VLA -DSKIP_TOKEN_CONCAT_HASH_HASH -DSKIP_STATIC_PARAMETER -DSKIP_CONST_PARAMETER -DSKIP_VOLATILE_PARAMETER test-p99-conformance.c
test-p99-conformance.c:280: error: identifier expected
Where ...   
#ifndef SKIP_PRAGMA
# pragma STDC FP_CONTRACT ON
# define PRAGMA(MESS) _Pragma(# MESS)
PRAGMA(STDC FP_CONTRACT OFF) // line 280
#endif   

c:\tccnew\win32\tcc.exe -Wall -c -DSKIP_VLA -DSKIP_TOKEN_CONCAT_HASH_HASH -DSKIP_STATIC_PARAMETER -DSKIP_CONST_PARAMETER -DSKIP_VOLATILE_PARAMETER -DSKIP_PRAGMA test-p99-conformance.c
test-p99-conformance.c:317: error: #error "this should be a large positive value, at least ULLONG_MAX >= 2^{64} - 1"
Where ...
long long has_long_long = 0;
unsigned long long has_ullong_max[-1 + 2*((0ULL - 1) >= 18446744073709551615ULL)];
long double has_long_double = 1.0L;
....   
# if (~0U < 18446744073709551615ULL)
#  error "this should be a large positive value, at least ULLONG_MAX >= 2^{64} - 1" // line 317
# endif   

c:\tccnew\win32\tcc.exe -Wall -c -DSKIP_VLA -DSKIP_TOKEN_CONCAT_HASH_HASH -DSKIP_STATIC_PARAMETER -DSKIP_CONST_PARAMETER -DSKIP_VOLATILE_PARAMETER -DSKIP_PRAGMA  -DSKIP_PREPRO_ARITH test-p99-conformance.c
test-p99-conformance.c:326: warning: assignment from incompatible pointer type
test-p99-conformance.c:327: warning: assignment from incompatible pointer type
test-p99-conformance.c:328: error: stray '\' in program
Where ...
line 326: int const* has_universal_string_4 = L"\u2018\u03A7\u2060X\u2019";
line 327: int const* has_universal_string_8 = L"\U00002018\U000003A7\U00002060X\U00002019";
line 328: int has_\u03BA\u03B1\u03B8\u03BF\u03BB\u03B9\u03BA\u03CC\u03C2_\u03c7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1 = 1;

c:\tccnew\win32\tcc.exe -Wall -c -DSKIP_VLA -DSKIP_TOKEN_CONCAT_HASH_HASH -DSKIP_STATIC_PARAMETER -DSKIP_CONST_PARAMETER -DSKIP_VOLATILE_PARAMETER -DSKIP_PRAGMA  -DSKIP_PREPRO_ARITH -DSKIP_UNIVERSAL test-p99-conformance.c
test-p99-conformance.c:338: error: ';' expected (got "<")
Where ...
line 338: double has_punctuation_digraph <::> = <% 0 %>;

c:\tccnew\win32\tcc.exe -Wall -c -DSKIP_VLA -DSKIP_TOKEN_CONCAT_HASH_HASH -DSKIP_STATIC_PARAMETER -DSKIP_CONST_PARAMETER -DSKIP_VOLATILE_PARAMETER -DSKIP_PRAGMA  -DSKIP_PREPRO_ARITH -DSKIP_UNIVERSAL -DSKIP_DIGRAPH test-p99-conformance.c
test-p99-conformance.c:366: error: ';' expected (got "?")
Where ...
line 366: int has_punctuation_trigraph ??(??) = ??< (0 ??' 1), (0 ??! 1), ??-0,  '??/0' ??>;
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]