From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 111FF3858CD1; Mon, 11 Dec 2023 08:40:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 111FF3858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702284015; bh=iwl557fp0X/tThcMRvbpm4Nffq/hVP0BGkKaKODMxQQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qkSy+tFHuTQ1oL1SbQRdE6uL8NaKdjjqIFdCgkWieGRncYO8U55uhKzkvPesQ9pmm hrGXDRXAZ72+xOfo/9DedtezdVe6Bu7PpOa80jzmM+gmgQWyCLGmzj6DilJYqR05kM wy5KMKsyxLkKHsTxL++kUilANNh5O0wU1clxMIoA= From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112952] avr: attribute address not working with -fdata-sections -fno-common Date: Mon, 11 Dec 2023 08:40:14 +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: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl 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: cf_gcctarget cf_known_to_fail keywords 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=3D112952 Georg-Johann Lay changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |avr Known to fail| |13.2.0, 8.5.0 Keywords| |wrong-code --- Comment #1 from Georg-Johann Lay --- Compile the follwing test with avr-gcc ... -fdata-sections -fno-common -S __attribute__((__address__(0))) char __flmap; The generates assembly reads: .global __flmap .section .bss.__flmap,"aw",@nobits .type __flmap, @object .size __flmap, 1 __flmap: .zero 1 but the expected code is: .globl __flmap __flmap =3D 0 This problem becomes more pronounced as v10 switched from -fcommon to -fno-common as the default.=