c-common.c: Add support for __attribute__((nothrow)) to specify that a function cannot...
authorRoger Sayle <sayle@gcc.gnu.org>
Mon, 27 May 2002 21:09:38 +0000 (21:09 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 27 May 2002 21:09:38 +0000 (21:09 +0000)
commit39f2f3c85a1e9999e3f38bfb5b9bbd35b062df67
treeef5638bc097170d139e365da78c3dceb1d3a2ffa
parentd51b0053f5c1dd2509c69729d3c474b2cf7de66c
c-common.c: Add support for __attribute__((nothrow)) to specify that a function cannot...

* c-common.c: Add support for __attribute__((nothrow)) to specify
that a function cannot throw an exception (using TREE_NOTHROW).
(handle_nothrow_attribute): New function to process this attribute.

* doc/extend.texi: Document the new nothrow function attribute.

2002-05-27  Richard Henderson  <rth@redhat.com>

* g++.dg/ext/attrib6.C: New test case.

From-SVN: r53940
gcc/ChangeLog
gcc/c-common.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attrib6.C [new file with mode: 0644]