Re: Properly controlling CFLAGS/CXXFLAGS

2006-12-23 Thread Erik Trulsson
On Sat, Dec 23, 2006 at 02:38:15AM -0500, Joseph J. Damato wrote: > > Garrett Cooper wrote: > > > > With '-O2' and better, '-fstrict-aliasing' is the default in newer > > versions of GCC, AFAIK, but people tend to switch it off because it > > apparently breaks too many software packages. Or at

Re: Properly controlling CFLAGS/CXXFLAGS

2006-12-23 Thread Joseph J. Damato
> Garrett Cooper wrote: > > With '-O2' and better, '-fstrict-aliasing' is the default in newer > versions of GCC, AFAIK, but people tend to switch it off because it > apparently breaks too many software packages. Or at least those whose > code base dates back to times where '-fno-strict-aliasi

Re: Properly controlling CFLAGS/CXXFLAGS

2006-12-22 Thread Uwe Doering
Garrett Cooper wrote: [...] Interesting. No wonder I didn't have it in my Gentoo /etc/make.conf. It appears (from what I see) that maybe -fno-strict-aliasing has been enabled by default (at least it doesn't show up in the GCC 4.1.1 manpage on FC5). It's documented in GCC's info page. There,

Re: Properly controlling CFLAGS/CXXFLAGS

2006-12-22 Thread Garrett Cooper
Oliver Fromme wrote: Garrett Cooper wrote: > I was wondering (looking at the make.conf manpage), what's the > best way to control one's CFLAGS/CXXFLAGS. I'd prefer if only a few > ports would have optimized compiler flags, while the rest of the system > used a safe set of compiler fla

Re: Properly controlling CFLAGS/CXXFLAGS

2006-12-22 Thread Oliver Fromme
Garrett Cooper wrote: > I was wondering (looking at the make.conf manpage), what's the > best way to control one's CFLAGS/CXXFLAGS. I'd prefer if only a few > ports would have optimized compiler flags, while the rest of the system > used a safe set of compiler flags. The simplest way i

Re: Properly controlling CFLAGS/CXXFLAGS

2006-12-21 Thread Garrett Cooper
Freddie Cash wrote: On Wednesday 20 December 2006 07:57 pm, Garrett Cooper wrote: Hello, Coming from Gentoo we were taught how to 'rice' our machines. Based on my experience though with FreeBSD, this is an improper methodology for one to use. I was wondering (looking at the ma

Re: Properly controlling CFLAGS/CXXFLAGS

2006-12-21 Thread Micah
Garrett Cooper wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Coming from Gentoo we were taught how to 'rice' our machines. Based on my experience though with FreeBSD, this is an improper methodology for one to use. I was wondering (looking at the make.conf manpage),

Re: Properly controlling CFLAGS/CXXFLAGS

2006-12-21 Thread Freddie Cash
On Wednesday 20 December 2006 07:57 pm, Garrett Cooper wrote: > Hello, > Coming from Gentoo we were taught how to 'rice' our machines. > Based on my experience though with FreeBSD, this is an improper > methodology for one to use. > I was wondering (looking at the make.conf manpage), wh

Properly controlling CFLAGS/CXXFLAGS

2006-12-21 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Coming from Gentoo we were taught how to 'rice' our machines. Based on my experience though with FreeBSD, this is an improper methodology for one to use. I was wondering (looking at the make.conf manpage), what's the best way to