* [PATCH] Fix PR46068
@ 2010-11-04 15:18 Richard Guenther
0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2010-11-04 15:18 UTC (permalink / raw)
To: gcc-patches
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 ();
+ }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-04 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-04 15:18 [PATCH] Fix PR46068 Richard Guenther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).