You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/09/11 03:11:29 UTC

[jira] Assigned: (STDCXX-547) [Sun C++] 64-bit conversion warnings building the library

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

Martin Sebor reassigned STDCXX-547:
-----------------------------------

    Assignee: Martin Sebor

> [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.