From nobody Wed Apr 20 06:12:46 2022 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3440811DDEE5 for ; Wed, 20 Apr 2022 06:12:47 +0000 (UTC) (envelope-from bugzilla-noreply@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kjr1p5dZKz53R8 for ; Wed, 20 Apr 2022 06:12:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9C5156993 for ; Wed, 20 Apr 2022 06:12:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23K6Cke0005711 for ; Wed, 20 Apr 2022 06:12:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23K6Ckpq005710 for toolchain@FreeBSD.org; Wed, 20 Apr 2022 06:12:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 261977] lang/gcc12-devel: enable LTO Date: Wed, 20 Apr 2022 06:12:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkubaj@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650435166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KG1bM5SRAWMiIZpbq114Uwhvg3Q1F0F2smmXkZEK5s0=; b=Um242A5kxifZTvoOEgtrtPWLgmEMMhJMbXTW26ypXUMumtEmd0jkTCUGV9CDK291P7guWo JjpOjlY56Xa66w8+JIHK0F7PY96rTg7HkU8JmoTW7Vqb9WEDhb8s3ZGF4EhIXl1u5N49KR wRkZ6tuZ0fZOfWZcScOkm9M4UmCcnBiFmUsHMTrG75U7PuOZ71g6nL3FsgQJnbjpCk5gtN qvFKl+/dyf3RG1MenEnQsjV3LbOaOadN7mpKy4VClqeW2yesoOnxxKHxUkiGyiLs5updEw pQHeMmIhLCxMCnDaGkAfASc67AsHhOu09hjeD81zNkSHc+f8Q11cP3r9BHUrLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650435166; a=rsa-sha256; cv=none; b=VUlLvNxvARHBRzeLmd0QL/RhQZDllZhDqLKYRmJtb8h3UgJ1yIxyeQhoXHTxhflaKjatDW +r9YlvlX24icfFGrDpXRJfdF2k3df2VBq6VMp9Ck9+wClqCiH5/Jpb0JMD5TtPRtjS1Eu2 O+WSbVuMW/NTM7u6W1r9SqzBYS5SySG3PXn4bIaXTzqn/McfABv8QLm67jyc9M8xW7jFpA +DjRuhYUkAgRyYgDZ7eIzBt8owRNm1oqcMAMiuTDnyLM64PF1Mn6gKEz1mMW3QDeDLlExh FlaU7Q2gQcZbujQpL98kK2DGnynz0/uqc/X7k7PVVpq3/mJl2ZHAevaFK+T0BQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261977 --- Comment #42 from Piotr Kubaj --- Would that be good for you? --- lang/gcc12-devel/Makefile +++ lang/gcc12-devel/Makefile @@ -42,9 +42,16 @@ SUFFIX=3D ${PORTVERSION:C/([0-9]+).*/\1/} CFLAGS:=3D ${CFLAGS:N-mretpoline} CXXFLAGS:=3D ${CXXFLAGS:N-mretpoline} -OPTIONS_DEFINE=3D BOOTSTRAP GRAPHITE -OPTIONS_DEFAULT=3D BOOTSTRAP -BOOTSTRAP_DESC=3D Build using a full bootstrap +OPTIONS_DEFINE=3D GRAPHITE +OPTIONS_DEFAULT=3D LTO_BOOTSTRAP +OPTIONS_EXCLUDE_armv6=3D LTO_BOOTSTRAP +OPTIONS_EXCLUDE_armv7=3D LTO_BOOTSTRAP +OPTIONS_DEFAULT_armv6=3D STANDARD_BOOTSTRAP +OPTIONS_DEFAULT_armv7=3D STANDARD_BOOTSTRAP +OPTIONS_RADIO=3D BOOTSTRAP +OPTIONS_RADIO_BOOTSTRAP=3D LTO_BOOTSTRAP STANDARD_BOOTSTRAP +LTO_BOOTSTRAP_DESC=3D Build using a full LTO bootstrap +STANDARD_BOOTSTRAP_DESC=3D Build using a full bootstrap without LTO GRAPHITE_DESC=3D Support for Graphite loop optimizations .if exists(/usr/lib32/libc.so) @@ -80,11 +87,14 @@ TARGLIB32=3D ${PREFIX}/lib32 # The version information= i LIBEXEC=3D ${PREFIX}/libexec/gcc${SUFFIX} GNU_CONFIGURE=3D yes CONFIGURE_OUTSOURCE=3D yes -.if empty(PORT_OPTIONS:MBOOTSTRAP) +.if empty(PORT_OPTIONS:M*BOOTSTRAP) CONFIGURE_ARGS+=3D--disable-bootstrap -.else +.elif ${PORT_OPTIONS:MLTO_BOOTSTRAP} CONFIGURE_ARGS+=3D--with-build-config=3Dbootstrap-lto-noplugin ALL_TARGET=3D bootstrap-lean +.else +CONFIGURE_ARGS+=3D--with-build-config=3Dbootstrap-debug +ALL_TARGET=3D bootstrap-lean .endif INSTALL_TARGET=3D install-strip .if ${UID} !=3D 0 --=20 You are receiving this mail because: You are on the CC list for the bug.=