summaryrefslogtreecommitdiff
path: root/cross/ppc-morphos-gcc-11/patches/patch-gcc_c_c-typeck.c
blob: 2a362b00cb930913378807642dce1d3da27c3023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-gcc_c_c-typeck.c,v 1.1 2022/10/17 13:48:28 js Exp $

https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=222dbebefbbc07f78e51d82ba605988ef57e5fc9

--- gcc/c/c-typeck.c.orig	2021-07-28 06:55:06.988283174 +0000
+++ gcc/c/c-typeck.c
@@ -11216,7 +11216,8 @@ c_finish_bc_stmt (location_t loc, tree l
 
   if (skip)
     return NULL_TREE;
-  else if (in_statement & IN_OBJC_FOREACH)
+  else if ((in_statement & IN_OBJC_FOREACH)
+          && !(is_break && (in_statement & IN_SWITCH_STMT)))
     {
       /* The foreach expander produces low-level code using gotos instead
 	 of a structured loop construct.  */