Commit f59d2aad by Richard Henderson Committed by Richard Henderson

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
parent d7a6176e
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> 2005-05-12 Ian Lance Taylor <ian@airs.com>
* cp-tree.h (cp_stmt_codes): Don't define. * cp-tree.h (cp_stmt_codes): Don't define.
......
...@@ -3221,7 +3221,6 @@ build_library_fn_1 (tree name, enum tree_code operator_code, tree type) ...@@ -3221,7 +3221,6 @@ build_library_fn_1 (tree name, enum tree_code operator_code, tree type)
DECL_EXTERNAL (fn) = 1; DECL_EXTERNAL (fn) = 1;
TREE_PUBLIC (fn) = 1; TREE_PUBLIC (fn) = 1;
DECL_ARTIFICIAL (fn) = 1; DECL_ARTIFICIAL (fn) = 1;
TREE_NOTHROW (fn) = 1;
SET_OVERLOADED_OPERATOR_CODE (fn, operator_code); SET_OVERLOADED_OPERATOR_CODE (fn, operator_code);
SET_DECL_LANGUAGE (fn, lang_c); SET_DECL_LANGUAGE (fn, lang_c);
/* Runtime library routines are, by definition, available in an /* 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) ...@@ -3238,7 +3237,9 @@ build_library_fn_1 (tree name, enum tree_code operator_code, tree type)
tree tree
build_library_fn (tree name, tree type) 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. */ /* Returns the _DECL for a library function with C++ linkage. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment