[perl #49970] [BUG] -O1 and -O2 don't turn on -Ot as per docs
Will Coleda via RT
parrotbug-followup at parrotcode.org
Wed Oct 28 01:25:04 UTC 2009
On Fri Jan 18 21:22:55 2008, japhb wrote:
> ---
> osname= linux
> osvers= 2.6.22.10
> arch= i486-linux-gnu-thread-multi
> cc= cc
> ---
> Flags:
> category=core
> severity=low
> ack=no
> ---
> According to docs/running.pod, item -Ox:
Fixed by removing this note from the docs in r42150. Thanks!
> "-Ot select fastest run core (default with -O1 and -O2)"
>
> This flag works, but it isn't getting automatically turned on by
> -O1/-O2:
>
> $ ./parrot examples/benchmarks/fib.pir
> fib(28) = 317811 2.355090s
> $ ./parrot -O1 examples/benchmarks/fib.pir
> fib(28) = 317811 2.356080s
> $ ./parrot -O2 examples/benchmarks/fib.pir
> fib(28) = 317811 2.356503s
> $ ./parrot -O2 -Ot examples/benchmarks/fib.pir
> fib(28) = 317811 0.024707s
> $ ./parrot -Ot examples/benchmarks/fib.pir
> fib(28) = 317811 0.014099s
>
>
> I'm not sure if this means the docs are out of date, this defaulting
> was never implemented, or if it's just a bug.
>
>
> -'f
>
> ---
> Summary of my parrot 0.5.2 (r24923) configuration:
> configdate='Thu Jan 17 00:08:44 2008 GMT'
> Platform:
> osname=linux, archname=i486-linux-gnu-thread-multi
> jitcapable=1, jitarchname=i386-linux,
> jitosname=LINUX, jitcpuarch=i386
> execcapable=1
> perl=/usr/bin/perl
> Compiler:
> cc='cc', ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> -DDEBIAN -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DHASATTRIBUTE_CONST
> -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_FORMAT
> -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL
> -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
> -DHASATTRIBUTE_WARN_UNUSED_RESULT -falign-functions=16
> -mno-accumulate-outgoing-args -W -Wall -Waggregate-return
> -Wbad-function-cast -Wc++-compat -Wcast-align -Wcast-qual
> -Wchar-subscripts -Wcomment -Wdeclaration-after-statement
> -Wdisabled-optimization -Wextra -Wformat-nonliteral
> -Wformat-security -Wformat-y2k -Wimplicit
> -Wimplicit-function-declaration -Wimplicit-int -Wimport -Winit-self
> -Winline -Winvalid-pch -Wmain -Wmissing-braces
> -Wmissing-declarations -Wmissing-field-initializers
> -Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs
> -Wno-endif-labels -Wno-shadow -Wno-unused -Wnonnull -Wpacked
> -Wparentheses -Wpointer-arith -Wreturn-!
> type -Wsequence-point -Wsign-compare -Wstrict-aliasing
> -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef
> -Wunknown-pragmas -Wvariadic-macros -Wwrite-strings',
> Linker and Libraries:
> ld='cc', ldflags=' -L/usr/local/lib',
> cc_ldflags='',
> libs='-ldl -lm -lpthread -lcrypt -lrt -lgmp -lreadline'
> Dynamic Linking:
> share_ext='.so', ld_share_flags='-shared -L/usr/local/lib -fPIC',
> load_ext='.so', ld_load_flags='-shared -L/usr/local/lib -fPIC'
> Types:
> iv=long, intvalsize=4, intsize=4, opcode_t=long, opcode_t_size=4,
> ptrsize=4, ptr_alignment=1 byteorder=1234,
> nv=double, numvalsize=8, doublesize=8
>
> ---
> Environment:
> HOME =/home/geoff
> LANG =en_US.UTF-8
> LANGUAGE (unset)
> LD_LIBRARY_PATH (unset)
> LOGDIR (unset)
> PATH
> =/home/geoff/svk/parrot:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> SHELL =/bin/bash
--
Will "Coke" Coleda
More information about the parrot-dev
mailing list