OSDN Git Service

2011-12-08 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2011 13:23:54 +0000 (13:23 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2011 13:23:54 +0000 (13:23 +0000)
PR tree-optimization/49772
* tree-inline.c (optimize_inline_calls): Remove bail out
on errors.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182110 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-inline.c

index 5b4eab5..b883173 100644 (file)
@@ -1,5 +1,11 @@
 2011-12-08  Richard Guenther  <rguenther@suse.de>
 
+       PR tree-optimization/49772
+       * tree-inline.c (optimize_inline_calls): Remove bail out
+       on errors.
+
+2011-12-08  Richard Guenther  <rguenther@suse.de>
+
        PR lto/50747
        * lto-streamer-out.c (produce_symtab): Remove asserts.
 
index 2260403..13ad815 100644 (file)
@@ -4216,12 +4216,6 @@ optimize_inline_calls (tree fn)
   struct gimplify_ctx gctx;
   bool inlined_p = false;
 
-  /* There is no point in performing inlining if errors have already
-     occurred -- and we might crash if we try to inline invalid
-     code.  */
-  if (seen_error ())
-    return 0;
-
   /* Clear out ID.  */
   memset (&id, 0, sizeof (id));