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]
Other format: [Raw text]

[PATCH] Fix PR46068


This fixes PR46068, a left-over debugging gcc_unreachable.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2010-11-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/46068
	* ipa-split.c (consider_split): Remove gcc_unreachable.

	* gcc.dg/torture/pr46068.c: New testcase.

Index: gcc/ipa-split.c
===================================================================
*** gcc/ipa-split.c	(revision 166304)
--- gcc/ipa-split.c	(working copy)
*************** consider_split (struct split_point *curr
*** 310,316 ****
      {
        if (dump_file && (dump_flags & TDF_DETAILS))
  	fprintf (dump_file, "  Refused: header empty\n");
-       gcc_unreachable ();
        return;
      }
  
--- 310,315 ----
Index: gcc/testsuite/gcc.dg/torture/pr46068.c
===================================================================
*** gcc/testsuite/gcc.dg/torture/pr46068.c	(revision 0)
--- gcc/testsuite/gcc.dg/torture/pr46068.c	(revision 0)
***************
*** 0 ****
--- 1,16 ----
+ /* { dg-do compile } */
+ 
+ void
+ foo ()
+ {
+   asm goto (""::::l1);
+   __builtin_unreachable ();
+ l1:;
+ }
+ 
+ void
+ bar ()
+ {
+   foo ();
+   foo ();
+ }


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