develooper Front page | perl.perl5.porters | Postings from September 2011

[perl #98810] add OP_IS_DIRHOP, OP_IS_NUMCOMPARE macros

Thread Next
From:
Jim Cromie
Date:
September 9, 2011 21:28
Subject:
[perl #98810] add OP_IS_DIRHOP, OP_IS_NUMCOMPARE macros
Message ID:
rt-3.6.HEAD-31297-1315628919-1064.98810-75-0@perl.org
# New Ticket Created by  Jim Cromie 
# Please include the string:  [perl #98810]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=98810 >


This is a bug report for perl from jim.cromie@gmail.com,
generated with the help of perlbug 1.39 running under perl 5.15.2.

-----------------------------------------------------------------
[Please describe your issue here]

pair of patches generate 2 more OP_IS_* macros:

    regen/opcode.pl: generate OP_IS_DIRHOP, use in gv.c

    Generate OP_IS_DIRHOP like other OP_IS_* macros,
    use in gv.c:Perl_gv_add_by_type().
    Modifies D operand type to DF.
    This yields a micro-optimization.

    implement OP_IS_NUMCOMPARE like other OP_IS macros

    other macros are written by regen/opcode.pl into opnames.h
    Generate OP_IS_NUMCOMPARE the same way, and get a micro-optimization.
    Adds a new 'S<' operand type for the numeric comparison ops.
    Needs make regen.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
This perlbug was built using Perl 5.12.3 in the Fedora build system.
It is being executed now by Perl 5.15.2 - Wed Sep  7 12:17:39 MDT 2011.

Site configuration information for perl 5.15.2:

Configured by jimc at Wed Sep  7 12:17:39 MDT 2011.

Summary of my perl5 (revision 5 version 15 subversion 2) configuration:
  Commit id: d39de89300b9384bad8b2cf88917ce9f104ae8b2
  Platform:
    osname=linux, osvers=2.6.35.14-95.fc14.x86_64, archname=x86_64-linux
    uname='linux groucho.jimc.earth 2.6.35.14-95.fc14.x86_64 #1 smp
tue aug 16 21:01:58 utc 2011 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Dusedevel -DDEBUGGING=both'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
    ccversion='', gccversion='4.5.1 20100924 (Red Hat 4.5.1-4)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib
/usr/lib /lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.13.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.13'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib
-fstack-protector'

Locally applied patches:


---
@INC for perl 5.15.2:
    lib
    /usr/local/lib/perl5/site_perl/5.15.2/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.15.2
    /usr/local/lib/perl5/5.15.2/x86_64-linux
    /usr/local/lib/perl5/5.15.2
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl 5.15.2:
    HOME=/home/jimc
    LANG=en_US.utf8
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/lib64/mpich2/lib:/usr/lib64/alliance/lib:/usr/lib64/alliance/lib
    LOGDIR (unset)
    PATH=/usr/lib64/qt-3.3/bin:/usr/lib64/mpich2/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lib64/alli
ance/bin:/usr/libexec/sdcc:/home/jimc/bin:./bin:.:/usr/lib64/alliance/bin:/usr/libexec/sdcc
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About