mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 23:31:21 +08:00
jump.c (cleanup_barriers): Handle case of no insns before a barrier.
2009-06-17 David Daney <ddaney@caviumnetworks.com> * jump.c (cleanup_barriers): Handle case of no insns before a barrier. 2009-06-17 David Daney <ddaney@caviumnetworks.com> * gcc.dg/builtin-unreachable-3.c: New test. From-SVN: r148624
This commit is contained in:
parent
f9c3538320
commit
2cb0a60da1
@ -1,3 +1,8 @@
|
||||
2009-06-17 David Daney <ddaney@caviumnetworks.com>
|
||||
|
||||
* jump.c (cleanup_barriers): Handle case of no insns before a
|
||||
barrier.
|
||||
|
||||
2009-06-17 David Edelsohn <edelsohn@gnu.org>
|
||||
|
||||
* config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
|
||||
|
@ -113,6 +113,8 @@ cleanup_barriers (void)
|
||||
if (BARRIER_P (insn))
|
||||
{
|
||||
prev = prev_nonnote_insn (insn);
|
||||
if (!prev)
|
||||
continue;
|
||||
if (BARRIER_P (prev))
|
||||
delete_insn (insn);
|
||||
else if (prev != PREV_INSN (insn))
|
||||
|
@ -1,3 +1,7 @@
|
||||
2009-06-17 David Daney <ddaney@caviumnetworks.com>
|
||||
|
||||
* gcc.dg/builtin-unreachable-3.c: New test.
|
||||
|
||||
2009-06-17 David Daney <ddaney@caviumnetworks.com>
|
||||
|
||||
* gcc.target/i386/builtin-unreachable.c: New test.
|
||||
|
9
gcc/testsuite/gcc.dg/builtin-unreachable-3.c
Normal file
9
gcc/testsuite/gcc.dg/builtin-unreachable-3.c
Normal file
@ -0,0 +1,9 @@
|
||||
/* Check that a function containing only __builtin_unreachable()
|
||||
doesn't ICE. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2" } */
|
||||
const char *
|
||||
f (void)
|
||||
{
|
||||
__builtin_unreachable ();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user