aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-05-16 16:05:45 -0700
committerRichard Henderson <rth@gcc.gnu.org>2005-05-16 16:05:45 -0700
commitf59d2aade3edd34329cc69762bc7d155284b6c62 (patch)
tree4cc84d905e9a42dfd9f3144e74b2223f8dad1d2e /gcc/cp/decl.c
parentd7a6176efe2cec2584a9d784c6e228df952862f9 (diff)
downloadgcc-f59d2aade3edd34329cc69762bc7d155284b6c62.zip
gcc-f59d2aade3edd34329cc69762bc7d155284b6c62.tar.gz
gcc-f59d2aade3edd34329cc69762bc7d155284b6c62.tar.bz2
decl.c (build_library_fn_1): Move setting TREE_NOTHROW ...
* decl.c (build_library_fn_1): Move setting TREE_NOTHROW ... (build_library_fn): ... here. From-SVN: r99800
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 15f74c0..c110d9f 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. */