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/02/13 22:47:07 UTC
[jira] Commented: (STDCXX-695) [HP aCC 6.15] lots of noise due to
compiler remarks
[ https://issues.apache.org/jira/browse/STDCXX-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568724#action_12568724 ]
Martin Sebor commented on STDCXX-695:
-------------------------------------
Remarks #4296-D arithmetic operation on boolean type (695 occurrences) and #4297-D boolean value is used as array index (1220 occurrences) are useless even according to HP. We should silence them.
Out of the total of 780 occurrences of remark #4271-D type conversion may lose sign, only about 120 are distinct. 11 of these are emitted from the library headers so we should silence those first:
{noformat}
$ grep "remark #4271" hpux-11.31-ia64-acc-6.15-15S-620132-log | grep "(TOPDIR)/include" | sort | uniq
"$(TOPDIR)/include/algorithm.cc", line 612: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/algorithm", line 82: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/list", line 407: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/loc/_messages.cc", line 108: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/loc/_money_get.cc", line 323: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/loc/_money_get.cc", line 328: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/sstream", line 201: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/string.cc", line 539: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/string.cc", line 633: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/string.cc", line 646: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/include/string", line 613: remark #4271-D: type conversion may lose sign
{noformat}
And another 11 come from our examples:
{noformat}
$ grep "remark #4271" hpux-11.31-ia64-acc-6.15-15S-620132-log | grep "(TOPDIR)/examples" | sort | uniq
"$(TOPDIR)/examples/manual/priority_queue.cpp", line 61: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/manual/priority_queue.cpp", line 78: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/manual/stack.cpp", line 67: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/tutorial/graph.cpp", line 86: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/tutorial/icecream.cpp", line 220: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/tutorial/radix.cpp", line 56: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/tutorial/sieve.cpp", line 45: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/tutorial/sieve.cpp", line 47: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/tutorial/sieve.cpp", line 51: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/tutorial/teller.cpp", line 60: remark #4271-D: type conversion may lose sign
"$(TOPDIR)/examples/tutorial/teller.cpp", line 64: remark #4271-D: type conversion may lose sign
{noformat}
> [HP aCC 6.15] lots of noise due to compiler remarks
> ---------------------------------------------------
>
> Key: STDCXX-695
> URL: https://issues.apache.org/jira/browse/STDCXX-695
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: 4.2.0
> Environment: HP aCC 6.15
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> The latest HP compiler on IPF issues lots of remarks, making our builds exceedingly noisy.
> Here's a breakdown of all the remarks we get in a recent 12S build along with the number of each:
> {noformat}
> F=hpux-11.31-ia64-acc-6.15-12S-610576-log; \
> R=`sed -n "s/.*: remark \(#[1-9][0-9]*-.\): .*/\1/p" $F | sort | uniq`; \
> for r in $R; do \
> n=`grep ": remark $r: " $F | wc -l`; echo $r: $n; \
> done
> #2177-D: 8 variable was declared but never referenced
> #2181-D: 9 argument is incompatible with corresponding format string conversion
> #2550-D: 28 variable was set but never used
> #2826-D: 44 parameter was never referenced
> #2961-D: 1 use of a type with no linkage to declare a variable with linkage
> #3235-D: 1 nonstandard conversion between pointer to function and pointer to data
> #3348-D: 799 declaration hides constant or variable
> #4217-D: 3 comparison of enum (represented as an unsigned integer) with zero
> #4219-D: 250 64 bit migration: type conversion may truncate value
> #4234-D: 28 type conversion may lose significant bits
> #4239-D: 2 case type mismatch with switch expression type
> #4244-D: 4 extern storage class used with a function definition
> #4248-D: 4 comparison of unsigned integer with a signed integer
> #4271-D: 780 type conversion may lose sign
> #4273-D: 18 floating-point equality and inequality comparisons may be inappropriate due to roundoff common in floating-point computation
> #4278-D: 3 the subexpression in logical expression is a constant
> #4282-D: 34 virtual function is called from constructor/destructor
> #4283-D: 3 access global variable in constructor
> #4296-D: 695 arithmetic operation on boolean type
> #4297-D: 1220 boolean value is used as array index
> #4298-D: 124 64 bit migration: addition result could be truncated before cast to bigger sized type
> #4299-D: 20 64 bit migration: multiply result could be truncated before cast to bigger sized type
> #4300-D: 60 Overflow while computing constant in left shift operation
> #4315-D: 60 while loop without body, did you insert an extra ';'?
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.