Re: gcc m68k default optimization flag

Izumi Tsutsui <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain,gmane.os.netbsd.ports.m68k
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.