kern/118121: RELENG_7 kernel compile fails with -Os

Bruce Evans brde at optusnet.com.au
Tue Nov 20 02:10:03 PST 2007


The following reply was made to PR kern/118121; it has been noted by GNATS.

From: Bruce Evans <brde at optusnet.com.au>
To: Heikki Suonsivu <hsu at bbnetworks.net>
Cc: FreeBSD-gnats-submit at freebsd.org, freebsd-bugs at freebsd.org
Subject: Re: kern/118121: RELENG_7 kernel compile fails with -Os
Date: Tue, 20 Nov 2007 17:14:49 +1100 (EST)

 On Mon, 19 Nov 2007, Heikki Suonsivu wrote:
 
 >> Description:
 >
 > 	When compiling kernel with -Os, gcc apparently finds some new
 > 	possible warnings (possible uninitialized variables, etc).  This exits
 > 	kernel compile.  -O2 does not trigger these.
 >
 > 	scsi_sa and scsi_ses were among the offending files, but there
 > 	may be more.
 
 -Os is also a large negative optimization (it increases size by about 50%)
 in RELENG_7 (or probably just with gcc-4), due to bogus inlining flags.
 
 Bruce
 


More information about the freebsd-bugs mailing list