{"id":812715,"url":"http://patchwork.ozlabs.org/api/1.2/patches/812715/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/87dfa677-e748-ff53-28c8-ef24c9f4f553@suse.cz/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/1.2/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<87dfa677-e748-ff53-28c8-ef24c9f4f553@suse.cz>","list_archive_url":null,"date":"2017-09-12T07:43:40","name":"Fix emission of exception dispatch (PR middle-end/82154).","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"26118fbde4a20543ab3f1b27afa4940fc244c92a","submitter":{"id":62010,"url":"http://patchwork.ozlabs.org/api/1.2/people/62010/?format=json","name":"Martin Liška","email":"mliska@suse.cz"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/87dfa677-e748-ff53-28c8-ef24c9f4f553@suse.cz/mbox/","series":[{"id":2627,"url":"http://patchwork.ozlabs.org/api/1.2/series/2627/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=2627","date":"2017-09-12T07:43:40","name":"Fix emission of exception dispatch (PR middle-end/82154).","version":1,"mbox":"http://patchwork.ozlabs.org/series/2627/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/812715/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/812715/checks/","tags":{},"related":[],"headers":{"Return-Path":"<gcc-patches-return-461888-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461888-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"qG7yT9ku\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrxdy1SsHz9s7B\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 17:44:52 +1000 (AEST)","(qmail 90731 invoked by alias); 12 Sep 2017 07:44:15 -0000","(qmail 77531 invoked by uid 89); 12 Sep 2017 07:43:44 -0000","from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tTue, 12 Sep 2017 07:43:43 +0000","from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254])\tby\n\tmx1.suse.de (Postfix) with ESMTP id 5021FABB0\tfor\n\t<gcc-patches@gcc.gnu.org>; Tue, 12 Sep 2017 07:43:41 +0000 (UTC)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:subject:to:message-id:date:mime-version:content-type; q=dns; s=\n\tdefault; b=vfjjpwfRZVjPlvfVGg13pfUKB+rYbZardC0xJeDCLpRhaoyeAwg8z\n\tH/Yfi9xNpvhNONQ+IGFkRrd19hex1v0VM+nERnbs60mNssR+qzFyJN+keD+4DVaS\n\tgBxSnNwurlrPCumka/I+h3E/oJ+Vo5Vijkhmuf/i0+M5tBXh0+rH1o=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:subject:to:message-id:date:mime-version:content-type; s=\n\tdefault; bh=MQjpH6Zcl0uNj8IlfLBwYceyJoQ=; b=qG7yT9kuGzu1Pwggahfk\n\t7x01S7+7vi0ZQ5ysrww9xz7lo9w8SjJA1tgGGmNjppj6MffxXlKWzfhKzAsXGYTl\n\tp0q020EMOJz21AxYn380zJIbxtpo9yasKdBpRNtJ0eHycVR9aySwL4+eHR79FGR1\n\tv28Fc7PqAC5touvN6vjsquI=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1908,\n\tLowest","X-HELO":"mx1.suse.de","From":"=?utf-8?q?Martin_Li=C5=A1ka?= <mliska@suse.cz>","Subject":"[PATCH] Fix emission of exception dispatch (PR middle-end/82154).","To":"gcc-patches@gcc.gnu.org","Message-ID":"<87dfa677-e748-ff53-28c8-ef24c9f4f553@suse.cz>","Date":"Tue, 12 Sep 2017 09:43:40 +0200","User-Agent":"Mozilla/5.0 (X11; Linux x86_64;\n\trv:52.0) Gecko/20100101 Thunderbird/52.3.0","MIME-Version":"1.0","Content-Type":"multipart/mixed;\n\tboundary=\"------------177C264AB8A8BF5F987C0DA2\"","X-IsSubscribed":"yes"},"content":"Hello.\n\nIn transition to simple_case_node, I forgot to initialize m_high to m_low if a case\ndoes not have CASE_HIGH.\n\nPatch can bootstrap on ppc64le-redhat-linux and survives regression tests.\n\nReady to be installed?\nMartin\n\ngcc/ChangeLog:\n\n2017-09-11  Martin Liska  <mliska@suse.cz>\n\n\tPR middle-end/82154\n\t* stmt.c (struct simple_case_node): Assign low to high when\n\thigh is equal to null.\n\ngcc/testsuite/ChangeLog:\n\n2017-09-11  Martin Liska  <mliska@suse.cz>\n\n\tPR middle-end/82154\n\t* g++.dg/torture/pr82154.C: New test.\n---\n gcc/stmt.c                             |  3 +-\n gcc/testsuite/g++.dg/torture/pr82154.C | 50 ++++++++++++++++++++++++++++++++++\n 2 files changed, 52 insertions(+), 1 deletion(-)\n create mode 100644 gcc/testsuite/g++.dg/torture/pr82154.C","diff":"diff --git a/gcc/stmt.c b/gcc/stmt.c\nindex 39d29ff3da9..9b33657372f 100644\n--- a/gcc/stmt.c\n+++ b/gcc/stmt.c\n@@ -71,7 +71,8 @@ along with GCC; see the file COPYING3.  If not see\n struct simple_case_node\n {\n   simple_case_node (tree low, tree high, tree code_label):\n-    m_low (low), m_high (high), m_code_label (code_label)\n+    m_low (low), m_high (high != NULL_TREE ? high : low),\n+    m_code_label (code_label)\n   {}\n \n   /* Lowest index value for this label.  */\ndiff --git a/gcc/testsuite/g++.dg/torture/pr82154.C b/gcc/testsuite/g++.dg/torture/pr82154.C\nnew file mode 100644\nindex 00000000000..f4e1c3ea139\n--- /dev/null\n+++ b/gcc/testsuite/g++.dg/torture/pr82154.C\n@@ -0,0 +1,50 @@\n+// { dg-do compile }\n+// { dg-additional-options \"-Wno-deprecated\" }\n+\n+namespace a {\n+int b;\n+class c\n+{\n+};\n+}\n+class g\n+{\n+public:\n+  g ();\n+};\n+using a::b;\n+class d\n+{\n+public:\n+  d ();\n+  void e ();\n+};\n+class f\n+{\n+  d\n+  i ()\n+  {\n+    static d j;\n+  }\n+  int *k () throw (a::c);\n+};\n+\n+\n+int *f::k () throw (a::c)\n+{\n+  static g h;\n+  i ();\n+  int l = 2;\n+  while (l)\n+    {\n+      --l;\n+      try\n+\t{\n+\t  operator new (b);\n+\t}\n+      catch (a::c)\n+\t{\n+\t}\n+    }\n+  i ().e ();\n+}\n\n","prefixes":[]}