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/01/25 00:08:41 UTC

[jira] Created: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

[HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
-----------------------------------------------------------------

                 Key: STDCXX-708
                 URL: https://issues.apache.org/jira/browse/STDCXX-708
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Tests
    Affects Versions: trunk
         Environment: {noformat}
$ uname -srm && aCC -V
HP-UX B.11.31 ia64
aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
{noformat}
            Reporter: Martin Sebor
             Fix For: 4.2.1


When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.

One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test

{noformat}
$ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
-I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
-AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
"/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
          point underflow exception
      _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
      ^

aCC 18.numeric.special.float.o -o 18.numeric.special.float \
-L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
-L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
-Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
-lstd15D  -lm 
rm 18.numeric.special.float.o
# INFO (S1) (10 lines):
# TEXT: 
# COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
# ENVIRONMENT: ia64 running hp-ux
# FILE: 18.numeric.special.float.cpp
# COMPILED: Jan 24 2008, 17:28:57
# COMMENT: floating specializations
############################################################

# CLAUSE: numeric.special

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<float>::has_denorm == -1, got 1
# CLAUSE: numeric.special
# LINE: 1366

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<double>::has_denorm == -1, got 1
# CLAUSE: numeric.special
# LINE: 1366

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
# CLAUSE: numeric.special
# LINE: 1253

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
# CLAUSE: numeric.special
# LINE: 1254

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
# CLAUSE: numeric.special
# LINE: 1262

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<long double>::has_denorm == -1, got 1
# CLAUSE: numeric.special
# LINE: 1366

# +-----------------------+----------+----------+----------+
# | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
# +-----------------------+----------+----------+----------+
# | (S1) INFO             |        1 |        1 |       0% |
# | (S5) WARNING          |        0 |        3 |     100% |
# | (S7) ASSERTION        |        6 |      134 |      95% |
# +-----------------------+----------+----------+----------+
{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-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Lemings resolved STDCXX-708.
---------------------------------

    Resolution: Fixed

Test passes on HP-UX IPF without any assertions.

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 6h
>  Remaining Estimate: 0h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {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-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583381#action_12583381 ] 

Martin Sebor commented on STDCXX-708:
-------------------------------------

I agree that on HP-UX (both IPF and PA-RISC) {{\(std::numeric_limits<T>::has_denorm == std::denorm_present)}} should hold for all floating point {{T}} by default.

Incidentally, the aCC [+FPd|http://docs.hp.com/en/10946/options.htm#opt+FPmode] command line option changes the default handling of denormalized values to what HP calls "sudden underflow (flush to zero)." When configuring with the option on, {{std::numeric_limits<T>::denorm_min()}} will evaluate to {{std::numeric_limits<T>::denorm_min()}} or {{2.22507e-308}} instead of to the default {{4.94066e-324}}, contradicting the value of {{std::numeric_limits<T>::has_denorm}}.

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 4h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Issue Comment Edited: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] 

elemings edited comment on STDCXX-708 at 3/28/08 4:59 PM:
--------------------------------------------------------------

I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}
...
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
...
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.


      was (Author: elemings):
    I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

{code:title=stdcxx/trunk/tests/support/18.numeric.special.float.cpp}
...
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
...
{code}

According to the INFINITY.cpp config test, {code}std::numeric_limits<float>::has_denorm{code} should have the value {code}denorm_present{code} on this platform.

  
> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Issue Comment Edited: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] 

elemings edited comment on STDCXX-708 at 3/28/08 4:55 PM:
--------------------------------------------------------------

I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}

   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.


      was (Author: elemings):
    I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}
...
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
...
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.

  
> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Issue Comment Edited: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] 

elemings edited comment on STDCXX-708 at 3/28/08 4:58 PM:
--------------------------------------------------------------

I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

{code:title=stdcxx/trunk/tests/support/18.numeric.special.float.cpp}
...
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
...
{code}

According to the INFINITY.cpp config test, {code}std::numeric_limits<float>::has_denorm{code} should have the value {code}denorm_present{code} on this platform.


      was (Author: elemings):
    I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}
