X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com RazorGate-KAS: Status: not_detected RazorGate-KAS: Rate: 0 RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 80 2014-11-10_18-01-23 260f8afb9361da3c7edfd3a8e3a4ca908191ad29 RazorGate-KAS: Lua profiles 69136 [Nov 12 2014] RazorGate-KAS: Method: none Subject: Re: Test build of gcc-6.0.1-20160415 To: djgpp-workers AT delorie DOT com References: <5713789D DOT 8070708 AT iki DOT fi> <57152494 DOT 6040808 AT gmx DOT de> <57154DC1 DOT 2080907 AT iki DOT fi> <5717FF70 DOT 3020801 AT gmx DOT de> From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp-workers AT delorie DOT com]" Message-ID: <57184BDE.5050901@iki.fi> Date: Thu, 21 Apr 2016 06:41:18 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <5717FF70.3020801@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 04/21/2016 01:15 AM, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp-workers AT delorie DOT com] wrote: > Am 18.04.2016 23:12, schrieb Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp-workers AT delorie DOT com]: >> On > > The patch below is a proposition how the -Werror=nonnull-compare issue could be > handled. The patch has intentionaly not been committed because there may be > multiple ways to fix this issue. I have intentionaly prefered the way using > all the different -fno-builtin-* flags. This way we see about what we are > warned and what we are intentionaly ignoring. I have no preferences and if > someone else disigns a smarter or different fix, feel free to discard this > approach. > > > Regards, > Juan M. Guerrero > > > > 2016-04-20 Juan Manuel Guerrero > > * djgpp/src/makefile.cfg: Fixing -Werror=nonnull-compare for gcc 6.0.1. > > > - I guess it would be better to avoid using -fno-builtin-* globally, but only where required - there seems to be no need to protect for old GCC versions as documented behavior of gcc is to ignore -fno-builtin-foobar when it does not have __builtin_foobar. Tried under Linux (both gcc-5.3 and 3.4.6 provided with Fedora 23 behave this way). - one could use simple -fno-builtin for small source files like strlen.c where there is actually one built involved (easier to maintain in future) - DJGPP NULL dereferencing pointer do not cause crash in all environments. Workaround could be to manually crash program if such operation is tried like 'if (ptr==NULL) { abort(); }' (or raise(SIGSEGV);) This is however perhaps not time to change this behavior. Andris