Re: [Tinycc-devel] spurious warning from tcc

2016-01-08 Thread Aharon Robbins
Hi. This patch fixes the warning when compiling gawk. Thanks, Arnold > Date: Tue, 5 Jan 2016 21:04:52 + > From: Edmund Grimley Evans > To: tinycc-devel@nongnu.org > Subject: Re: [Tinycc-devel] spurious warning from tcc > > Updated patch

Re: [Tinycc-devel] spurious warning from tcc

2016-01-05 Thread Edmund Grimley Evans
Updated patch attached. Comments? diff --git a/tccgen.c b/tccgen.c index 0866281..aa32622 100644 --- a/tccgen.c +++ b/tccgen.c @@ -3134,6 +3134,17 @@ ST_FUNC int is_btype_size(int bt) return bt == VT_SHORT || bt == VT_LONG || bt == VT_LLONG; } +/* Add type qualifiers to a type. If the type is

Re: [Tinycc-devel] spurious warning from tcc

2016-01-04 Thread Edmund Grimley Evans
Me: > On 2015-11-19 I committed a patch to handle some cases of this. Here's > a patch that might finish the job. Any comments, before I commit it? An obvious omission: that patch doesn't handle arrays of arrays. I'll do a new version... ___ Tinycc-dev

Re: [Tinycc-devel] spurious warning from tcc

2016-01-03 Thread Edmund Grimley Evans
Aharon Robbins : > TCC doesn't quite understand where const should and should not go. I'm > getting this warning: > > dfa.c:1795: warning: assignment discards qualifiers from pointer target type Yes, there is a failure to follow this part of the C standard: "If the specification of an array typ

[Tinycc-devel] spurious warning from tcc

2016-01-02 Thread Aharon Robbins
Hi. TCC doesn't quite understand where const should and should not go. I'm getting this warning: dfa.c:1795: warning: assignment discards qualifiers from pointer target type This is best seen in the distributed gawk tarball: wget http://ftp.gnu.org/gnu/gawk/gawk-4.1.3.tar.gz tar