tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc m68k default optimization flag



mrg@ wrote:

> > I'd like to change the default optimization flag ("DBG" in sys.mk)
> > from "-Os" to "-O2 -fno-reorder-blocks" to generate more efficient code.
> 
> this seems fine to me.  should we consider it for netbsd-6, too?

On NetBSD/m68k -current, libgcc_s fails with -O2 and needs tweaks:
https://gist.github.com/tsutsui/25b602300b96e3881980

On NetBSD/m68k 6.1.4, libgcc_s doesn't fail but sqlite3 needs workaround:
https://gist.github.com/tsutsui/70b93c666adc20b83de9

I wonder if we should also specify "-fno-tree-vrp -fno-tree-pre"
because I've seen many similar "Warning: .word .Lxxxx-.Lxxxx+0 didn't fit"
warnings during pkgsrc builds (perl etc.) on NetBSD/m68k 6.1.4...

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index