...
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
...
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.

  
> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Assigned: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-708:
-----------------------------------

    Assignee: Martin Sebor

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {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-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583933#action_12583933 ] 

Eric Lemings commented on STDCXX-708:
-------------------------------------

How does one configure with this option on?  And what effect does this have on the config settings (i.e. configuration header, makefile.in file, etc.)?

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 4h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Assigned: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-708:
-----------------------------------

    Assignee: Eric Lemings  (was: Martin Sebor)

Reassigned to Brad.

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Issue Comment Edited: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] 

elemings edited comment on STDCXX-708 at 3/28/08 4:56 PM:
--------------------------------------------------------------

I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}
...
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
...
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.


      was (Author: elemings):
    I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}
      373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.

  
> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Issue Comment Edited: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] 

elemings edited comment on STDCXX-708 at 3/28/08 4:53 PM:
--------------------------------------------------------------

I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.


      was (Author: elemings):
    I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.

  
> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {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-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] 

Eric Lemings commented on STDCXX-708:
-------------------------------------

I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.


> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Issue Comment Edited: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] 

elemings edited comment on STDCXX-708 at 3/28/08 4:55 PM:
--------------------------------------------------------------

I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}   
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.


      was (Author: elemings):
    I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}

   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.

  
> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {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-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583951#action_12583951 ] 

Eric Lemings commented on STDCXX-708:
-------------------------------------

The difference in epsilon values is a result of the FLOAT.cpp config test being built without long doubles and the test program being built with long doubles.

file /usr/include/float.h:
...
    89  # ifdef _LDBL_IS_F128
    90  #  define LDBL_MANT_DIG         113
    91  #  ifdef _PROTOTYPES
    92  #    define LDBL_EPSILON        1.92592994438723585305597794258492732E-34L
    93  #  endif /* _PROTOTYPES */
...
   105  # elif defined(_LDBL_IS_F80)
   106  #  define LDBL_MANT_DIG         64
   107  #  ifdef _PROTOTYPES
   108  #    define LDBL_EPSILON        1.084202172485504434007E-19L
   109  #  endif /* _PROTOTYPES */
...

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 4h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {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-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584263#action_12584263 ] 

Martin Sebor commented on STDCXX-708:
-------------------------------------

I'm having a hard time reading your comment on the issue because of Jira formatting (use the {{\{noformat\}}} tag to disable it).

The multiline preprocessor conditional that I copied from the {{_config.h}} header in my comment above is what I think should be used in {{float_defs.h}} to enable the macro definitions just for the vanilla EDG eccp front end. We don't want the macros enabled for any other compiler, regardless of whether it uses the EDG front end or not.

I think you're right that the conditional on line 67 should read {{#if defined (\_\_GNUC__) && \_\_GNUC\_\_ < 4}} in case the EDG eccp front end is being used with some compiler other than gcc for a back end (e.g., Sun C on Solaris or MSVC on Windows).

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 6h
>  Remaining Estimate: 0h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {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-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583959#action_12583959 ] 

Martin Sebor commented on STDCXX-708:
-------------------------------------

I wonder if the EDG-specific macros in [float_defs.h|http://svn.apache.org/repos/asf/stdcxx/branches/4.2.x/etc/config/src/float_defs.h] might have something to do with it. Recall that HP aCC 6 is based on the EDG front end and like other such compilers {{#defines}} the {{\_\_EDG__}} macro. The preprocessor conditional needs to be adjusted along the same lines as the one in [_config.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/rw/_config.h]:

{noformat}
   190  // NOTE: the __EDG__ macro is #defined by most EDG-based compilers
   191  
   192  #if    defined (__EDG__)                \
   193      && !defined (__DECCXX)              \
   194      && !defined (__HP_aCC)              \
   195      && !defined (__INTEL_COMPILER)      \
   196      && !defined (_SGI_COMPILER_VERSION)
{noformat}

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 6h
>  Remaining Estimate: 0h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Issue Comment Edited: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] 

elemings edited comment on STDCXX-708 at 3/28/08 4:56 PM:
--------------------------------------------------------------

I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}
      373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.


      was (Author: elemings):
    I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}   
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.

  
> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


[jira] Issue Comment Edited: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] 

