From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F00913858C2A; Tue, 16 Jan 2024 12:10:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F00913858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705407027; bh=CvwQtH/E9fuk1r7QcPYJhM2JDDZI29cpeZSAa36sDnY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N6V2ep/zygl4ABN05mVbJI76YsokLMa7aFzJs3QLn25dK58t2iy+oRcRuDE0EMlA0 Zf1HV2IuoZ5PmA3MWg92LSSe1JU+RE6lweEUYZHtfKfiw7j9NAGE1ILttCJh9SoCl7 1daLGnT5LTKFy68OIAv6wi3Xhtna8XIsoT1KMrCw= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113409] ICE: in omp_extract_for_data, at omp-general.cc:411 with -fopenmp-simd and _BitInt() Date: Tue, 16 Jan 2024 12:10:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113409 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- On e.g. void bar (_BitInt(931)); void foo (_BitInt(931) x) { #pragma omp parallel for for (_BitInt(931) i =3D 0; i < x; ++i) bar (i); } clang emits warning: OpenMP loop iteration variable cannot have more than 64 bits size = and will be narrowed [-Wopenmp-loop-form] warning. On void bar (__int128); void foo (__int128 x) { #pragma omp parallel for // schedule(runtime) for (__int128 i =3D 0; i < x; ++i) bar (i); } we actually emit something that probably works and with schedule(runtime) silently assume it won't be more than 64-bit of iterations. So supposedly we should treat BITINT_TYPEs the same.=