From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99037 invoked by alias); 22 Jun 2016 15:48:49 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 97579 invoked by uid 48); 22 Jun 2016 15:48:42 -0000 From: "fche at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/18079] autocast doesn't work with @defined Date: Wed, 22 Jun 2016 15:48:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fche at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2016-q2/txt/msg00273.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D18079 Frank Ch. Eigler changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fche at redhat dot com --- Comment #4 from Frank Ch. Eigler --- Please see the commit on branch fche/pr18079 for a possible fix to this. I= 'd appreciate a review. commit 056cb27baac1ce3ab4d675dbbe4881afde801ca3 Author: Frank Ch. Eigler Date: Wed Jun 22 11:43:33 2016 -0400 PR18079: support nested autocast / @defined We now perform const-folding & dead-code-elision during the type resolution loop, whenever an autocast expression gets evaluated. This way, @defined(foo()->mm) type expressions can work as nature intended. This requires @defined() not to be short-circuit evaluated to 0 during a random const_folding process, so a flag is introduced to control its preservation or collapsing. For the last (assert_resolvability) pass in the type resolution loop, this flag is set to true, so that genuinely unresolvable @defined($expressions) do get mapped to 0 in time for a last elision. --=20 You are receiving this mail because: You are the assignee for the bug.