O HAI THIS BLOG PURPZIEZ 2 B UZED AZ MAH PLESIOUS MEM. :)

2006/06/05

strict aliasing traps, mercurial++

make.conf.exampleが付けておけと言うので気になったから,
#gentoo-ppcで-fno-strict-aliasingを使っているかと訊いてみた.
-O2, -O3だと自動的に効いて仕舞うので,
今までは-fno-strict-aliasingを後方に付けていたのだが,
無くても殆ど問題無いと言う情報を入手.
さっそく,Rice開始! :9
[make.conf.example saz to use -fno-strict-aliasing
if you wanto to use -O2 or -O3.
So, I've asked why that flags are recommended.
Peaple answered to me that has no/little problem.
Gotcha, it's the time to Rice! :9]

...で,ちょっと壊れたみたい. :P
特にC++なアプリやmedia-*以下のマルチメディアなライブラリで
激しくcastをしているブツは要注意.
[...Well, some packages seems have a bit of breakages. :P
Especially, several fscking C++ apps or multimedia oriented libs under meda-*
categories which uses ton of incredible cast.]

教訓その一:Gentoo is Rice.
教訓その二:-O3 -Werrorでコンパイル,patchで対処.
教訓その四:それでもダメなら,inherit flag-o-maticで*-flagsを使う.
[L1: Gentoo is Rice.
L2: Try to compile with -O3 -Werror, then do patch.
L3: If it has no clue, try to *-flags by inherit flag-o-matic.]

で,mercurialが便利過ぎて,
或るVHDLマクロの為にでっちあげた
ローカルなレポジトリに土日なのに20回以上commitしてた.
我ながら,ちょっと馬鹿じゃね? :P
[BTW, mercurial is so cool.
That make me cann't stop to commit to local VHDL macro repos over 20 times.
It was weekend even though.
It amazed even me. :P]

0 件のコメント: