From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E61453840C14; Mon, 29 Jun 2020 17:43:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E61453840C14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593452582; bh=DqBizRA1disAUdGwaK3KBekCLdi4YqKJH1+cZduLXDc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZZn7ZPOn12cYG95sELiOCVx2UpEnmEh0vf8J8Lx0wvY9gxnutV1wBxEHzfM1KfoM+ zTsBOyMn4X2JeoWaqtF6/uwWHipf+WK4zFPzlycfg2iZqaUj5RAqIDNNwv9AeuN3FO VHn1vawivMOseO9ubdXK4x7SvYQy1nBAt3R+hb/Y= From: "dje at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95918] gfortran.dg/char4-subscript.f90 fails for BE architectures Date: Mon, 29 Jun 2020 17:43:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dje 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: 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, 29 Jun 2020 17:43:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95918 --- Comment #8 from David Edelsohn --- It uses . where it wants to consume a quotation mark ("). Because the BE/LE difference is flipping characters, would it negate the purpose of the test to check for one or zero characters? ! { dg-final { scan-tree-dump { \(\*var\.str2\)\[1\]{lb: 1 sz: 4} =3D .d?\\x00\\x00d?.\[1\]{lb: 1 sz: 4};} "original" } } In other words, test for the "d" or not at one end, and "d" or not at the o= ther end. And the next test would become ! { dg-final { scan-tree-dump " __builtin_memmove \(\(void \*\) &\(\*var. str2\)\[2\]{lb: 1 sz: 4}, \(void \*\\) &.e?\\x00\\x00\\x00[ef]\\x00 \\x00f?.\[1\]{lb: 1 sz: 4}, 8\);" "original" } } Or is a possible failure that the endian was flipped?=