CINXE.COM
Bug #1862342 “[Ubuntu 20.04] GCC generates wrong code for except...” : Bugs : gcc-9 package : Ubuntu
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <base href="https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1862342/+index" /> <meta charset="UTF-8" /> <title>Bug #1862342 “[Ubuntu 20.04] GCC generates wrong code for except...” : Bugs : gcc-9 package : Ubuntu</title> <link rel="apple-touch-icon" sizes="180x180" href="/@@/apple-touch-icon.png?v=2022" /> <link rel="icon" type="image/png" sizes="32x32" href="/@@/favicon-32x32.png?v=2022" /> <link rel="icon" type="image/png" sizes="16x16" href="/@@/favicon-16x16.png?v=2022" /> <link rel="manifest" href="/@@/site.webmanifest?v=2022" /> <link rel="mask-icon" href="/@@/safari-pinned-tab.svg?v=2022" color="#e9531f" /> <link rel="shortcut icon" href="/@@/favicon.ico?v=2022" /> <meta name="msapplication-TileColor" content="#da532c" /> <meta name="msapplication-config" content="/@@/browserconfig.xml?v=2022" /> <meta name="theme-color" content="#ffffff" /> <link rel="canonical" href="https://bugs.launchpad.net/bugs/1862342" /> <link rel="alternate" type="application/atom+xml" href="http://feeds.launchpad.net/bugs/1862342/bug.atom" title="Bug 1862342 Feed" /> <link type="text/css" rel="stylesheet" media="screen, print" href="/+icing/rev22ade00ab50b929fac63b8ee7252243aceda294a/combo.css" /> <meta name="description" content="---Problem description--- Wrong code might get generated if a local variable is set in the try block and read in the catch block. ---Steps to Reproduce--- Please pick up the patch from the following upstream GCC BZ: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93272 This fixes a latent register allocator problem present since introduction of LRA. Userspace tool common name: gcc Userspace rpm: gcc The userspace tool has the following bit modes: 64 Correct package lev..." /> <meta property="og:description" content="---Problem description--- Wrong code might get generated if a local variable is set in the try block and read in the catch block. ---Steps to Reproduce--- Please pick up the patch from the following upstream GCC BZ: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93272 This fixes a latent register allocator problem present since introduction of LRA. Userspace tool common name: gcc Userspace rpm: gcc The userspace tool has the following bit modes: 64 Correct package lev..." /> <meta property="og:title" content="Bug #1862342 “[Ubuntu 20.04] GCC generates wrong code for except...” : Bugs : gcc-9 package : Ubuntu" /> <meta property="og:type" content="website" /> <meta property="og:image" content="/@@/launchpad-og-image.png" /> <meta property="og:url" content="https://bugs.launchpad.net/bugs/1862342" /> <meta property="og:site_name" content="Launchpad" /> <script type="text/javascript"> var LP = { cache: {}, links: {} }; </script> <script type="text/javascript">var cookie_scope = '; Path=/; Secure; Domain=.launchpad.net';</script> <script type="text/javascript" src="/+combo/rev22ade00ab50b929fac63b8ee7252243aceda294a/?yui/yui/yui-min.js&lp/meta.js&yui/loader/loader-min.js"></script> <script type="text/javascript"> var raw = null; if (LP.devmode) { raw = 'raw'; } YUI.GlobalConfig = { combine: true, comboBase: '/+combo/rev22ade00ab50b929fac63b8ee7252243aceda294a/?', root: 'yui/', filter: raw, debug: false, fetchCSS: false, maxURLLength: 2000, groups: { lp: { combine: true, base: '/+combo/rev22ade00ab50b929fac63b8ee7252243aceda294a/?lp/', comboBase: '/+combo/rev22ade00ab50b929fac63b8ee7252243aceda294a/?', root: 'lp/', // comes from including lp/meta.js modules: LP_MODULES, fetchCSS: false } } }</script> <script type="text/javascript"> // we need this to create a single YUI instance all events and code // talks across. All instances of YUI().use should be based off of // LPJS instead. var LPJS = new YUI(); </script> <script id="base-layout-load-scripts" type="text/javascript"> //<![CDATA[ LPJS.use('base', 'node', 'console', 'event', 'oop', 'lp', 'lp.app.foldables','lp.app.sorttable', 'lp.app.inlinehelp', 'lp.app.links', 'lp.bugs.bugtask_index', 'lp.bugs.subscribers', 'lp.app.ellipsis', 'lp.code.branchmergeproposal.diff', 'lp.views.global', function(Y) { Y.on("domready", function () { var global_view = new Y.lp.views.Global(); global_view.render(); Y.lp.app.sorttable.SortTable.init(); Y.lp.app.inlinehelp.init_help(); Y.lp.activate_collapsibles(); Y.lp.app.foldables.activate(); Y.lp.app.links.check_valid_lp_links(); }); Y.on('lp:context:web_link:changed', function(e) { window.location = e.new_value; }); }); //]]> </script> <script id="base-helper-functions" type="text/javascript"> //<![CDATA[ // This code is pulled from lp.js that needs to be available on every // request. Pulling here to get it outside the scope of the YUI block. function setFocusByName(name) { // Focus the first element matching the given name which can be focused. var nodes = document.getElementsByName(name); var i, node; for (i = 0; i < nodes.length; i++) { node = nodes[i]; if (node.focus) { try { // Trying to focus a hidden element throws an error in IE8. if (node.offsetHeight !== 0) { node.focus(); } } catch (e) { LPJS.use('console', function(Y) { Y.log('In setFocusByName(<' + node.tagName + ' type=' + node.type + '>): ' + e); }); } break; } } } function selectWidget(widget_name, event) { if (event && (event.keyCode === 9 || event.keyCode === 13)) { // Avoid firing if user is tabbing through or simply pressing // enter to submit the form. return; } document.getElementById(widget_name).checked = true; } //]]> </script> <script type="text/javascript" id="available-official-tags-js">var available_official_tags = ["a11y", "appstream", "bionic", "bisect-done", "bitesize", "block-proposed", "block-proposed-focal", "block-proposed-jammy", "block-proposed-noble", "block-proposed-oracular", "cherry-pick", "community-security", "desktop-file", "dist-upgrade", "fixed-upstream", "focal", "ftbfs", "hw-specific", "jammy", "kernel-bug", "manpage", "metabug", "multiarch", "multigpu", "multimonitor", "needs-bisect", "needs-design", "needs-packaging", "needs-reassignment", "noble", "nvidia", "oracular", "package-conflict", "packaging", "patch", "patch-accepted-debian", "patch-accepted-upstream", "patch-forwarded-debian", "patch-forwarded-upstream", "patch-needswork", "patch-rejected", "patch-rejected-debian", "patch-rejected-upstream", "performing-bisect", "plucky", "qt4-removal", "regression-proposed", "regression-release", "regression-update", "reverse-proxy-bugzilla", "s390x", "string-fix", "suspend-resume", "systemd-boot", "testcase", "unmetdeps", "update-excuse", "upgrade-software-version", "verification-done-bionic", "verification-done-focal", "verification-done-jammy", "verification-done-noble", "verification-done-oracular", "verification-failed-bionic", "verification-failed-jammy", "verification-needed-bionic", "verification-needed-focal", "verification-needed-jammy", "verification-needed-noble", "verification-needed-oracular", "wayland"];</script> <script type="text/javascript"> LPJS.use('base', 'node', 'oop', 'event', 'lp.bugs.bugtask_index', 'lp.bugs.subscribers', 'lp.code.branchmergeproposal.diff', 'lp.app.comment', 'lp.services.messages.edit', function(Y) { Y.on('domready', function() { Y.lp.code.branchmergeproposal.diff.connect_diff_links(); Y.lp.bugs.bugtask_index.setup_bugtask_index(); Y.lp.bugs.bugtask_index.setup_bugtask_table(); LP.cache.comment_context = LP.cache.bug; var cl = new Y.lp.app.comment.CommentList(); cl.render(); var sl = new Y.lp.bugs.subscribers.createBugSubscribersLoader({ container_box: '#other-bug-subscribers', subscribers_details_view: '/+bug-portlet-subscribers-details', subscribe_someone_else_link: '.menu-link-addsubscriber' }, window); Y.lp.services.messages.edit.setup(); }); }); </script> <style type="text/css"> /* Align the 'add comment' link to the right of the comment box. */ #add-comment-form textarea { width: 100%; } #add-comment-form { max-width: 60em; padding-bottom: 4em; } #add-comment-form .actions {float: right;} .buglink-summary dd { font-size: 10px; } a#privacy-link:link:hover, a#privacy-link:visited:hover {text-decoration:none;} </style> <style type="text/css"> .yui3-overlay .value label { /* It normally makes sense for form labels to be bold, but since this form consists only of radio buttons, there's nothing but labels so we just get wall-to-wall bold. */ font-weight: normal !important; } </style> </head> <body id="document" itemscope="" itemtype="http://schema.org/WebPage" class="tab-bugs main_side public yui3-skin-sam"> <div class="yui-d0"> <div id="locationbar" class="login-logout"> <div id="logincontrol"><a href="https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1862342/+login">Log in / Register</a></div> </div><!--id="locationbar"--> <div id="watermark" class="watermark-apps-portlet"> <div> <a href="https://launchpad.net/ubuntu"><img alt="" width="64" height="64" src="https://launchpadlibrarian.net/606381979/CoF%2064px.png" /></a> </div> <div class="wide"> <h2 id="watermark-heading"><a href="https://launchpad.net/ubuntu">Ubuntu</a><br /><a href="https://launchpad.net/ubuntu/+source/gcc-9">gcc-9 package</a></h2> </div> <!-- Application Menu --> <ul class="facetmenu"> <li class="overview"><a href="https://launchpad.net/ubuntu/+source/gcc-9">Overview</a></li> <li class="branches"><a href="https://code.launchpad.net/ubuntu/+source/gcc-9">Code</a></li> <li class="bugs active"><a href="https://bugs.launchpad.net/ubuntu/+source/gcc-9">Bugs</a></li> <li class="specifications disabled-tab"><span>Blueprints</span></li> <li class="translations"><a href="https://translations.launchpad.net/ubuntu/+source/gcc-9">Translations</a></li> <li class="answers"><a href="https://answers.launchpad.net/ubuntu/+source/gcc-9">Answers</a></li> </ul> </div> <div class="yui-t4"> <div id="maincontent" class="yui-main"> <div class="yui-b" dir="ltr"> <div class="context-publication"> <h1 id="edit-title"> <span class="yui3-editable_text-text ellipsis" style="max-width: 95%;"> [Ubuntu 20.04] GCC generates wrong code for exception handling </span> </h1> <div id="registration" class="registering"> Bug #1862342 reported by <a href="https://launchpad.net/~bugproxy" class="sprite person">bugproxy</a> <time title="2020-02-07 11:59:32 UTC" datetime="2020-02-07T11:59:32.625136+00:00">on 2020-02-07</time> </div> </div> <div id="request-notifications"> </div> <div> <div id="bug-is-duplicate"> </div> <div style="float: right;"> <span><a href="/+help-bugs/bug-heat.html" target="help" class="sprite flame">8</a></span> </div> <div class="actions"> <span id="affectsmetoo" style="display: inline">This bug affects 1 person</span> </div> <table id="affected-software" class="listing"> <thead> <tr> <th colspan="2">Affects</th> <th>Status</th> <th>Importance</th> <th>Assigned to</th> <th>Milestone</th> </tr> </thead> <tbody> <tr id="tasksummary2570062"> <td> </td> <td> <span id="bugtarget-picker-tasksummary2570062"> <span class="yui3-activator-data-box"> <a class="sprite product" href="https://bugs.launchpad.net/ubuntu-z-systems">Ubuntu on IBM z Systems</a> </span> <div class="yui3-activator-message-box yui3-activator-hidden"></div> </span> </td> <td style="width: 20%; vertical-align: middle"> <div class="status-content" style="width: 100%; float: left"> <span style="float: left" class="value statusFIXRELEASED">Fix Released</span> </div> </td> <td style="width: 15em; vertical-align: middle"> <div class="importance-content" style="width: 100%; float: left"> <span style="float: left" class="value importanceHIGH">High</span> </div> </td> <td style="width:20%; margin: 0; padding: 0; vertical-align: middle; padding-left: 0.5em"> <span id="assignee-picker-tasksummary2570062"> <span class="yui3-activator-data-box"> <a class="sprite team" href="https://launchpad.net/~canonical-foundations">Canonical Foundations Team</a> </span> <div class="yui3-activator-message-box yui3-activator-hidden"></div> </span> </td> <td style="width: 20%; vertical-align: middle"> <div class="milestone-content" style="width: 100%; float: left"> <a class="value" href=""></a> </div> </td> </tr> <tr class="highlight" id="tasksummary2570051"> <td> </td> <td> <span id="bugtarget-picker-tasksummary2570051"> <span class="yui3-activator-data-box"> <a class="sprite package-source" href="https://bugs.launchpad.net/ubuntu/+source/gcc-9" title="Latest release: 9.5.0-6ubuntu2, uploaded to universe on 2024-03-31 01:04:25.413327+00:00 by Steve Langasek (vorlon), maintained by Ubuntu Developers (ubuntu-devel-discuss-lists)">gcc-9 (Ubuntu)</a> </span> <div class="yui3-activator-message-box yui3-activator-hidden"></div> </span> </td> <td style="width: 20%; vertical-align: middle"> <div class="status-content" style="width: 100%; float: left"> <span style="float: left" class="value statusFIXRELEASED">Fix Released</span> </div> </td> <td style="width: 15em; vertical-align: middle"> <div class="importance-content" style="width: 100%; float: left"> <span style="float: left" class="value importanceUNDECIDED">Undecided</span> </div> </td> <td style="width:20%; margin: 0; padding: 0; vertical-align: middle; padding-left: 0.5em"> <span id="assignee-picker-tasksummary2570051"> <span class="yui3-activator-data-box"> <a class="sprite team private" href="https://launchpad.net/~skipper-screen-team">Skipper Bug Screeners</a> </span> <div class="yui3-activator-message-box yui3-activator-hidden"></div> </span> </td> <td style="width: 20%; vertical-align: middle"> <div class="milestone-content" style="width: 100%; float: left"> <a class="value" href=""></a> </div> </td> </tr> </tbody> </table> <div id="maincontentsub"> <div class="top-portlet"> <div itemprop="mainContentOfPage" class="report"> <div> <div class="lazr-multiline-edit" id="edit-description"> <div class="clearfix"> <h3>Bug Description</h3> </div> <div class="yui3-editable_text-text"><p>---Problem description---<br /> Wrong code might get generated if a local variable is set in the try block and read in the catch block.</p> <p>---Steps to Reproduce---<br /> Please pick up the patch from the following upstream GCC BZ:<br /> <a rel="nofollow" href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93272">https:/<wbr />/gcc.gnu.<wbr />org/bugzilla/<wbr />show_bug.<wbr />cgi?id=<wbr />93272</a></p> <p>This fixes a latent register allocator problem present since introduction of LRA.</p> <p>Userspace tool common name: gcc</p> <p>Userspace rpm: gcc</p> <p>The userspace tool has the following bit modes: 64</p> <p>Correct package level has to be select within LP!</p></div> </div> </div> <div style="margin:-10px 0 20px 5px" class="clearfix"> </div> <div id="bug-tags"> <span id="tags-heading"> Tags: </span> <span id="tag-list"> <a class="unofficial-tag" href="/ubuntu/+source/gcc-9/+bugs?field.tag=architecture-s39064">architecture-s39064</a> <a class="unofficial-tag" href="/ubuntu/+source/gcc-9/+bugs?field.tag=bugnameltc-183751">bugnameltc-183751</a> <a class="unofficial-tag" href="/ubuntu/+source/gcc-9/+bugs?field.tag=severity-high">severity-high</a> <a class="unofficial-tag" href="/ubuntu/+source/gcc-9/+bugs?field.tag=targetmilestone-inin2004">targetmilestone-inin2004</a> </span> </div> <script type="text/javascript"> LPJS.use('event', 'node', 'lp.bugs.tags_entry', function(Y) { Y.on('domready', function(e) { Y.lp.bugs.tags_entry.setup_tag_entry( available_official_tags); }, window); }); </script> <div class="clearfix"></div> </div> <div id="branches-and-cves"> <div id="bug-branches-container" style="float: left"> </div><!-- bug-branch-container --> <div class="clearfix"></div> </div> <!-- branches and CVEs --> </div> <div> <div class="boardComment"> <div class="boardCommentDetails"> <a href="https://launchpad.net/~bugproxy" class="sprite person">bugproxy (bugproxy)</a> <time title="2020-02-07 11:59:35 UTC" datetime="2020-02-07T11:59:35.240900+00:00">on 2020-02-07</time> </div> <div class="boardCommentActivity"> <table class="bug-activity"> <tr> <td style="text-align: right;"> <b>tags</b>: </td> <td> added: architecture-s39064 bugnameltc-183751 severity-high targetmilestone-inin--- </td> </tr> <tr> <td colspan="2">Changed in ubuntu: </td> </tr> <tr> <td style="text-align: right;"> <b>assignee</b>: </td> <td> nobody → Skipper Bug Screeners (skipper-screen-team) </td> </tr> <tr> <td style="text-align: right;"> <b>affects</b>: </td> <td> ubuntu → linux (Ubuntu) </td> </tr> </table> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/ubuntu/+source/gcc-9/+bug/1862342/comments/1" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~fheimes" class="sprite person">Frank Heimes (fheimes)</a> wrote <time itemprop="commentTime" datetime="2020-02-07T13:02:03.121457+00:00" title="2020-02-07 13:02:03 UTC">on 2020-02-07</time><span class="editable-message-last-edit-date">: </span> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/ubuntu/+source/gcc-9/+bug/1862342/comments/1"> #1</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>Since the bug name says [20.04] I assume it has an impact on gcc-9, which is the default gcc in 20.04. Is that right ? And does it affect other gcc version, too ?</p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">Since the bug name says [20.04] I assume it has an impact on gcc-9, which is the default gcc in 20.04. Is that right ? And does it affect other gcc version, too ?</textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> <div class="boardCommentActivity"> <table class="bug-activity"> <tr> <td style="text-align: right;"> <b>affects</b>: </td> <td> linux (Ubuntu) → gcc-9 (Ubuntu) </td> </tr> <tr> <td colspan="2">Changed in ubuntu-z-systems: </td> </tr> <tr> <td style="text-align: right;"> <b>status</b>: </td> <td> New → Triaged </td> </tr> <tr> <td style="text-align: right;"> <b>importance</b>: </td> <td> Undecided → High </td> </tr> <tr> <td style="text-align: right;"> <b>assignee</b>: </td> <td> nobody → Canonical Foundations Team (canonical-foundations) </td> </tr> </table> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/ubuntu/+source/gcc-9/+bug/1862342/comments/2" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~doko" class="sprite person">Matthias Klose (doko)</a> wrote <time itemprop="commentTime" datetime="2020-02-08T10:33:31.827371+00:00" title="2020-02-08 10:33:31 UTC">on 2020-02-08</time><span class="editable-message-last-edit-date">: </span> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/ubuntu/+source/gcc-9/+bug/1862342/comments/2"> #2</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>this the kind of patch I'd like to see backported upstream first. Anybody who could help with that?</p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">this the kind of patch I'd like to see backported upstream first. Anybody who could help with that? </textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> <div class="boardCommentActivity"> <table class="bug-activity"> <tr> <td colspan="2">Changed in gcc-9 (Ubuntu): </td> </tr> <tr> <td style="text-align: right;"> <b>status</b>: </td> <td> New → Incomplete </td> </tr> </table> </div> </div> <div class="boardComment"> <div class="boardCommentDetails"> <a href="https://launchpad.net/~bugproxy" class="sprite person">bugproxy (bugproxy)</a> <time title="2020-02-11 14:29:37 UTC" datetime="2020-02-11T14:29:37.572724+00:00">on 2020-02-11</time> </div> <div class="boardCommentActivity"> <table class="bug-activity"> <tr> <td style="text-align: right;"> <b>tags</b>: </td> <td> added: targetmilestone-inin2004<br />removed: targetmilestone-inin--- </td> </tr> </table> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/ubuntu/+source/gcc-9/+bug/1862342/comments/3" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~bugproxy" class="sprite person">bugproxy (bugproxy)</a> wrote <time itemprop="commentTime" datetime="2020-02-12T08:19:28.034873+00:00" title="2020-02-12 08:19:28 UTC">on 2020-02-12</time><span class="editable-message-last-edit-date">: </span> <a href="/ubuntu/+source/gcc-9/+bug/1862342/comments/3"> <strong>Comment bridged from LTC Bugzilla</strong> </a> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/ubuntu/+source/gcc-9/+bug/1862342/comments/3"> #3</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>------- Comment From <email address hidden> 2020-02-12 03:08 EDT-------<br /> The patch applies and works also on older versions. I've debugged the original problem on GCC 4.8 and the patch works there as well. I've requested backports to be applied to GCC 8 and 9 in the GCC upstream bugzilla now. Usually the global reviewers give such changes some time on trunk before doing the backports.</p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">------- Comment From Andreas.Krebbel@de.ibm.com 2020-02-12 03:08 EDT------- The patch applies and works also on older versions. I've debugged the original problem on GCC 4.8 and the patch works there as well. I've requested backports to be applied to GCC 8 and 9 in the GCC upstream bugzilla now. Usually the global reviewers give such changes some time on trunk before doing the backports.</textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/ubuntu/+source/gcc-9/+bug/1862342/comments/4" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~janitor" class="sprite person-inactive">Launchpad Janitor (janitor)</a> wrote <time itemprop="commentTime" datetime="2020-02-26T14:49:07.602143+00:00" title="2020-02-26 14:49:07 UTC">on 2020-02-26</time><span class="editable-message-last-edit-date">: </span> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/ubuntu/+source/gcc-9/+bug/1862342/comments/4"> #4</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>This bug was fixed in the package gcc-9 - 9.2.1-30ubuntu1</p> <p>---------------<br /> gcc-9 (9.2.1-30ubuntu1) focal; urgency=medium</p> <p> * Merge with Debian; remaining changes:<br /> - Build from upstream sources.<br /> - Disable the LTO build on arm64, armhf for now, takes 24+ hours ...</p> <p>gcc-9 (9.2.1-30) unstable; urgency=medium</p> <p> * Update to git 20200224 from the gcc-9 branch.<br /> - Fix PR target/93658 (PPC), PR target/93568 (PPC), PR target/93828 (x86),<br /> PR target/93656 (x86).<br /> * Don't create doc directories for -dbg packages when not building those.<br /> * Fix PR rtl-optimizatio<wbr />n/93272, taken from the trunk. LP: <a href="/bugs/1862342" class="bug-link">#1862342</a>.</p> <p> -- Matthias Klose <email address hidden> Mon, 24 Feb 2020 20:14:24 +0100</p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">This bug was fixed in the package gcc-9 - 9.2.1-30ubuntu1 --------------- gcc-9 (9.2.1-30ubuntu1) focal; urgency=medium * Merge with Debian; remaining changes: - Build from upstream sources. - Disable the LTO build on arm64, armhf for now, takes 24+ hours ... gcc-9 (9.2.1-30) unstable; urgency=medium * Update to git 20200224 from the gcc-9 branch. - Fix PR target/93658 (PPC), PR target/93568 (PPC), PR target/93828 (x86), PR target/93656 (x86). * Don't create doc directories for -dbg packages when not building those. * Fix PR rtl-optimization/93272, taken from the trunk. LP: #1862342. -- Matthias Klose <doko@ubuntu.com> Mon, 24 Feb 2020 20:14:24 +0100</textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> <div class="boardCommentActivity"> <table class="bug-activity"> <tr> <td colspan="2">Changed in gcc-9 (Ubuntu): </td> </tr> <tr> <td style="text-align: right;"> <b>status</b>: </td> <td> Incomplete → Fix Released </td> </tr> </table> </div> </div> <div class="boardComment"> <div class="boardCommentDetails"> <a href="https://launchpad.net/~fheimes" class="sprite person">Frank Heimes (fheimes)</a> <time title="2020-02-26 14:53:33 UTC" datetime="2020-02-26T14:53:33.712440+00:00">on 2020-02-26</time> </div> <div class="boardCommentActivity"> <table class="bug-activity"> <tr> <td colspan="2">Changed in ubuntu-z-systems: </td> </tr> <tr> <td style="text-align: right;"> <b>status</b>: </td> <td> Triaged → Fix Released </td> </tr> </table> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/ubuntu/+source/gcc-9/+bug/1862342/comments/5" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~bugproxy" class="sprite person">bugproxy (bugproxy)</a> wrote <time itemprop="commentTime" datetime="2020-02-26T15:09:45.366588+00:00" title="2020-02-26 15:09:45 UTC">on 2020-02-26</time><span class="editable-message-last-edit-date">: </span> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/ubuntu/+source/gcc-9/+bug/1862342/comments/5"> #5</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>------- Comment From <email address hidden> 2020-02-26 10:02 EDT-------<br /> IBM Bugzilla status -> closed, Fix Released with focal</p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">------- Comment From heinz-werner_seeck@de.ibm.com 2020-02-26 10:02 EDT------- IBM Bugzilla status -> closed, Fix Released with focal</textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> </div> <div style="float: right;"> <a class="menu-link-activitylog" href="https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1862342/+activity">See full activity log</a> </div> <div class="clearfix"></div> <div align="center" id="add-comment-login-first"> To post a comment you must <a href="+login?comments=all">log in</a>. </div> </div><!-- class="top-portlet" --> </div><!--- id="maincontentsub"--> <div> <div id="duplicate-form-container"></div> <div id="privacy-form-container"></div> </div> </div> </div><!-- yui-b --> </div><!-- yui-main --> <div id="side-portlets" class="yui-b side"> <div id="involvement" class="portlet"> <ul class="involvement"> <li class="single"> <a class="sprite bugs" href="/ubuntu/+source/gcc-9/+filebug"> Report a bug </a> </li> </ul> </div> <div id="privacy" class="first portlet public"> <div id="privacy-text"> <span id="information-type-summary" class="sprite public">This report contains <strong id="information-type">Public</strong> information </span> <div id="information-type-description" style="padding-top: 5px">Everyone can see this information. </div> </div> </div> <div id="portlet-actions" class="portlet vertical"> <ul id="duplicate-actions"> </ul> <ul id="lock-status-actions"> </ul> </div> <div class="portlet vertical" id="portlet-subscription"> <div class="section"> <div id="current_user_subscription" class="False"> <span>You are</span> <a class="menu-link-subscription sprite modify edit" href="/ubuntu/+source/gcc-9/+bug/1862342/+subscribe"> not directly subscribed to this bug's notifications. </a> </div> <div id="sub-unsub-spinner">Subscribing...</div> <ul> <li><a class="menu-link-editsubscriptions sprite modify edit" href="https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1862342/+subscriptions" title="View and change your subscriptions to this bug">Edit bug mail</a></li> </ul> </div> <script type="text/javascript"> LPJS.use('io-base', 'node', 'lp.bugs.bugtask_index.portlets.subscription', function(Y) { Y.on('domready', function() { Y.lp.bugs.bugtask_index.portlets.subscription.initialize(); }); }); </script> </div> <div class="portlet vertical" id="portlet-subscribers"> <h2>Other bug subscribers</h2> <div> <div><a class="menu-link-addsubscriber sprite add" href="https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1862342/+addsubscriber" title="Launchpad will email that person whenever this bugs changes">Subscribe someone else</a></div> </div> <div id="other-bug-subscribers"></div> </div> <div class="portlet" id="portlet-watches"> <h2>Remote bug watches</h2> <ul> </ul> <p>Bug watches keep track of this bug in other bug trackers.</p> </div> </div><!-- yui-b side --> </div><!-- yui-t4 --> <div id="footer" class="footer"> <div class="lp-arcana"> <div class="lp-branding"> <a href="https://launchpad.net/"><img src="/@@/launchpad-footer-logo.svg" alt="Launchpad" width="65" height="18" /></a> • <a href="https://launchpad.net/+tour">Take the tour</a> • <a href="https://help.launchpad.net/">Read the guide</a> <form id="globalsearch" method="get" accept-charset="UTF-8" action="https://launchpad.net/+search"> <input type="search" id="search-text" name="field.text" /> <input type="image" src="/@@/search" style="vertical-align:5%" alt="Search Launchpad" /> </form> </div> </div> <div class="colophon"> © 2004 <a href="http://canonical.com/">Canonical Ltd.</a> • <a href="https://launchpad.net/legal">Terms of use</a> • <a href="https://www.ubuntu.com/legal/dataprivacy">Data privacy</a> • <a href="/feedback">Contact Launchpad Support</a> • <a href="http://blog.launchpad.net/">Blog</a> • <a href="https://canonical.com/careers">Careers</a> • <a href="https://ubuntu.social/@launchpadstatus">System status</a> <span id="lp-version"> • 22ade00 (<a href="https://dev.launchpad.net/">Get the code!</a>) </span> </div> </div> </div><!-- yui-d0--> <script id="json-cache-script">LP.cache = {"related_features": {}, "bug": {"self_link": "https://bugs.launchpad.net/api/devel/bugs/1862342", "web_link": "https://bugs.launchpad.net/bugs/1862342", "resource_type_link": "https://bugs.launchpad.net/api/devel/#bug", "id": 1862342, "private": false, "information_type": "Public", "name": null, "title": "[Ubuntu 20.04] GCC generates wrong code for exception handling", "description": "---Problem description---\r\nWrong code might get generated if a local variable is set in the try block and read in the catch block.\r\n \r\n---Steps to Reproduce---\r\nPlease pick up the patch from the following upstream GCC BZ:\r\nhttps://gcc.gnu.org/bugzilla/show_bug.cgi?id=93272\r\n\r\nThis fixes a latent register allocator problem present since introduction of LRA.\r\n \r\nUserspace tool common name: gcc \r\n\r\nUserspace rpm: gcc \r\n \r\nThe userspace tool has the following bit modes: 64 \r\n\r\nCorrect package level has to be select within LP!", "owner_link": "https://bugs.launchpad.net/api/devel/~bugproxy", "bug_tasks_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/bug_tasks", "duplicate_of_link": null, "date_created": "2020-02-07T11:59:32.625136+00:00", "activity_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/activity", "subscriptions_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/subscriptions", "date_last_updated": "2020-02-26T15:09:45.761395+00:00", "who_made_private_link": null, "date_made_private": null, "heat": 8, "bug_watches_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/bug_watches", "cves_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/cves", "vulnerabilities_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/vulnerabilities", "duplicates_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/duplicates", "attachments_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/attachments", "security_related": false, "latest_patch_uploaded": null, "tags": ["architecture-s39064", "bugnameltc-183751", "severity-high", "targetmilestone-inin2004"], "date_last_message": "2020-02-26T15:09:45.366588+00:00", "number_of_duplicates": 0, "message_count": 6, "users_affected_count": 1, "users_unaffected_count": 0, "users_affected_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/users_affected", "users_unaffected_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/users_unaffected", "users_affected_count_with_dupes": 1, "other_users_affected_count_with_dupes": 1, "users_affected_with_dupes_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/users_affected_with_dupes", "messages_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/messages", "lock_status": "Unlocked", "lock_reason": null, "linked_branches_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/linked_branches", "linked_merge_proposals_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1862342/linked_merge_proposals", "http_etag": "\"c1e4c4171befa700646674f69e92bfb9d2b184cf-4dcd776e82960719cdf134e167f9bc1c7da18bf7\""}, "subscribers_portlet_url_data": {"web_link": "https://bugs.launchpad.net/bugs/1862342", "self_link": "https://bugs.launchpad.net/api/devel/bugs/1862342"}, "total_comments_and_activity": 18, "initial_comment_batch_offset": 41, "first visible_recent_comment": -35, "bugtask_data": {"2570062": {"id": 2570062, "row_id": "tasksummary2570062", "form_row_id": "task2570062", "bugtask_path": "/ubuntu-z-systems/+bug/1862342", "prefix": "ubuntu-z-systems", "targetname": "Ubuntu on IBM z Systems", "bug_title": "[Ubuntu 20.04] GCC generates wrong code for exception handling", "assignee_value": "canonical-foundations", "assignee_is_team": true, "assignee_vocabulary": "AllUserTeamsParticipation", "assignee_vocabulary_filters": [], "hide_assignee_team_selection": true, "user_can_unassign": false, "user_can_delete": false, "delete_link": "https://bugs.launchpad.net/ubuntu-z-systems/+bug/1862342/+delete", "target_is_product": true, "status_widget_items": [{"name": "Fix Released", "value": "Fix Released", "description": "The fix was released.\n", "description_css_class": "choice-description", "style": "", "help": "", "disabled": false, "css_class": "statusFIXRELEASED"}], "status_value": "Fix Released", "importance_widget_items": "[]", "importance_value": "High", "milestone_widget_items": "[]", "milestone_value": null, "user_can_edit_assignee": false, "user_can_edit_milestone": false, "user_can_edit_status": false, "user_can_edit_importance": false}, "2570051": {"id": 2570051, "row_id": "tasksummary2570051", "form_row_id": "task2570051", "bugtask_path": "/ubuntu/+source/gcc-9/+bug/1862342", "prefix": "ubuntu_gcc-9", "targetname": "gcc-9 (Ubuntu)", "bug_title": "[Ubuntu 20.04] GCC generates wrong code for exception handling", "assignee_value": "skipper-screen-team", "assignee_is_team": true, "assignee_vocabulary": "AllUserTeamsParticipation", "assignee_vocabulary_filters": [], "hide_assignee_team_selection": true, "user_can_unassign": false, "user_can_delete": false, "delete_link": "https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1862342/+delete", "target_is_product": false, "status_widget_items": [{"name": "Fix Released", "value": "Fix Released", "description": "The fix was released.\n", "description_css_class": "choice-description", "style": "", "help": "", "disabled": false, "css_class": "statusFIXRELEASED"}], "status_value": "Fix Released", "importance_widget_items": "[]", "importance_value": "Undecided", "milestone_widget_items": "[]", "milestone_value": null, "user_can_edit_assignee": false, "user_can_edit_milestone": false, "user_can_edit_status": false, "user_can_edit_importance": false}}, "information_type_data": {"PUBLIC": {"value": "PUBLIC", "description": "Everyone can see this information.\n", "name": "Public", "order": 0, "is_private": false, "description_css_class": "choice-description"}, "PUBLICSECURITY": {"value": "PUBLICSECURITY", "description": "Everyone can see this security related information.\n", "name": "Public Security", "order": 1, "is_private": false, "description_css_class": "choice-description"}, "PRIVATESECURITY": {"value": "PRIVATESECURITY", "description": "Only the security group can see this information.\n ", "name": "Private Security", "order": 2, "is_private": true, "description_css_class": "choice-description"}, "USERDATA": {"value": "USERDATA", "description": "Only shared with users permitted to see private user information.\n", "name": "Private", "order": 3, "is_private": true, "description_css_class": "choice-description"}}, "bug_is_private": false, "context": {"self_link": "https://bugs.launchpad.net/api/devel/ubuntu/+source/gcc-9/+bug/1862342", "web_link": "https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1862342", "resource_type_link": "https://bugs.launchpad.net/api/devel/#bug_task", "bug_link": "https://bugs.launchpad.net/api/devel/bugs/1862342", "milestone_link": null, "status": "Fix Released", "status_explanation": null, "importance": "Undecided", "importance_explanation": null, "assignee_link": "https://bugs.launchpad.net/api/devel/~skipper-screen-team", "bug_target_display_name": "gcc-9 (Ubuntu)", "bug_target_name": "gcc-9 (Ubuntu)", "bug_watch_link": null, "date_assigned": "2020-02-07T11:59:37.850608+00:00", "date_created": "2020-02-07T11:59:32.625136+00:00", "date_confirmed": "2020-02-26T14:49:10.464265+00:00", "date_incomplete": null, "date_in_progress": "2020-02-26T14:49:10.464265+00:00", "date_closed": "2020-02-26T14:49:10.464265+00:00", "date_left_new": "2020-02-08T10:33:33.046603+00:00", "date_triaged": "2020-02-26T14:49:10.464265+00:00", "date_fix_committed": "2020-02-26T14:49:10.464265+00:00", "date_fix_released": "2020-02-26T14:49:10.464265+00:00", "date_left_closed": null, "owner_link": "https://bugs.launchpad.net/api/devel/~bugproxy", "target_link": "https://bugs.launchpad.net/api/devel/ubuntu/+source/gcc-9", "title": "Bug #1862342 in gcc-9 (Ubuntu): \"[Ubuntu 20.04] GCC generates wrong code for exception handling\"", "related_tasks_collection_link": "https://bugs.launchpad.net/api/devel/ubuntu/+source/gcc-9/+bug/1862342/related_tasks", "is_complete": true, "http_etag": "\"6b8018e3cc394783de8380ad514e3e2f6267d666-b39a20a820b55ee0af479b6bd21a44e84577d505\""}};</script> </body> <!-- Facet name: bugs Page type: main_side Has global search: True Has application tabs: True Has side portlets: True At least 56 queries/external actions issued in 1.06 seconds Features: {'profiling.enabled': None, 'hard_timeout': '9000', 'app.mainsite_only.canonical_url': None, 'js.yui_version': None, 'app.maintenance_message': None, 'bugs.affected_count_includes_dupes.disabled': None, 'baselayout.careers_link.disabled': None, 'visible_render_time': None} r22ade00 --> </html>