XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: Build and Installation
    • Labels:
      None
    • Environment:

      aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]

      Description

      When compiled with HP aCC 6 with the +w option on, the library header _localedef.h produces a bunch of "64-bit conversion" remarks:

      aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include  -AA  +O2  +DD64 +w \
          +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 \
          +W2401 +W2487 +W4227 +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 \
          +W4272 +W4284 +W4285 +W4286 +W4296 +W4297 +W3348  +Z
          +Z $(TOPDIR)/src/codecvt.cpp
      "$(TOPDIR)/include/loc/_localedef.h", line 160: remark #4298-D: addition result could be truncated before cast to bigger sized type
                return (wtolower_off - wtoupper_off) / sizeof (__rw_upper_elm);
                                     ^
      
      "$(TOPDIR)/include/loc/_localedef.h", line 164: remark #4298-D: addition result could be truncated before cast to bigger sized type
                return (wmask_off - wtolower_off) / sizeof (__rw_lower_elm);
                                  ^
      
      "$(TOPDIR)/include/loc/_localedef.h", line 168: remark #4298-D: addition result could be truncated before cast to bigger sized type
                return charmap_off - codeset_off;
                                   ^
      
      "$(TOPDIR)/include/loc/_localedef.h", line 172: remark #4298-D: addition result could be truncated before cast to bigger sized type
                return wtoupper_off - charmap_off;
                                    ^
      
      "$(TOPDIR)/include/loc/_localedef.h", line 122: remark #4299-D: multiply result could be truncated before cast to bigger sized type
                return *(_RWSTD_ARRAY_ELM (wchar_t, wchar_off, off * 2));
                                                                   ^
      
      "$(TOPDIR)/include/loc/_localedef.h", line 128: remark #4298-D: addition result could be truncated before cast to bigger sized type
                return *(_RWSTD_ARRAY_ELM (wchar_t, wchar_off, off * 2 + 1));
                                                                       ^
      

      There are a total of 19 of them in the whole library build:

      $ cat hpux-11.31-ia64-acc-6.16-12D-642031-log | grep "include/loc/_localedef.h\", line 160: remark #429[89]" | wc -l
      19
      

        Attachments

          Activity

            People

            • Assignee:
              sebor Martin Sebor
              Reporter:
              sebor Martin Sebor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h