From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B0D03854807; Wed, 18 Nov 2020 17:08:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B0D03854807 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/97880] [8/9/10/11 Regression] ICE in emit_library_call_value_1, at calls.c:5298 Date: Wed, 18 Nov 2020 17:08:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code, openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 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://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, 18 Nov 2020 17:08:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97880 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #2 from Tobias Burnus --- With trunk, I get for=20 for (int i =3D 0; i < 8; i++) for (long j =3D 0; j < 8; j++); foocc.c: In function =E2=80=98f._omp_fn.0=E2=80=99: foocc.c:6:1: error: type mismatch in binary expression 6 | } | ^ signed long long int int D.2125 =3D .tile.5 * .tile.7; during IPA pass: *free_lang_data Draft patch: --- a/gcc/omp-expand.c +++ b/gcc/omp-expand.c @@ -7561 +7561,2 @@ expand_oacc_for (struct omp_region *region, struct omp_for_data *fd) - expr =3D fold_build2 (MULT_EXPR, diff_type, counts[ix].tile, expr); + expr =3D fold_build2 (MULT_EXPR, diff_type, + fold_convert (diff_type, counts[ix].tile), expr= );=