stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-547) [Sun C++] 64-bit conversion warnings building the library
Date Tue, 11 Sep 2007 17:25:32 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526531
] 

Farid Zaripov commented on STDCXX-547:
--------------------------------------

Below is a warnings when building the library with ICC 10.0 / x64 platform:

num_put.cpp
$(TOPDIR)\src\num_put.cpp(714): warning #810: conversion from "const void *" to "long" may
lose significant bits
          len = __rw_itoa (buf, _RWSTD_REINTERPRET_CAST (long, pval), flags);
                                ^

$(TOPDIR)\src\num_put.cpp(725): warning #810: conversion from "const void *" to "unsigned
long" may lose significant bits
          len = __rw_itoa (buf, _RWSTD_REINTERPRET_CAST (unsigned long, pval),
                                ^


> [Sun C++] 64-bit conversion warnings building the library
> ---------------------------------------------------------
>
>                 Key: STDCXX-547
>                 URL: https://issues.apache.org/jira/browse/STDCXX-547
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: trunk
>         Environment: Sun C++ +w, wide mode (-xarch=amd64, -xarch=sparcv9, or -m64)
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2
>
>
> We get a bunch of 64-bit conversion warnings when building the library in wide (64-bit)
mode with Sun C++ 5.8 and 5.9:
> gmake: Entering directory `$(BUILDDIR)/lib'
> CC -c -D_RWSTDDEBUG   -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include  -library=%none -g
 -xarch=amd64 +w -errtags -erroff=hidef    $(TOPDIR)/src/assert.cpp
> ...
> CC -c -D_RWSTDDEBUG   -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include  -library=%none -g
 -xarch=amd64 +w -errtags -erroff=hidef    $(TOPDIR)/src/locale_core.cpp
> "$(TOPDIR)/src/locale_core.cpp", line 141: Warning, truncwarn: Conversion of 64 bit type
value to "int" causes truncation.
> "$(TOPDIR)/src/locale_core.cpp", line 141: Warning, truncwarn: Conversion of 64 bit type
value to "int" causes truncation.
> 2 Warning(s) detected.
> ...
> CC -c -D_RWSTDDEBUG   -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include  -library=%none -g
 -xarch=amd64 +w -errtags -erroff=hidef    $(TOPDIR)/src/num_get.cpp
> "$(TOPDIR)/src/num_get.cpp", line 432: Warning, truncwarn: Conversion of 64 bit type
value to "unsigned" causes truncation.
> "$(TOPDIR)/src/num_get.cpp", line 461: Warning, truncwarn: Conversion of 64 bit type
value to "int" causes truncation.
> 2 Warning(s) detected.
> CC -c -D_RWSTDDEBUG   -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include  -library=%none -g
 -xarch=amd64 +w -errtags -erroff=hidef    $(TOPDIR)/src/num_put.cpp
> "$(TOPDIR)/src/num_put.cpp", line 417: Warning, truncwarn: Conversion of 64 bit type
value to "const int" causes truncation.
> "$(TOPDIR)/src/num_put.cpp", line 417: Warning, truncwarn: Conversion of 64 bit type
value to "const int" causes truncation.
> "$(TOPDIR)/src/num_put.cpp", line 745: Warning, truncwarn: Conversion of 64 bit type
value to "int" causes truncation.
> "$(TOPDIR)/src/num_put.cpp", line 772: Warning, truncwarn: Conversion of 64 bit type
value to "int" causes truncation.
> "$(TOPDIR)/src/num_put.cpp", line 802: Warning, truncwarn: Conversion of 64 bit type
value to "int" causes truncation.
> "$(TOPDIR)/src/num_put.cpp", line 830: Warning, truncwarn: Conversion of 64 bit type
value to "int" causes truncation.
> 6 Warning(s) detected.
> ...
> CC -xar -o   libstd.a assert.o atomic-cxx.o bitset.o catalog.o codecvt.o collate.o ctype.o
ctype_bits.o domain_error.o exception.o export.o facet.o file.o instance.o ios.o ios_bits.o
iostore.o iostream.o iso2022.o limits.o limits_bits.o locale_bits.o locale_body.o locale_classic.o
locale_combine.o locale_core.o locale_eq.o locale_global.o locale_name.o logic_error.o memattr.o
memory.o messages.o mman.o num_get.o num_put.o once.o punct.o random.o range_error.o runtime_error.o
setlocale.o string.o strstream.o strtol.o ti_collate.o ti_filebuf.o ti_insert_dbl.o ti_insert_int.o
ti_insert_ptr.o ti_ios.o ti_istream.o ti_messages.o ti_money_get.o ti_money_put.o ti_moneypunct.o
ti_num_get.o ti_num_put.o ti_numpunct.o ti_ostream.o ti_podarray.o ti_streambuf.o ti_string.o
ti_stringbuf.o ti_time_get.o ti_time_put.o ti_wcollate.o ti_wfilebuf.o ti_winsert_dbl.o ti_winsert_int.o
ti_winsert_ptr.o ti_wios.o ti_wistream.o ti_wmessages.o ti_wmoney_get.o ti_wmoney_put.o ti_wmoneypunct.o
ti_wnum_get.o ti_wnum_put.o ti_wnumpunct.o ti_wostream.o ti_wstreambuf.o ti_wstring.o ti_wstringbuf.o
ti_wtime_get.o ti_wtime_put.o time_get.o time_put.o tmpbuf.o typeinfo.o valarray.o vecbool.o
version.o wcodecvt.o wctype.o 
> gencat rwstderr.cat $(TOPDIR)/src/rwstderr.msg
> gmake: Leaving directory `$(BUILDDIR)/lib'

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message