From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 20 22:50:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AC4942A6 for ; Thu, 20 Feb 2014 22:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 81EDC19C5 for ; Thu, 20 Feb 2014 22:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1KMo0kE024545 for ; Thu, 20 Feb 2014 22:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1KMo0vZ024544; Thu, 20 Feb 2014 22:50:00 GMT (envelope-from gnats) Resent-Date: Thu, 20 Feb 2014 22:50:00 GMT Resent-Message-Id: <201402202250.s1KMo0vZ024544@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tijl Coosemans Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2657BFB9 for ; Thu, 20 Feb 2014 22:42:59 +0000 (UTC) Received: from mailrelay003.isp.belgacom.be (mailrelay003.isp.belgacom.be [195.238.6.53]) by mx1.freebsd.org (Postfix) with ESMTP id B09D11972 for ; Thu, 20 Feb 2014 22:42:58 +0000 (UTC) Received: from 150.141-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.141.150]) by relay.skynet.be with ESMTP; 20 Feb 2014 23:42:51 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.8/8.14.8) with ESMTP id s1KMgnDY025705 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 20 Feb 2014 23:42:50 +0100 (CET) (envelope-from tijl@kalimero.tijl.coosemans.org) Received: (from tijl@localhost) by kalimero.tijl.coosemans.org (8.14.8/8.14.8/Submit) id s1KMgnth025704; Thu, 20 Feb 2014 23:42:49 +0100 (CET) (envelope-from tijl) Message-Id: <201402202242.s1KMgnth025704@kalimero.tijl.coosemans.org> Date: Thu, 20 Feb 2014 23:42:49 +0100 (CET) From: Tijl Coosemans To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/186929: [patch] Mk/bsd.port.mk: unconditionally add -fno-strict-aliasing X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Tijl Coosemans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2014 22:50:00 -0000 >Number: 186929 >Category: ports >Synopsis: [patch] Mk/bsd.port.mk: unconditionally add -fno-strict-aliasing >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 20 22:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 11.0-CURRENT i386 >Organization: >Environment: >Description: Currently bsd.port.mk adds -fno-strict-aliasing to CFLAGS when it detects -O2, -O3 or -Os, but clang has new optimisation flags such as -O4, -Oz and -Ofast that also need it. The attached patch adds -fno-strict-aliasing unconditionally. There's no harm in adding it to -O0 and -O1. >How-To-Repeat: >Fix: --- bsd.port.mk.nostrictaliasing.patch begins here --- Index: Mk/bsd.port.mk =================================================================== --- Mk/bsd.port.mk (revision 345014) +++ Mk/bsd.port.mk (working copy) @@ -2053,7 +2053,7 @@ MAKE_ENV+= PREFIX=${PREFIX} \ # a lot of ports. .if !defined(WITHOUT_NO_STRICT_ALIASING) .if ${CC} != "icc" -.if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) +.if empty(CFLAGS:M-fno-strict-aliasing) CFLAGS+= -fno-strict-aliasing .endif .endif --- bsd.port.mk.nostrictaliasing.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: