Subject: gcc optimisations
To: None <port-sparc64@NetBSD.org>
From: segv <segv@netctl.net>
List: port-sparc64
Date: 08/20/2005 15:24:59
Greetings, are there any optimisation flags that are known to be problematic on
sparc64, i.e. generating bad code? This is in regard to gcc in the base system
(gcc 3.3.3)

I build all my packages from pkgsrc with:

-O2 -mcpu=ultrasparc -mvis

I remember reading somewhere that sometimes -O2 would generate bad code, and
replacing it with -Os fixed the issue. I don't remember if this was for sparc64
or some other architecture.