From owner-svn-ports-head@freebsd.org Mon Aug 12 07:30:35 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 93EE0CFFEA; Mon, 12 Aug 2019 07:30:35 +0000 (UTC) (envelope-from gerald@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 466SDq3BMHz3RDL; Mon, 12 Aug 2019 07:30:35 +0000 (UTC) (envelope-from gerald@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 364D723127; Mon, 12 Aug 2019 07:30:35 +0000 (UTC) (envelope-from gerald@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x7C7UYcC046603; Mon, 12 Aug 2019 07:30:34 GMT (envelope-from gerald@FreeBSD.org) Received: (from gerald@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x7C7UYDI046602; Mon, 12 Aug 2019 07:30:34 GMT (envelope-from gerald@FreeBSD.org) Message-Id: <201908120730.x7C7UYDI046602@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gerald set sender to gerald@FreeBSD.org using -f From: Gerald Pfeifer Date: Mon, 12 Aug 2019 07:30:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r508710 - in head/lang/gcc9: . files X-SVN-Group: ports-head X-SVN-Commit-Author: gerald X-SVN-Commit-Paths: in head/lang/gcc9: . files X-SVN-Commit-Revision: 508710 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Mon, 12 Aug 2019 07:30:35 -0000 Author: gerald Date: Mon Aug 12 07:30:34 2019 New Revision: 508710 URL: https://svnweb.freebsd.org/changeset/ports/508710 Log: Ensure _GNU_SOURCE is now longer defined on powerpc64 (which was a regression from the GCC 8 series). The technical background is that a consolidation in upstream GCC made non-GNU platforms include gnu-user.h and then undefined some macros in rs6000/freebsd.h, but missed doing the same in rs6000/freebsd64.h. The has now been included upstream and the current snapshot that the lang/gcc9-devel port tracks; carrying files/patch-powerpc64-no-_GNU_SOURCE in this port should become obsolete with the GCC 9.2 release. (As this should be a very short-lived measure, bump PORTREVISION only for powerpc64 to avoid all other users having to rebuild, too.) PR: 239648 Added: head/lang/gcc9/files/patch-powerpc64-no-_GNU_SOURCE (contents, props changed) Modified: head/lang/gcc9/Makefile Modified: head/lang/gcc9/Makefile ============================================================================== --- head/lang/gcc9/Makefile Mon Aug 12 07:17:09 2019 (r508709) +++ head/lang/gcc9/Makefile Mon Aug 12 07:30:34 2019 (r508710) @@ -61,6 +61,7 @@ CONFIGURE_ARGS+= --disable-multilib CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL} .elif ${ARCH} == powerpc64 +PORTREVISION= 2 CONFIGURE_ENV+= UNAME_m="powerpc64" USE_GCC= 8 .endif Added: head/lang/gcc9/files/patch-powerpc64-no-_GNU_SOURCE ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/gcc9/files/patch-powerpc64-no-_GNU_SOURCE Mon Aug 12 07:30:34 2019 (r508710) @@ -0,0 +1,27 @@ +r274105 | amodra | 2019-08-05 01:52:33 +0000 + +PR91349, powerpc64*-*-freebsd* defines _GNU_SOURCE + +rev 266496 (git ab6b1bb456) undefined some macros in rs6000/freebsd.h +but missed doing the same in rs6000/freebsd64.h. + + PR target/91349 + * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC), + (LINK_GCC_C_SEQUENCE_SPEC): Undef. + +--- UTC +Index: gcc/config/rs6000/freebsd64.h +=================================================================== +--- gcc/config/rs6000/freebsd64.h (revision 274104) ++++ gcc/config/rs6000/freebsd64.h (revision 274105) +@@ -17,6 +17,10 @@ + along with GCC; see the file COPYING3. If not see + . */ + ++/* Undef gnu-user.h macros we don't want. */ ++#undef CPLUSPLUS_CPP_SPEC ++#undef LINK_GCC_C_SEQUENCE_SPEC ++ + /* Override the defaults, which exist to force the proper definition. */ + + #ifdef IN_LIBGCC2