diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-16 23:05:45 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-16 23:05:45 +0000 |
| commit | 25c55cb426b20d337f1e7bb5ed83b3ec6b99fdb0 (patch) | |
| tree | 4cc84d905e9a42dfd9f3144e74b2223f8dad1d2e /gcc | |
| parent | c621b28d550e43cbb5581bb64837126dbcd88d0a (diff) | |
| download | ppe42-gcc-25c55cb426b20d337f1e7bb5ed83b3ec6b99fdb0.tar.gz ppe42-gcc-25c55cb426b20d337f1e7bb5ed83b3ec6b99fdb0.zip | |
* decl.c (build_library_fn_1): Move setting TREE_NOTHROW ...
(build_library_fn): ... here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99800 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/decl.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e3e43b72a4b..0a21f0a1979 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-05-16 Richard Henderson <rth@redhat.com> + + * decl.c (build_library_fn_1): Move setting TREE_NOTHROW ... + (build_library_fn): ... here. + 2005-05-12 Ian Lance Taylor <ian@airs.com> * cp-tree.h (cp_stmt_codes): Don't define. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 15f74c08d3f..c110d9fc5ff 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3221,7 +3221,6 @@ build_library_fn_1 (tree name, enum tree_code operator_code, tree type) DECL_EXTERNAL (fn) = 1; TREE_PUBLIC (fn) = 1; DECL_ARTIFICIAL (fn) = 1; - TREE_NOTHROW (fn) = 1; SET_OVERLOADED_OPERATOR_CODE (fn, operator_code); SET_DECL_LANGUAGE (fn, lang_c); /* Runtime library routines are, by definition, available in an @@ -3238,7 +3237,9 @@ build_library_fn_1 (tree name, enum tree_code operator_code, tree type) tree build_library_fn (tree name, tree type) { - return build_library_fn_1 (name, ERROR_MARK, type); + tree fn = build_library_fn_1 (name, ERROR_MARK, type); + TREE_NOTHROW (fn) = 1; + return fn; } /* Returns the _DECL for a library function with C++ linkage. */ |

