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/08/20 06:06:45 UTC

[jira] Closed: (STDCXX-1007) [HP aCC 6.16] many +wperfadvice warninsg for std::endl in examples

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

Martin Sebor closed STDCXX-1007.
--------------------------------

    Resolution: Fixed

Done in [r687231|http://svn.apache.org/viewvc?rev=687231&view=rev] and [r687233|http://svn.apache.org/viewvc?rev=687233&view=rev].

> [HP aCC 6.16] many +wperfadvice warninsg for std::endl in examples
> ------------------------------------------------------------------
>
>                 Key: STDCXX-1007
>                 URL: https://issues.apache.org/jira/browse/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
>
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> Compiling examples with HP aCC 6.16 with the [+wperfadvice|http://docs.hp.com/en/10946/options.htm#opt+wperfadvice] option on produces many warnings like the one below:
> {noformat}
> 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
> "/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 
> {noformat}

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