stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Created: (STDCXX-1007) [HP aCC 6.16] many +wperfadvice warninsg for std::endl in examples
Date Wed, 20 Aug 2008 03:42:44 GMT
[HP aCC 6.16] many +wperfadvice warninsg for std::endl in examples

                 Key: STDCXX-1007
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Examples
    Affects Versions: 4.2.1
         Environment: aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
            Reporter: Martin Sebor
            Assignee: Martin Sebor
            Priority: Trivial
             Fix For: 4.2.2

Compiling examples with HP aCC 6.16 with the [+wperfadvice|]
option on produces many warnings like the one below:

aCC -c -mt -I/amd/devco/sebor/stdcxx-4.2.x/include \
    -I/build/sebor/stdcxx-4.2.x-aCC-6.16-12d/include \
    -I/amd/devco/sebor/stdcxx-4.2.x/examples/include \
    -AA +wperfadvice +W20302 +O2   +w \
    +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 \
    +W4227,4229,4231,4235,4237,4249 +W4255,4272,4284,4285,4286,4296,4297 +W3348 \
"/amd/devco/sebor/stdcxx-4.2.x/examples/manual/accumulate.cpp", line 60: warning #4320-D:

          performance advice: std::endl is expensive because it flushes the
          stream. If you do not want to flush the stream replace 'std::endl'
          with '\n' or define macro _HP_NONSTD_FAST_IOSTREAM
                << "\nThe product = N! = " << prod << std::endl;

aCC accumulate.o -o accumulate -AA +nostl -Wl,+s   -mt  -L/build/sebor/stdcxx-4.2.x-aCC-6.16-12d/lib
 -Wl,+b/build/sebor/stdcxx-4.2.x-aCC-6.16-12d/lib -lstd12d  -lm 

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

View raw message