Bug 73797

Summary: Be causious compiling with -O2 (use -fno-strict-aliasing)
Product: Ports & Packages Reporter: David E. O'Brien <obrien>
Component: Individual Port(s)Assignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description David E. O'Brien freebsd_committer freebsd_triage 2004-11-11 01:30:25 UTC
	Compiling with 'strict-aliasing' optimization breaks some [notable]
	ports.  GCC turns on 'strict-aliasing' optimization at all levels
	above -O[1], so explicitly turn it off when using compiling with
	"high" optimization levels.

How-To-Repeat: 	Build Firefox and other ports with -O2 (or -Os or -O3).
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2004-11-11 01:34:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Over to portmgr for approval.
Comment 2 David O'Brien 2004-11-11 16:44:24 UTC
Note that when testing this PR, one should use src/share/mk/sys.mk rev 1.81.
Comment 3 Clement Laforet freebsd_committer freebsd_triage 2005-10-19 20:21:57 UTC
State Changed
From-To: open->closed

This patch has been rejected since it breaks ports if users doesn't use  
gcc, or any gcc-compatible compilers. 
BTW, thanks for your patch.