develooper Front page | perl.perl5.porters | Postings from March 2016

Re: Compiler warnings on HP-UX from _MEM_WRAP_NEEDS_RUNTIME_CHECK

Thread Previous
From:
Dave Mitchell
Date:
March 4, 2016 21:20
Subject:
Re: Compiler warnings on HP-UX from _MEM_WRAP_NEEDS_RUNTIME_CHECK
Message ID:
20160304212014.GR29332@iabyn.com
On Thu, Mar 03, 2016 at 10:36:52AM +0000, Dave Mitchell wrote:
> On Fri, Feb 26, 2016 at 12:58:36PM -0700, Karl Williamson wrote:
> > There are still compiler warnings on HP-UX despite
> > commit 73e8ff0004522621dfb42f01966853b51d5522a6
> >  Author: David Mitchell <davem@iabyn.com>
> >  Date:   Wed Sep 9 13:02:40 2015 +0100
> > 
> >      fix some 32/64-bit compiler warnings
> > 
> >      Some bits of code don't do well on a 32-bit system with 64-bit ints
> >      (-Duse64bitint)
> > 
> >      In particular:
> > 
> >      _MEM_WRAP_NEEDS_RUNTIME_CHECK:
> >          if sizeof(MEM_SIZE) > sizeof(n), then the shift count could be
> >              negative
> > 
> > -------------------------------------
> > 
> > Here is an example:
> >  cc: "regcomp.c", line 9078: warning 950: Shift amount should be in the
> > range of zero through 31 bits.
> 
> Do you know what actual line in regcomp.c that corresponds to? I can't
> see that message in any recent smoke reports, and regcomp.c has been
> worked on a lot recently (as I'm sure you're aware ;-)

Hopefully quietened by

commit 004073bac990d90244eb463f435c52d4040b36df
Author:     David Mitchell <davem@iabyn.com>
AuthorDate: Thu Mar 3 10:59:57 2016 +0000
Commit:     David Mitchell <davem@iabyn.com>
CommitDate: Fri Mar 4 21:07:54 2016 +0000

    Simplify _MEM_WRAP_NEEDS_RUNTIME_CHECK()
    
    And at the same time hopefully avoid some false-positive compiler warnings
    on HP-UX




-- 
My get-up-and-go just got up and went.

Thread Previous


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