stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-890) [HP aCC 6] add __attribute__((noreturn))
Date Mon, 02 Jun 2008 15:09:44 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601644#action_12601644
] 

Martin Sebor commented on STDCXX-890:
-------------------------------------

Thanks for the pointer! Let me check if aCC accepts the alternate syntax and make the change.
If it doesn't, another option might be to replace the object macro {{\_RWSTD_ATTRIBUTE_NORETURN}}
with a function macro {{\_RWSTD_NORETURN()}} and have it expand to the syntax appropriate
for each compiler.


> [HP aCC 6] add __attribute__((noreturn))
> ----------------------------------------
>
>                 Key: STDCXX-890
>                 URL: https://issues.apache.org/jira/browse/STDCXX-890
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Build
>    Affects Versions: 4.2.0
>         Environment: aCC: HP aC++/ANSI C B3910B A.06.00 [Aug 25 2004]
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.2.1
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Like gcc, HP aCC 6 supports [{{\_\_attribute__((noreturn))}}|http://docs.hp.com/en/7730/newhelp0610/pragmas.htm#noreturn]
to indicate to the optimizer that a function does not return. Making use of the attribute
on the declaration of {{\_\_rw::__rw_assert_fail()}} will silence certain warnings and might
improve generated code.

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


Mime
View raw message