diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/cp-gimplify.c | 10 |
2 files changed, 5 insertions, 10 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cd30904..eb870c7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2011-09-26 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/26747 + * cp-gimplify.c (get_bc_label): Remove obsolete diagnostics. + 2011-09-25 Jason Merrill <jason@redhat.com> * parser.c (inject_this_parameter): Split out from diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index 6aeae75..af45f59 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -86,16 +86,6 @@ get_bc_label (enum bc_t bc) { tree label = bc_label[bc]; - if (label == NULL_TREE) - { - if (bc == bc_break) - error ("break statement not within loop or switch"); - else - error ("continue statement not within loop or switch"); - - return NULL_TREE; - } - /* Mark the label used for finish_bc_block. */ TREE_USED (label) = 1; return label; |
