From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B384C3858416; Mon, 27 Dec 2021 20:13:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B384C3858416 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/98076] Increase speed of integer I/O Date: Mon, 27 Dec 2021 20:13:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ro 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: --- 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: Mon, 27 Dec 2021 20:13:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98076 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro at gcc dot gnu.org --- Comment #10 from Rainer Orth --- This patch broke (at least) Solaris bootstrap: /vol/gcc/src/hg/master/local/libgfortran/runtime/string.c: In function 'gfc_itoa': /vol/gcc/src/hg/master/local/libgfortran/runtime/string.c:245:73: error: ma= cro "static_assert" requires 2 arguments, but only 1 given 245 | static_assert(sizeof(GFC_UINTEGER_LARGEST) <=3D 2 * sizeof(uint64_t)); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ In file included from /vol/gcc/src/hg/master/local/libgfortran/runtime/string.c:26: /usr/include/assert.h:25: note: macro "static_assert" defined here 25 | #define static_assert(a, b) _Static_assert(a, b) | /vol/gcc/src/hg/master/local/libgfortran/runtime/string.c:245:7: error: 'static_assert' undeclared (first use in this function) 245 | static_assert(sizeof(GFC_UINTEGER_LARGEST) <=3D 2 * sizeof(uint64_t)); | ^~~~~~~~~~~~~ /vol/gcc/src/hg/master/local/libgfortran/runtime/string.c:245:7: note: each undeclared identifier is reported only once for each function it appears in make[6]: *** [Makefile:2765: string.lo] Error 1 According to https://en.cppreference.com/w/c/language/_Static_assert, the one-arg form of _Static_assert/static_assert is new since C23, while Solaris only supports the two-arg form.=