This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Small PATCH to builtins and EH
- To: gcc-patches at gcc dot gnu dot org
- Subject: Small PATCH to builtins and EH
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 18 Jun 2001 17:00:17 +0100
We weren't annotating the internal declarations of memcpy/memset with
TREE_NOTHROW, so they could end up generating EH regions.
Tested i686-pc-linux-gnu, applied to trunk. Mark, is this OK for 3.0.1 as
well?
*** expr.c.~1~ Mon Jun 18 13:23:43 2001
--- expr.c Mon Jun 18 13:21:33 2001
*************** emit_block_move (x, y, size, align)
*** 1773,1778 ****
--- 1773,1779 ----
DECL_EXTERNAL (fn) = 1;
TREE_PUBLIC (fn) = 1;
DECL_ARTIFICIAL (fn) = 1;
+ TREE_NOTHROW (fn) = 1;
make_decl_rtl (fn, NULL);
assemble_external (fn);
}
*************** clear_storage (object, size, align)
*** 2677,2682 ****
--- 2678,2684 ----
DECL_EXTERNAL (fn) = 1;
TREE_PUBLIC (fn) = 1;
DECL_ARTIFICIAL (fn) = 1;
+ TREE_NOTHROW (fn) = 1;
make_decl_rtl (fn, NULL);
assemble_external (fn);
}