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/16 21:33:44 UTC

[jira] Created: (STDCXX-1006) [MSVC] use __declspec(noreturn) where __attribute__((noreturn)) is used

[MSVC] use __declspec(noreturn) where __attribute__((noreturn)) is used
-----------------------------------------------------------------------

                 Key: STDCXX-1006
                 URL: https://issues.apache.org/jira/browse/STDCXX-1006
             Project: C++ Standard Library
          Issue Type: Improvement
          Components: Build and Installation
    Affects Versions: 4.2.1
         Environment: MSVC 6.0 and better
            Reporter: Martin Sebor
            Assignee: Martin Sebor
            Priority: Minor
             Fix For: 4.2.2


As noted in this [comment|http://issues.apache.org/jira/browse/STDCXX-890?focusedCommentId=12601601#action_12601601] on STDCXX-890, we can and should use Visual C++ [{{\_\_declspec(noreturn)}}|http://msdn.microsoft.com/en-us/library/aa235362(VS.60).aspx] to declare functions that do not return to the caller to avoid warnings and to help the optimizer generate better code.

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


[jira] Resolved: (STDCXX-1006) [MSVC] use __declspec(noreturn) where __attribute__((noreturn)) is used

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

Martin Sebor resolved STDCXX-1006.
----------------------------------

    Resolution: Fixed

Will close after verifying in nightly builds.

> [MSVC] use __declspec(noreturn) where __attribute__((noreturn)) is used
> -----------------------------------------------------------------------
>
>                 Key: STDCXX-1006
>                 URL: https://issues.apache.org/jira/browse/STDCXX-1006
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Build and Installation
>    Affects Versions: 4.2.1
>         Environment: MSVC 6.0 and better
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2.2
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> As noted in this [comment|http://issues.apache.org/jira/browse/STDCXX-890?focusedCommentId=12601601#action_12601601] on STDCXX-890, we can and should use Visual C++ [{{\_\_declspec(noreturn)}}|http://msdn.microsoft.com/en-us/library/aa235362(VS.60).aspx] to declare functions that do not return to the caller to avoid warnings and to help the optimizer generate better code.

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