From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A56873892466; Mon, 29 Jun 2020 16:00:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A56873892466 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593446447; bh=PXhrzolkgLiY8ZhW1CxumJTPtoGmLMKSUlegbCKA/fk=; h=From:To:Subject:Date:From; b=W/YdbLs83BNJezwsWPVFGIbc1DZ69aXFVUC1ixgKVCiiBT0nOgEg3M3GTLt4+Er56 Nr6YJCaNrBtoxp4ej+usk846f6rPkCBSwk0PB8NkFI5XvSkOVJk1Lo8YWFp5e2tEJ2 EZ0DCGX9DjGPpA/eNiIfB2v/8m4ibJlkTBW5s8bI= From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBib290c3RyYXAvOTU5NzBdIE5ldzogZ2NjL2dvL2dvZnJv?= =?UTF-8?B?bnRlbmQvdHlwZXMuY2M6MTQ3NDozNDogd2FybmluZzog4oCYdGhpc+KAmSBw?= =?UTF-8?B?b2ludGVyIG51bGw=?= Date: Mon, 29 Jun 2020 16:00:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor 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: Mon, 29 Jun 2020 16:00:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95970 Bug ID: 95970 Summary: gcc/go/gofrontend/types.cc:1474:34: warning: =E2=80=98t= his=E2=80=99 pointer null Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Since r11-1697 Go bootstrap fails due to the following warning turned error: In static member function =E2=80=98static Expression* Type::type_descriptor= (Gogo*, Type*)=E2=80=99, inlined from =E2=80=98virtual Expression* Named_type::do_type_descripto= r(Gogo*, Named_type*)=E2=80=99 at /ssd/test/src/gcc/trunk/gcc/go/gofrontend/types.cc= :11114:53, inlined from =E2=80=98virtual Expression* Named_type::do_type_descripto= r(Gogo*, Named_type*)=E2=80=99 at /ssd/test/src/gcc/trunk/gcc/go/gofrontend/types.cc= :11105:1: /ssd/test/src/gcc/trunk/gcc/go/gofrontend/types.cc:1474:34: warning: =E2=80= =98this=E2=80=99 pointer null [-Wnonnull] 1474 | return type->do_type_descriptor(gogo, NULL); The warning, issued from tree-ssa-ccp.c, is triggered by the use of the null pointer as the first argument in the following call for the IL below. _31 =3D OBJ_TYPE_REF(_30;(struct Type)0B->12) (0B, gogo_12(D), 0B); Named_type::do_type_descriptor (struct Named_type * const this, struct Gogo= * gogo, struct Named_type * name) { struct Expression * D.404029; struct Expression * ret; bool _1; bool _2; bool _3; struct Type * _4; struct Expression * _5; struct Named_type * iftmp.1259_6; struct Expression * _14; struct Expression * _17; struct Expression * _19; struct Expression * _20; struct Named_type * iftmp.1259_21; struct Named_type * iftmp.1259_22; struct Expression * _24; struct Expression * _25; struct Expression * _27; struct Expression * _28; int (*) () * _29; int (*) () _30; struct Expression * _31; : _1 =3D this_9(D)->is_error_; if (_1 !=3D 0) goto ; [INV] else goto ; [INV] : _27 =3D Expression::make_error (this_9(D)->location_); _28 =3D _27; goto ; [INV] : if (name_10(D) =3D=3D 0B) goto ; [INV] else goto ; [INV] : _2 =3D this_9(D)->is_alias_; if (_2 !=3D 0) goto ; [INV] else goto ; [INV] : _3 =3D this_9(D)->seen_alias_; if (_3 !=3D 0) goto ; [INV] else goto ; [INV] : _19 =3D Expression::make_error (this_9(D)->location_); _20 =3D _19; goto ; [INV] : this_9(D)->seen_alias_ =3D 1; _29 =3D MEM[(struct Type *)0B]._vptr.Type; _30 =3D MEM[(int (*) () *)_29 + 96B]; _31 =3D OBJ_TYPE_REF(_30;(struct Type)0B->12) (0B, gogo_12(D), 0B); _33 =3D _31; _14 =3D _33; ret_15 =3D _14; this_9(D)->seen_alias_ =3D 0; _17 =3D ret_15; // predicted unlikely by early return (on trees) predictor. goto ; [INV]=