From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 95AEB3858D38; Tue, 16 Jan 2024 08:16:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95AEB3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705393009; bh=LWmfRLufPU00C1D+l++Z9BcOduzMRrLU3NnMHVrAb7U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=O8TTKJ+OlSxzyAwFznhkONIRohR1ACgUESU+Gwb7a+kohQJ6lvehKlSsE+di8zZ/Y P1p/Ibo1huNABamWNpWW84AERR7oe1UdecxoBQyBaqjJIKVJDs21XumS/fkkVUjZV4 dJMxieNDsr9+6Q6HVQU6iePtSFzh/ud/mlvwG3pg= 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: Tue, 16 Jan 2024 08:16:49 +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 #4 from GCC Commits --- The releases/gcc-12 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:ebdc3aae0a4705d0b72b69a37fdafa5613343d5d commit r12-10100-gebdc3aae0a4705d0b72b69a37fdafa5613343d5d 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 between 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. (cherry picked from commit 86fac7ee1688bdec245a43f6d2ab49fb238892e4)=