You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/04/07 21:07:28 UTC
[jira] Created: (STDCXX-830) [HP aCC 6.15] many remarks 4298 and
4299 from _localedef.h
[HP aCC 6.15] many remarks 4298 and 4299 from _localedef.h
----------------------------------------------------------
Key: STDCXX-830
URL: https://issues.apache.org/jira/browse/STDCXX-830
Project: C++ Standard Library
Issue Type: Sub-task
Components: Build
Affects Versions: 4.2.0
Environment: aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
Reporter: Martin Sebor
Assignee: Martin Sebor
Fix For: 4.2.1
When compiled with HP aCC 6 with the [+w|http://docs.hp.com/en/10946/options.htm#opt+w] option on, the library header [_localedef.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/loc/_localedef.h] produces a bunch of "64-bit conversion" remarks:
{noformat}
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));
^
{noformat}
There are a total of 19 of them in the whole library build:
{noformat}
$ cat hpux-11.31-ia64-acc-6.16-12D-642031-log | grep "include/loc/_localedef.h\", line 160: remark #429[89]" | wc -l
19
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-830) [HP aCC 6.15] many remarks 4298 and
4299 from _localedef.h
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor updated STDCXX-830:
--------------------------------
Priority: Trivial (was: Major)
> [HP aCC 6.15] many remarks 4298 and 4299 from _localedef.h
> ----------------------------------------------------------
>
> Key: STDCXX-830
> URL: https://issues.apache.org/jira/browse/STDCXX-830
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: Build
> Affects Versions: 4.2.0
> Environment: aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Priority: Trivial
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> When compiled with HP aCC 6 with the [+w|http://docs.hp.com/en/10946/options.htm#opt+w] option on, the library header [_localedef.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/loc/_localedef.h] produces a bunch of "64-bit conversion" remarks:
> {noformat}
> 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));
> ^
> {noformat}
> There are a total of 19 of them in the whole library build:
> {noformat}
> $ cat hpux-11.31-ia64-acc-6.16-12D-642031-log | grep "include/loc/_localedef.h\", line 160: remark #429[89]" | wc -l
> 19
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (STDCXX-830) [HP aCC 6.15] many remarks 4298 and
4299 from _localedef.h
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor resolved STDCXX-830.
---------------------------------
Resolution: Fixed
None of these remarks indicates an actual problem since all the values are virtually guaranteed to be much smaller than {{UINT_MAX}} (they are offsets into locale databases). Suppressed in [r645656|http://svn.apache.org/viewvc?rev=645656&view=rev].
Will close after integrating into 4.2.x in the next bulk merge.
> [HP aCC 6.15] many remarks 4298 and 4299 from _localedef.h
> ----------------------------------------------------------
>
> Key: STDCXX-830
> URL: https://issues.apache.org/jira/browse/STDCXX-830
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: Build
> Affects Versions: 4.2.0
> Environment: aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Priority: Trivial
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> When compiled with HP aCC 6 with the [+w|http://docs.hp.com/en/10946/options.htm#opt+w] option on, the library header [_localedef.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/loc/_localedef.h] produces a bunch of "64-bit conversion" remarks:
> {noformat}
> 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));
> ^
> {noformat}
> There are a total of 19 of them in the whole library build:
> {noformat}
> $ cat hpux-11.31-ia64-acc-6.16-12D-642031-log | grep "include/loc/_localedef.h\", line 160: remark #429[89]" | wc -l
> 19
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (STDCXX-830) [HP aCC 6.15] many remarks 4298 and
4299 from _localedef.h
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589900#action_12589900 ]
Farid Zaripov commented on STDCXX-830:
--------------------------------------
Merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752
> [HP aCC 6.15] many remarks 4298 and 4299 from _localedef.h
> ----------------------------------------------------------
>
> Key: STDCXX-830
> URL: https://issues.apache.org/jira/browse/STDCXX-830
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: Build
> Affects Versions: 4.2.0
> Environment: aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Priority: Trivial
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Time Spent: 2h
> Remaining Estimate: 0h
>
> When compiled with HP aCC 6 with the [+w|http://docs.hp.com/en/10946/options.htm#opt+w] option on, the library header [_localedef.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/loc/_localedef.h] produces a bunch of "64-bit conversion" remarks:
> {noformat}
> 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));
> ^
> {noformat}
> There are a total of 19 of them in the whole library build:
> {noformat}
> $ cat hpux-11.31-ia64-acc-6.16-12D-642031-log | grep "include/loc/_localedef.h\", line 160: remark #429[89]" | wc -l
> 19
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.