This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Small PATCH to builtins and EH


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);
  	    }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]