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

Re: Compiler warnings on HP-UX from _MEM_WRAP_NEEDS_RUNTIME_CHECK

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
March 3, 2016 10:37
Subject:
Re: Compiler warnings on HP-UX from _MEM_WRAP_NEEDS_RUNTIME_CHECK
Message ID:
20160303103652.GQ5581@iabyn.com
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 ;-)

I suspect its a false positive.

-- 
Overhead, without any fuss, the stars were going out.
    -- Arthur C Clarke

Thread Previous | 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