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

Compiler warnings on HP-UX from _MEM_WRAP_NEEDS_RUNTIME_CHECK

Thread Next
From:
Karl Williamson
Date:
February 26, 2016 19:59
Subject:
Compiler warnings on HP-UX from _MEM_WRAP_NEEDS_RUNTIME_CHECK
Message ID:
56D0AE6C.3050808@khwilliamson.com
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.

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