Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #39838] [PCC] mark non-returning functions with __attribute__((__noreturn__))

0 views
Skip to first unread message

Chip Salzenberg

unread,
Jul 15, 2006, 3:43:16 AM7/15/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Chip Salzenberg
# Please include the string: [perl #39838]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39838 >


Some compilers have flags to mark functions that don't return.
For example, GCC uses __attribute__((__noreturn__)).
All functions that don't return should be marked with this attribute.

("Parrot Cage Cleaners, assemble!")
--
Chip Salzenberg <ch...@pobox.com>

Andy Lester

unread,
Jul 15, 2006, 8:11:34 AM7/15/06
to perl6-i...@perl.org, bugs-bi...@rt.perl.org

On Jul 15, 2006, at 2:43 AM, Chip Salzenberg (via RT) wrote:

> Some compilers have flags to mark functions that don't return.
> For example, GCC uses __attribute__((__noreturn__)).
> All functions that don't return should be marked with this attribute.

This will happen. Humans will mark the functions with a special flag
comment, and then the headerizer will do the GCC magic.

xoxo,
Andy

--
Andy Lester => an...@petdance.com => www.petdance.com => AIM:petdance


0 new messages