From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D12B93858C50; Mon, 15 Jan 2024 15:17:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D12B93858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705331825; bh=jOyzWvjhLqUHnEY5zwcslSU/PzRZga7G/wRA788uE/I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hGAvvVyBHsBRMtB0MUSJTMo+3m1ZYI+pm9rvPjb8xZjGqSLUZJgwNlOsFkIKzIKQu ky+avx/4c+x/Irm6rNdU3ytjdgHkb+t1VcxiZEWaYrs6lHaupLEtPOGIIvU1lcUL+1 zC/IJ8ZXZvSteZ7wb4hTbq7mDPJfs8hxgP2k5Yww= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107201] [avr] -nodevicelib not working for devices -mmcu=avr... Date: Mon, 15 Jan 2024 15:17:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107201 --- Comment #2 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:86fac7ee1688bdec245a43f6d2ab49fb238892e4 commit r14-7247-g86fac7ee1688bdec245a43f6d2ab49fb238892e4 Author: Georg-Johann Lay Date: Mon Jan 15 13:25:59 2024 +0100 AVR: target/107201: Make -nodevicelib work for all devices. driver-avr.cc contains a spec that discriminates bwtween cores and devices by means of a mmcu=3Davr* spec pattern. This does = not work for new devices like AVR128* which also start with mmcu=3D= avr like all cores do. The patch uses a new spec function in order= to tell apart cores from devices. gcc/ PR target/107201 * config/avr/avr.h (EXTRA_SPEC_FUNCTIONS): Add no-devlib, avr_no_devlib. * config/avr/driver-avr.cc (avr_no_devlib): New function. (avr_devicespecs_file): Use it to remove -nodevicelib from the options for cores only. * config/avr/avr-arch.h (avr_get_parch): New prototype. * config/avr/avr-devices.cc (avr_get_parch): New function.=