From: Daniel Iliev <danny@ilievnet.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] mplayer compilation
Date: Mon, 20 Nov 2006 23:13:24 +0200 [thread overview]
Message-ID: <45621A74.2080107@ilievnet.com> (raw)
In-Reply-To: <20061120171801.ba55efae.hilse@web.de>
Hans-Werner Hilse wrote:
> Hi,
>
> On Mon, 20 Nov 2006 15:52:13 +0100
> Bo Ørsted Andresen <bo.andresen@zlin.dk> wrote:
>
>
>> Well, actually the mplayer ebuild don't care about your CFLAGS unless you
>> enable the custom-cflags USE flag. Otherwise march is entirely unset.
>>
>
> No, the mplayer configure script would autodetect optimization and set
> the result as -march and -mcpu (and will also enable -O4).
>
> All such checking would of course be runtime only and your statement
> about march would be true if the cpudetection USE flag is set.
>
> Don't ask me about what happens when both custom-cflags and
> cpudetection are enabled... :-)
>
> -hwh
>
>
I don't think there is such an option for gcc "-O4". AFAIK the shorthand
optimization options are -O, -O0, -O1, -O2, -O3 and -Os" At least the
man page reads:
Optimization Options
-falign-functions=n -falign-jumps=n -falign-labels=n -falign-loops=n
-fbounds-check -fmudflap -fmudflapth -fmudflapir
-fbranch-probabilities -fprofile-values -fvpt
-fbranch-target-load-optimize -fbranch-target-load-optimize2
-fbtr-bb-exclusive -fcaller-saves -fcprop-registers
-fcse-follow-jumps -fcse-skip-blocks -fcx-limited-range
-fdata-sections -fdelayed-branch -fdelete-null-pointer-checks
-fearly-inlining -fexpensive-optimizations -ffast-math -ffloat-store
-fforce-addr -ffunction-sections -fgcse -fgcse-lm -fgcse-sm
-fgcse-las -fgcse-after-reload -floop-optimize -fcrossjumping
-fif-conversion -fif-conversion2 -finline-functions
-finline-functions-called-once -finline-limit=n
-fkeep-inline-functions -fkeep-static-consts -fmerge-constants
-fmerge-all-constants -fmodulo-sched -fno-branch-count-reg
-fno-default-inline -fno-defer-pop -floop-optimize2
-fmove-loop-invariants -fno-function-cse
-fno-guess-branch-probability -fno-inline -fno-math-errno
-fno-peephole -fno-peephole2 -funsafe-math-optimizations
-funsafe-loop-optimizations -ffinite-math-only -fno-trapping-math
-fno-zero-initialized-in-bss -fomit-frame-pointer
-foptimize-register-move -foptimize-sibling-calls
-fprefetch-loop-arrays -fprofile-generate -fprofile-use -fregmove
-frename-registers -freorder-blocks -freorder-blocks-and-partition
-freorder-functions -frerun-cse-after-loop -frerun-loop-opt
-frounding-math -fschedule-insns -fschedule-insns2
-fno-sched-interblock -fno-sched-spec -fsched-spec-load
-fsched-spec-load-dangerous -fsched-stalled-insns=n
-fsched-stalled-insns-dep=n -fsched2-use-superblocks
-fsched2-use-traces -freschedule-modulo-scheduled-loops
-fsignaling-nans -fsingle-precision-constant -fstack-protector
-fstack-protector-all -fstrength-reduce -fstrict-aliasing -ftracer
-fthread-jumps -funroll-all-loops -funroll-loops -fpeel-loops
-fsplit-ivs-in-unroller -funswitch-loops
-fvariable-expansion-in-unroller -ftree-pre -ftree-ccp -ftree-dce
-ftree-loop-optimize -ftree-loop-linear -ftree-loop-im
-ftree-loop-ivcanon -fivopts -ftree-dominator-opts -ftree-dse
-ftree-copyrename -ftree-sink -ftree-ch -ftree-sra -ftree-ter
-ftree-lrs -ftree-fre -ftree-vectorize -ftree-vect-loop-version
-ftree-salias -fweb -ftree-copy-prop -ftree-store-ccp
-ftree-store-copy-prop -fwhole-program --param name=value -O -O0 -O1
-O2 -O3 -Os
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-11-20 21:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-20 14:22 [gentoo-user] mplayer compilation Pawel K
2006-11-20 14:52 ` Bo Ørsted Andresen
2006-11-20 16:18 ` Hans-Werner Hilse
2006-11-20 18:21 ` Uwe Thiem
2006-11-20 21:13 ` Daniel Iliev [this message]
2006-11-21 5:42 ` gcc optimization levels (was: Re: [gentoo-user] mplayer compilation) Boyd Stephen Smith Jr.
2006-11-21 9:54 ` Hans-Werner Hilse
2006-11-20 15:38 ` [gentoo-user] mplayer compilation Alan McKinnon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45621A74.2080107@ilievnet.com \
--to=danny@ilievnet.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox