tech-toolchain archive

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

Re: changing optimization for crunchgen components



> i'd guess this is what is tripping you up:
> 
>       src/rescue/Makefile:DBG=            -Os

And it's passed to crunchgen via -d flag.
There is no way to specify -O1 per source
unless you edit a generated makefile, I guess.

See also src/doc/HACKS for the gcc bug:
---
        hack    gcc4-m68000
        cdate   Fri Feb  8 10:29:37 PST 2008
        mdate   Sun May  4 15:37:19 UTC 2008
        who     mrg, tsutsui
        file    rescue/Makefile : 1.21
        file    sbin/dump_lfs/Makefile  : 1.9
        file    sbin/fsck_ffs/Makefile  : 1.35
        file    sbin/fsdb/Makefile      : 1.22
        file    share/mk/sys.mk : 1.96
        file    usr.sbin/ndbootd/Makefile       : 1.5
        descr
                Several internal compiler errors with gcc -O1
                around 64bit integer arithmetic.
                This hack uses -O1 and adds some -fno-tree-foo options
                to avoid the problem.
                This might be related with GCC Bugzilla Bug 32424.
        kcah
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index