From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3A5C73858C98; Wed, 27 Mar 2024 15:28:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A5C73858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711553316; bh=ofP/Mp6DZsUh+RM5w9yBpVOGHfPGoSmhXxVZ8+3SxQU=; h=From:To:Subject:Date:From; b=FoREKVeptqQjNp/8v1EGAzbBhLdLhatJ1miFiNArERqgqpyyNH0oKkjXXm+Gx6rYZ lpMktKG6IEfMyDkVOaCuUrwgJ95mhAdjofCjFX0QsC5YJ//JMSZ1tYWVhlyKH9GlBx U1w+YCQNurWuyLfv7MdnEW3XBSmxzON3nVbftTzs= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/31566] New: [gdb/testsuite] is_aarch32_target return false on aarch32 Date: Wed, 27 Mar 2024 15:28:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31566 Bug ID: 31566 Summary: [gdb/testsuite] is_aarch32_target return false on aarch32 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: testsuite Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- While running tests on aarch64-linux, I noticed: ... Executing on host: gcc -fno-stack-protector -fdiagnostics-color=3Dnever -= w -c -g -o /data/vries/gdb/build/gdb/testsuite/temp/1485517/aarch32.o /data/vries/gdb/build/gdb/testsuite/temp/1485517/aarch32.c (timeout =3D = 300) builtin_spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color= =3Dnever -w -c -g -o /data/vries/gdb/build/gdb/testsuite/temp/1485517/aarch32.o /data/vries/gdb/build/gdb/testsuite/temp/1485517/aarch32.c^M /data/vries/gdb/build/gdb/testsuite/temp/1485517/aarch32.c:1:9: error: unkn= own type name 'mov'^M 1 | mov r0, r0^M | ^~~^M ... This is is_aarch32_target: ... gdb_caching_proc is_aarch32_target {} { if { [istarget "arm*-*-*"] } { return 1 } if { ![istarget "aarch64*-*-*"] } { return 0 } set list {} foreach reg \ {r0 r1 r2 r3} { lappend list "\tmov $reg, $reg" } return [gdb_can_simple_compile aarch32 [join $list \n]] } ... On an aarch32 target, this will always return false, because it tries to compile raw assembly instructions in a .c file using a compiler. AFAICT, this is a regression since commit c221b2f7708 ("Testsuite: Add gdb_can_simple_compile"). --=20 You are receiving this mail because: You are on the CC list for the bug.=