From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p1OB73kM009902 for ; Thu, 24 Feb 2011 06:07:04 -0500 (EST) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 9D5EA156426; Thu, 24 Feb 2011 12:06:57 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-1.sys.kth.se ([130.237.32.175]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id jBDJAmoGhBnj; Thu, 24 Feb 2011 12:06:54 +0100 (CET) X-KTH-Auth: kristaps [193.10.49.5] X-KTH-mail-from: kristaps@bsd.lv Received: from [172.16.18.84] (unknown [193.10.49.5]) by smtp-1.sys.kth.se (Postfix) with ESMTP id A3381156FA6; Thu, 24 Feb 2011 12:06:53 +0100 (CET) Message-ID: <4D663BCD.1000804@bsd.lv> Date: Thu, 24 Feb 2011 12:06:53 +0100 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 To: tech@mdocml.bsd.lv, joerg@britannica.bec.de Subject: [PATCH] mandoc & pcc Content-Type: multipart/mixed; boundary="------------090807040301060608090208" This is a multi-part message in MIME format. --------------090807040301060608090208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The following allows mandoc to be compiled with pcc, which didn't work before because the strlcat/strlcpy test returned bogus results (the -W flag for flagging missing function prototypes didn't work). Joerg, can you verify that this works ok with your zany architectures out there? Thanks, Kristaps --------------090807040301060608090208 Content-Type: text/plain; name="patch.pcc.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch.pcc.txt" ? config.h ? config.log ? foo.1 ? mandoc ? patch.eqn.txt ? patch.eqn2.txt ? patch.foo1.txt ? patch.foo2.txt ? patch.ns.txt ? patch.pcc.txt ? patch.txt ? test-foo.c ? regress/output Index: Makefile =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v retrieving revision 1.311 diff -u -r1.311 Makefile --- Makefile 9 Feb 2011 10:03:02 -0000 1.311 +++ Makefile 24 Feb 2011 11:04:43 -0000 @@ -333,13 +333,13 @@ rm -f config.log ( cat config.h.pre; \ echo; \ - if $(CC) $(CFLAGS) -Werror -c test-strlcat.c >> config.log 2>&1; then \ + if $(CC) $(CFLAGS) -Werror -o test-strlcat test-strlcat.c >> config.log 2>&1; then \ echo '#define HAVE_STRLCAT'; \ - rm test-strlcat.o; \ + rm test-strlcat; \ fi; \ - if $(CC) $(CFLAGS) -Werror -c test-strlcpy.c >> config.log 2>&1; then \ + if $(CC) $(CFLAGS) -Werror -o test-strlcpy test-strlcpy.c >> config.log 2>&1; then \ echo '#define HAVE_STRLCPY'; \ - rm test-strlcpy.o; \ + rm test-strlcpy; \ fi; \ echo; \ cat config.h.post \ --------------090807040301060608090208-- -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv