public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43837]  New: Set TREE_NOTHROW also on libgfortran library calls
@ 2010-04-21 17:47 burnus at gcc dot gnu dot org
  2010-06-11 13:48 ` [Bug fortran/43837] " fxcoudert at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-04-21 17:47 UTC (permalink / raw)
  To: gcc-bugs

Follow up to PR 43836  and  http://gcc.gnu.org/ml/fortran/2010-04/msg00222.html

> It would be good to set TREE_NOTHROW also on libgfortran library calls
> that are known not to throw exceptions (I guess most of them, except
> those that do IO).

POSIX lists which libc functions have to and can throw, cf.
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html#tag_02_09_05

In the glibc headers one can also look for functions which use __THROW on
prototypes (__THROW means the function never throws) and which don't; also the
__NTH macro and __REDIRECT_NTH.

In libgfortran itself, one can use  __attribute__ ((nothrow)), cf.
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

In the front end (call to library routines) TREE_NOTHROW.


-- 
           Summary: Set TREE_NOTHROW also on libgfortran library calls
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43837


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/43837] Set TREE_NOTHROW also on libgfortran library calls
  2010-04-21 17:47 [Bug fortran/43837] New: Set TREE_NOTHROW also on libgfortran library calls burnus at gcc dot gnu dot org
@ 2010-06-11 13:48 ` fxcoudert at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2010-06-11 13:48 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-06-11 13:47:28
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43837


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/43837] Set TREE_NOTHROW also on libgfortran library calls
       [not found] <bug-43837-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-18  1:19 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-18  1:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43837

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
           Severity|normal                      |enhancement

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-18  1:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-21 17:47 [Bug fortran/43837] New: Set TREE_NOTHROW also on libgfortran library calls burnus at gcc dot gnu dot org
2010-06-11 13:48 ` [Bug fortran/43837] " fxcoudert at gcc dot gnu dot org
     [not found] <bug-43837-4@http.gcc.gnu.org/bugzilla/>
2021-12-18  1:19 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).