From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E8AFC38B135A; Sat, 17 Dec 2022 07:26:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8AFC38B135A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671262018; bh=9K+NfMdhJwOGo/oaRt81NXd0uJOlWmWjFK6yptJAp8Q=; h=From:To:Subject:Date:From; b=QUoeUskUA1SVvI0Pl5OiFgx9erLdv+llMjt7EuFgklMIMJeDXZ1qrF2vOhbGM113k qla26L5vy81k8+97cz9+CtsqoLfp/uOog4a7X60YriybaqSm5mNmIGKHY1J3u/6UiH 2Dvq20BzaObSQ50O9sfecXP3IOaTQpa1MNUjUx5k= From: "nightstrike at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/108152] New: gcc.dg/pr71558.c fails for LLP64 Date: Sat, 17 Dec 2022 07:26:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nightstrike at gmail dot com 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108152 Bug ID: 108152 Summary: gcc.dg/pr71558.c fails for LLP64 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- gcc.dg/pr71558.c has the following lines: __SIZE_TYPE__ strlen (const char *); void *malloc (__SIZE_TYPE__); __SIZE_TYPE__ b =3D strlen (a); These are good in that they support LLP64 through size_t, however they fail because this test case is compiled with -ansi. When using -ansi, the follo= wing warnings appear: gcc.dg/pr71558.c:6:1: error: ISO C90 does not support 'long long' [-Wlong-l= ong] gcc.dg/pr71558.c:7:1: error: ISO C90 does not support 'long long' [-Wlong-l= ong] gcc.dg/pr71558.c:14:1: error: ISO C90 does not support 'long long' [-Wlong-long] And of course, on LLP64 systems, __SIZE_TYPE__ is in fact a long long.=20 Hopefully, -ansi can just be removed from the compile options, although I d= on't know how to do that.=