From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CBAE53858D33; Tue, 20 Feb 2024 09:21:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBAE53858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708420918; bh=n2qfrfW52KpR7unzQG25T6kPUAwXsT0qqCSQ62xP3Ok=; h=From:To:Subject:Date:From; b=q5vvuiBOlSaoyp8pq/MQG4SyoFhS1kPwwzKiPQ4usWnpbPhp5/Dykr1pdRzDfBqmV XdqA6/Kz7p1Lpro02WqWnpk64g/r2qLEE/YiNEKVrWD2mByr47Rfi1dMkrX1fcmJ0d wnaBMWea//f0SoHHorFuCD0/Yu55tOhcV6JF9h1k= From: "ujszhangc at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114008] New: Internal compiler error, segmentation fault Date: Tue, 20 Feb 2024 09:21:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ujszhangc 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=3D114008 Bug ID: 114008 Summary: Internal compiler error, segmentation fault Product: gcc Version: 9.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ujszhangc at gmail dot com Target Milestone: --- Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none:hsa OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-linux-gnu Thread model: posix gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)=20 $ gcc test.c=20 during IPA pass: targetclone test.c:4:1: internal compiler error: Segmentation fault 4 | __typeof(__tanh) tanhf64 __attribute__((alias("__tanh"),target_clones("arch=3Dhaswell", "default"))); | ^~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. This is the code in test.c. __attribute__((target_clones("arch=3Dhaswell", "default"))) int __tanh() {} __typeof(__tanh) tanhf64 __attribute__((alias("__tanh"),target_clones("arch=3Dhaswell", "default")))= ;=