From owner-svn-ports-head@freebsd.org Thu Dec 6 23:56:00 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E053F131B711; Thu, 6 Dec 2018 23:56:00 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 88E906C43E; Thu, 6 Dec 2018 23:56:00 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 694FA2FF0; Thu, 6 Dec 2018 23:56:00 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wB6Nu053057554; Thu, 6 Dec 2018 23:56:00 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wB6Nu014057553; Thu, 6 Dec 2018 23:56:00 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201812062356.wB6Nu014057553@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Thu, 6 Dec 2018 23:56:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r486810 - head/devel/tigcc X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: head/devel/tigcc X-SVN-Commit-Revision: 486810 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 88E906C43E X-Spamd-Result: default: False [-1.89 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.86)[-0.863,0]; NEURAL_HAM_SHORT(-0.95)[-0.948,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-0.08)[-0.083,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 23:56:01 -0000 Author: linimon Date: Thu Dec 6 23:55:59 2018 New Revision: 486810 URL: https://svnweb.freebsd.org/changeset/ports/486810 Log: -fnested-functions is necessary to support nested functions with base GCC. While here, pet portlint. PR: 232520 Submitted by: Piotr Kubaj Approved by: maintainer (earlier version of patch) Modified: head/devel/tigcc/Makefile Modified: head/devel/tigcc/Makefile ============================================================================== --- head/devel/tigcc/Makefile Thu Dec 6 23:40:15 2018 (r486809) +++ head/devel/tigcc/Makefile Thu Dec 6 23:55:59 2018 (r486810) @@ -15,13 +15,8 @@ DISTFILES= gcc-core-4.1-20060728.tar.bz2:gcc \ MAINTAINER= cyberbotx@cyberbotx.com COMMENT= C compiler for the TI89, 92, and 92+ calculators -BROKEN_mips= fails to compile: main_opt.inc: nested functions are disabled, use -fnested-functions to re-enable -BROKEN_mips64= fails to compile: main_opt.inc: nested functions are disabled, use -fnested-functions to re-enable -BROKEN_powerpc64= fails to compile: main_opt.inc: nested functions are disabled, use -fnested-functions to re-enable -BROKEN_sparc64= fails to compile: main_opt.inc: nested functions are disabled, use -fnested-functions to re-enable - -USE_CSTD= gnu89 USES= bison compiler:nestedfct gmake tar:bzip2 +USE_CSTD= gnu89 NO_WRKSUBDIR= yes SUB_FILES= pkg-message @@ -143,4 +138,10 @@ do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${CP} ${WRKSRC}/tigcc/tigcclib/examples/* ${STAGEDIR}${EXAMPLESDIR}/ -.include +.include + +.if ${CHOSEN_COMPILER_TYPE} == gcc +CFLAGS+= -fnested-functions +.endif + +.include