From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 10A1E3882AF0; Thu, 13 Jun 2024 20:24:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10A1E3882AF0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718310277; bh=NBIToau9vXlhraLO2S1oqsgg2UgPM3rq5lZd0shvmIo=; h=From:To:Subject:Date:From; b=pliTYXENYKqboMr9cZt4an3FFnMytUNjwOslJGQM2xALf3O+59lyerw6a9xR6Kh4U qL4Dx4dhJQUvne+Dm0UaL4ro92yW4Cd6fo/GbVF7hStoSqSGjbkB2O+s+PIKkyojpr CdZx0HMJ7CYCP0xpPm2JNEg7w2q0uVb8DGIjQ/QM= From: "dv at vollmann dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/115481] New: HAVE_* for long double math functions wrong for avrlibc (target AVR) Date: Thu, 13 Jun 2024 20:24:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dv at vollmann dot ch 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 attachments.created 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=3D115481 Bug ID: 115481 Summary: HAVE_* for long double math functions wrong for avrlibc (target AVR) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dv at vollmann dot ch Target Milestone: --- Created attachment 58420 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58420&action=3Dedit possible patch New versions of avrlibc provide long double math functions, but crossmake.m4 doesn't know about them. The result is that libstdc++ doesn't build due to duplicate definitions in math_stubs_long_double.cc. The fix is the same as commit c6c428196d4c76208a0d34aacfa80b57a20f5097 for AArch64 RTEMS, just at a different place. This is somewhat related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111639.=