From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C598F3893C35; Wed, 10 Mar 2021 17:10:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C598F3893C35 From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99523] New: Declarations for variable names missing in GIMPLE dump Date: Wed, 10 Mar 2021 17:10:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 17:10:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99523 Bug ID: 99523 Summary: Declarations for variable names missing in GIMPLE dump Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: int f(__builtin_va_list *ap) { return __builtin_va_arg(*ap, int); } on AArch64 at -O2 with -fdump-tree-optimized=3D-, we get: ;; Function f (f, funcdef_no=3D0, decl_uid=3D3583, cgraph_uid=3D1, symbol_o= rder=3D0) f (struct * ap) { int D.3591; void * D.3592; int * iftmp.2; sizetype D.3596; sizetype D.3597; sizetype D.3598; void * D.3599; int D.3601; int * iftmp.3; void * D.3607; sizetype D.3608; int _4; [local count: 1073741824]: _9 =3D ap_2(D)->__gr_offs; _10 =3D ap_2(D)->__stack; if (_9 >=3D 0) goto ; [59.00%] else goto ; [41.00%] where the variables _9 and _10 are apparently missing declarations in the IR dump. I believe the variables came from calls to get_initialized_tmp_var in aarch64_gimplify_va_arg_expr. Not sure if this is some missing bookkeeping around the gimplification or perhaps a bug in the dumping code?=