I've found at least one port that does not compile correctly with the base system gcc(1) if the code is compiled with optimizations on (at least -O or higher) , the port is sysutils/smartmontools. If compiled with optimizations on, smartctl will segfault as soon as you query a device. Turning off optimizations with -O0 fixes the problem, also compiling the port with newer lang/gcc46 with default optimizations results in working binary.
Anyone else seen anything similar on other ports?
Anyone else seen anything similar on other ports?