elemings edited comment on STDCXX-708 at 3/28/08 4:54 PM:
--------------------------------------------------------------

I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}
...
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
...
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.


      was (Author: elemings):
    I think the expected values (such as the following conditional compilation directive) need to be updated for this platform:

file stdcxx/trunk/tests/support/18.numeric.special.float.cpp:
{code}
   373  _RWSTD_SPECIALIZED_CLASS
   374  struct limits_values<float>
   375  {
...
   452      static std::float_denorm_style has_denorm () {
   453
   454  #if defined (_AIX)
   455          return std::denorm_present;
   456  #elif defined (__hpux)
   457          return std::denorm_indeterminate;
   458  #elif defined (__osf__)
   459          return std::denorm_present;
   460  #else
   461          return std::denorm_indeterminate;
   462  #endif
   463      }
{code}

According to the INFINITY.cpp config test, `std::numeric_limits<float>::has_denorm' should have the value `denorm_present' on this platform.

  
> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 2h
>  Remaining Estimate: 2h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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


Re: [jira] Commented: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by Martin Sebor <se...@roguewave.com>.
Eric Lemings (JIRA) wrote:
>     [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584333#action_12584333 ] 
> 
> Eric Lemings commented on STDCXX-708:
> -------------------------------------
> 
> Wasn't expecting Jira to automatically append that email to the comments in the issue.

I didn't know you could do that either. All you need to do is send your
response to issues@stdcxx.a.o. Nifty!

Martin

> The cross-post on the dev list shows the proper formatting.
> 
> I changed the directive using the suggested directive from _config.h and testing it now on both HP-UX platforms.
> 
>> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
>> -----------------------------------------------------------------
>>
>>                 Key: STDCXX-708
>>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>>             Project: C++ Standard Library
>>          Issue Type: Bug
>>          Components: Tests
>>    Affects Versions: trunk
>>         Environment: {noformat}
>> $ uname -srm && aCC -V
>> HP-UX B.11.31 ia64
>> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
>> {noformat}
>>            Reporter: Martin Sebor
>>            Assignee: Eric Lemings
>>             Fix For: 4.2.1
>>
>>   Original Estimate: 4h
>>          Time Spent: 6h
>>  Remaining Estimate: 0h
>>
>> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
>> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
>> {noformat}
>> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
>> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
>> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
>> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
>> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>>           point underflow exception
>>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>>       ^
>> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
>> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
>> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
>> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
>> -lstd15D  -lm 
>> rm 18.numeric.special.float.o
>> # INFO (S1) (10 lines):
>> # TEXT: 
>> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
>> # ENVIRONMENT: ia64 running hp-ux
>> # FILE: 18.numeric.special.float.cpp
>> # COMPILED: Jan 24 2008, 17:28:57
>> # COMMENT: floating specializations
>> ############################################################
>> # CLAUSE: numeric.special
>> # ASSERTION (S7) (4 lines):
>> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
>> # CLAUSE: numeric.special
>> # LINE: 1366
>> # ASSERTION (S7) (4 lines):
>> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
>> # CLAUSE: numeric.special
>> # LINE: 1366
>> # ASSERTION (S7) (4 lines):
>> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
>> # CLAUSE: numeric.special
>> # LINE: 1253
>> # ASSERTION (S7) (4 lines):
>> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
>> # CLAUSE: numeric.special
>> # LINE: 1254
>> # ASSERTION (S7) (4 lines):
>> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
>> # CLAUSE: numeric.special
>> # LINE: 1262
>> # ASSERTION (S7) (4 lines):
>> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
>> # CLAUSE: numeric.special
>> # LINE: 1366
>> # +-----------------------+----------+----------+----------+
>> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
>> # +-----------------------+----------+----------+----------+
>> # | (S1) INFO             |        1 |        1 |       0% |
>> # | (S5) WARNING          |        0 |        3 |     100% |
>> # | (S7) ASSERTION        |        6 |      134 |      95% |
>> # +-----------------------+----------+----------+----------+
>> {noformat}
> 


[jira] Commented: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584333#action_12584333 ] 

Eric Lemings commented on STDCXX-708:
-------------------------------------

Wasn't expecting Jira to automatically append that email to the comments in the issue.  The cross-post on the dev list shows the proper formatting.

I changed the directive using the suggested directive from _config.h and testing it now on both HP-UX platforms.

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 6h
>  Remaining Estimate: 0h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {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-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Eric Lemings (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584228#action_12584228 ] 

Eric Lemings commented on STDCXX-708:
-------------------------------------

 
Yeah, the LDBL_EPSILON macro is getting undefined and redefined in
the etc/config/src/float_defs.h header.

	file stdcxx/trunk/etc/config/float_defs.h:
	 30 #  if defined (__EDG__) && !defined (__INTEL_COMPILER)
	 31      // define gcc 4 intrinsics otherwise not recognized
	 32      // by the front end
	...
	 67 #    if __GNUC__ < 4
	 68
	 69       // prevent the propriterary gcc __extension__ from
	 70       // throwing the vanilla EDG demo for a loop
	 71
	 72 #      undef LDBL_EPSILON
	 73 #      undef LDBL_MIN
	 74 #      undef LDBL_MAX
	 75
	 76        // redefine to prevent compilation errors
	 77 #      define LDBL_EPSILON 1.0842021724855044e-19L
	...

Does the block starting at line 30 really apply to all compilers using
an EDG front-end other than Intel C++?  Or only to GCC?  The comment
suggests that it applies only to GCC.

If so, either the directive at line 30 should be written as follows:

	 30 #  if defined (__EDG__) && defined (__GNUC__) && !defined
(__INTEL_COMPILER)
	 31      // define gcc 4 intrinsics otherwise not recognized
	 32      // by the front end

Or the directive at line 67 should be written like this:

	 67 #    if defined (__GNUC__) && __GNUC__ < 4

Oui?

Brad.



> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 6h
>  Remaining Estimate: 0h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {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-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589889#action_12589889 ] 

Farid Zaripov commented on STDCXX-708:
--------------------------------------

Merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752

> [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions
> -----------------------------------------------------------------
>
>                 Key: STDCXX-708
>                 URL: https://issues.apache.org/jira/browse/STDCXX-708
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: {noformat}
> $ uname -srm && aCC -V
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> {noformat}
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 7h
>  Remaining Estimate: 0h
>
> When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions.
> One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test
> {noformat}
> $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include  \
> -AA  -g +d  +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   /amd/devco/sebor/stdcxx/tests/support/18.numeric.special.float.cpp
> "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating
>           point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> aCC 18.numeric.special.float.o -o 18.numeric.special.float \
> -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 \
> -L/build/sebor/stdcxx-aCC-6.15-15D/lib  \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 18.numeric.special.float.o
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308
> # ENVIRONMENT: ia64 running hp-ux
> # FILE: 18.numeric.special.float.cpp
> # COMPILED: Jan 24 2008, 17:28:57
> # COMMENT: floating specializations
> ############################################################
> # CLAUSE: numeric.special
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<float>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::min() == 3.3621e-4932, got 3.3621e-4932
> # CLAUSE: numeric.special
> # LINE: 1253
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::max() == 1.18973e+4932, got 1.18973e+4932
> # CLAUSE: numeric.special
> # LINE: 1254
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::epsilon() == 1.92593e-34, got 1.0842e-19
> # CLAUSE: numeric.special
> # LINE: 1262
> # ASSERTION (S7) (4 lines):
> # TEXT: numeric_limits<long double>::has_denorm == -1, got 1
> # CLAUSE: numeric.special
> # LINE: 1366
> # +-----------------------+----------+----------+----------+
> # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
> # +-----------------------+----------+----------+----------+
> # | (S1) INFO             |        1 |        1 |       0% |
> # | (S5) WARNING          |        0 |        3 |     100% |
> # | (S7) ASSERTION        |        6 |      134 |      95% |
> # +-----------------------+----------+----------+----------+
> {noformat}

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