tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] c89


From: Larry Doolittle
Subject: Re: [Tinycc-devel] c89
Date: Wed, 27 Sep 2017 00:10:08 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

Edmund -

On Wed, Sep 27, 2017 at 06:42:45AM +0100, Edmund Grimley Evans wrote:
> > I went through the tcc compile with --std=c89 -pedantic and
> > --std=c99 -pedantic options.  That flagged the "long long" feature
> > mentioned already, plus a bunch more potential barriers to strict
> > c89 or even c99 compilers.
> I'd be interested to see a list.

Results of building tinycc (commit 8deb05c3e) with gcc-4.9.2 for x86_64
and adding --std=c89 -pedantic to CFLAGS.

Short form:
Output of $ grep warning makelog3.txt | sed -e 's/.*warning://' | sort -u
 invoking macro DEF_ASMTEST argument 2: empty macro arguments are undefined in 
ISO C90 and ISO C++98
 ISO C90 does not support ‘long long’ [-Wlong-long]
 ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]
 ISO C90 doesn’t support unnamed structs/unions [-Wpedantic]
 ISO C90 forbids variable length array ‘_onstack’ [-Wvla]
 ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
 string length ‘1846’ is greater than the length ‘509’ ISO C90 compilers are 
required to support [-Woverlength-strings]
 string length ‘2492’ is greater than the length ‘509’ ISO C90 compilers are 
required to support [-Woverlength-strings]
 string length ‘6259’ is greater than the length ‘509’ ISO C90 compilers are 
required to support [-Woverlength-strings]
 type of bit-field ‘aligned’ is a GCC extension [-Wpedantic]
 type of bit-field ‘dllexport’ is a GCC extension [-Wpedantic]
 type of bit-field ‘dllimport’ is a GCC extension [-Wpedantic]
 type of bit-field ‘packed’ is a GCC extension [-Wpedantic]
 type of bit-field ‘unused’ is a GCC extension [-Wpedantic]
 type of bit-field ‘visibility’ is a GCC extension [-Wpedantic]
 type of bit-field ‘weak’ is a GCC extension [-Wpedantic]
 use of C99 long long integer constant [-Wlong-long]

Long form, 1584 lines:
download from http://recycle.lbl.gov/~ldoolitt/makelog3.txt
d5c6874de25ee3c3db8b383c98374b18afa1d30529f9bcce163f26221a547477  makelog3.txt

  - Larry



reply via email to

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