From owner-svn-ports-head@freebsd.org Sun Sep 22 02:48:28 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 D2E7DF105B; Sun, 22 Sep 2019 02:48:28 +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 46bX2N4qc4z4FT1; Sun, 22 Sep 2019 02:48:28 +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 884C11FE29; Sun, 22 Sep 2019 02:48:28 +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 x8M2mSpS056745; Sun, 22 Sep 2019 02:48:28 GMT (envelope-from gerald@FreeBSD.org) Received: (from gerald@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8M2mSuE056744; Sun, 22 Sep 2019 02:48:28 GMT (envelope-from gerald@FreeBSD.org) Message-Id: <201909220248.x8M2mSuE056744@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gerald set sender to gerald@FreeBSD.org using -f From: Gerald Pfeifer Date: Sun, 22 Sep 2019 02:48:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512547 - head/lang/gcc10-devel/files X-SVN-Group: ports-head X-SVN-Commit-Author: gerald X-SVN-Commit-Paths: head/lang/gcc10-devel/files X-SVN-Commit-Revision: 512547 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: Sun, 22 Sep 2019 02:48:28 -0000 Author: gerald Date: Sun Sep 22 02:48:28 2019 New Revision: 512547 URL: https://svnweb.freebsd.org/changeset/ports/512547 Log: Fix a miscompilation of GCC due to undefined behavior. This originally triggered when building with clang on amd64 (under some circumstances), but is a general issue. PR: 240387 Kudos to: dim (for first class detective work) Added: head/lang/gcc10-devel/files/patch-pr240387 (contents, props changed) Added: head/lang/gcc10-devel/files/patch-pr240387 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/gcc10-devel/files/patch-pr240387 Sun Sep 22 02:48:28 2019 (r512547) @@ -0,0 +1,26 @@ +This fixes FreeBSD PR240387, a bootstrap failure with clang. + +2019-09-20 Richard Biener + + PR target/91767 + * config/i386/i386-features.c (general_scalar_chain::convert_registers): + Ensure there's a sequence point between allocating the new register + and passing a reference to a reg via regno_reg_rtx. + +--- UTC +Index: gcc/config/i386/i386-features.c +=================================================================== +--- gcc/config/i386/i386-features.c (revision 275988) ++++ gcc/config/i386/i386-features.c (revision 275989) +@@ -1210,7 +1210,10 @@ + bitmap_iterator bi; + unsigned id; + EXECUTE_IF_SET_IN_BITMAP (defs_conv, 0, id, bi) +- defs_map.put (regno_reg_rtx[id], gen_reg_rtx (smode)); ++ { ++ rtx chain_reg = gen_reg_rtx (smode); ++ defs_map.put (regno_reg_rtx[id], chain_reg); ++ } + EXECUTE_IF_SET_IN_BITMAP (insns_conv, 0, id, bi) + for (df_ref ref = DF_INSN_UID_DEFS (id); ref; ref = DF_REF_NEXT_LOC (ref)) + if (bitmap_bit_p (defs_conv, DF_REF_REGNO (ref)))