From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 583153858C2C; Thu, 10 Feb 2022 23:02:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 583153858C2C From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/104274] FAIL: gcc.dg/analyzer/pr97029.c (test for excess errors) Date: Thu, 10 Feb 2022 23:02:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on everconfirmed bug_status Message-ID: In-Reply-To: References: 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: Thu, 10 Feb 2022 23:02:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104274 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-02-10 Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from David Malcolm --- Confirmed (with --target=3Dhppa64-hpux11.3) pr97029.c.006t.gimple with x86_64 has... VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV= V=20=20=20=20 void setjmp (struct vj pl) { setjmp (pl); } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...whereas with --target=3Dhppa64-hpux11.3 has: VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV= V=20=20=20=20 void setjmp (struct vj pl) { struct vj pl.0; setjmp (pl.0); } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ It still happens if I rename the function from "setjmp" to "foo". It no longer happens if I add a dummy field to the struct. The temporary "pl.0" is created on hppa by: #4 0x0000000000aa7b3a in gimplify_parameters (cleanup=3Dcleanup@entry=3D0x7fffffffd9b0) at ../../src/gcc/function.cc:3939 3926 tree type =3D TREE_TYPE (data.arg.type); 3927 function_arg_info orig_arg (type, data.arg.named); 3928 if (reference_callee_copied (&all.args_so_far_v, orig_arg= )) 3929 { 3930 tree local, t; 3931=20=20=20=20 3932 /* For constant-sized objects, this is trivial; for 3933 variable-sized objects, we have to play games. */ 3934 if (TREE_CODE (DECL_SIZE_UNIT (parm)) =3D=3D INTEGER_= CST 3935 && !(flag_stack_check =3D=3D GENERIC_STACK_CHECK 3936 && compare_tree_int (DECL_SIZE_UNIT (parm), 3937 STACK_CHECK_MAX_VAR_SIZ= E) > 0)) 3938 { 3939 local =3D create_tmp_var (type, get_name (parm)); 3940 DECL_IGNORED_P (local) =3D 0; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ and never assigned to.=