Port-sh3 archive

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

Re: Can't compile with netbsd-7 or -current



Hi,

Sun, 7 Dec 2014 20:09:06 +0000 (UTC)
John Klos <john%ziaspace.com@localhost> wrote:

> However, with either a netbsd-7 userland or a -current userland, both
> compiled from yesterday's sources, I get the same error:

Same in my netbsd-7/-current.

I think this problem is gcc48's optimization bug, and tried to debug.

Now, I found a strange code by gcc48 optimization, it created by 
-fdelayed-branch flag. This flag is included in -O1 or -Os or  higher
optimization level.

( I post this bug report to BZ of gcc:
   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64479 )

I built all userland with -fno-delayed-branch, then building of some
pkgsrc is successful (*1).

However, some atf-tests in /usr/tests still fails, for example
lib/libc/sys/t_swapcontext, fs/psshfs/t_psshfs, these tests passed
when using userland binary which building with gcc45.
So, I think another problem still exists in gcc48.


*1:
This pkg-binary will be wrong because it is compiled by default
compile option: -Os -freorder-blocks on NetBSD/sh3,
It will require -fno-delayed-branch to DBG variable in /etc/mk.conf.

Thanks.


Home | Main Index | Thread Index | Old Index